X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=development%2Fautotests%2Ffindadv-15-in.txt;h=cfe6be47e43bbbd500ef1ac7a4566d0846e48152;hb=226e0bb2b7361646bea84098d7bab4b87018ad99;hp=9508aec4c29cf0ce472eea07476117d3d648d506;hpb=034d5632a2bc83bc593add21bc0357a03a09a11e;p=lyx.git diff --git a/development/autotests/findadv-15-in.txt b/development/autotests/findadv-15-in.txt index 9508aec4c2..cfe6be47e4 100644 --- a/development/autotests/findadv-15-in.txt +++ b/development/autotests/findadv-15-in.txt @@ -1,44 +1,54 @@ # Finding numbered maths with ignore-format on&off (might affect #7596) +UseShortcut "C-F21" "command-sequence dialog-show findreplaceadv ; buffer-end ; buffer-begin-select ; char-delete-forward ;" +UseShortcut "C-F22" "command-sequence math-mode ; math-number-toggle ;" +PrepareShortcuts # Lang sk_SK.utf8 -TestBegin test.lyx -dbg find > lyx-log.txt 2>&1 -KK: \CM\Axmath-number-toggle\[Return] +CO: findadv-15.ctrl +TestBegin test.lyx -dbg key,find > findadv-15.loga.txt 2>&1 +CN: Part 1 +KK: \C\[F22] KK: x^2 +x^2\C\[Home] KK: \Cs KK: \CF # Uncheck ignore format KK: \At\Ai\Ah -KK: \CM\Axmath-number-toggle\[Return] +KK: \C\[F22] KK: x^2\[Return] -TestEnd -Lang C -Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0\n with len: 1' lyx-log.txt +CP: Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0\n with len: 1 -Lang sk_SK.utf8 -TestBegin test.lyx -dbg find > lyx-log.txt 2>&1 +CN: Part 2 +KK: \[Escape]\C\[Home] +CP: Key (queried) [action=buffer-begin][Ctrl+Home] KK: \CF -# Uncheck ignore format -KK: \At\Ai\Ah -KK: \CM\Axmath-number-toggle\[Return] +KK: \[Delete] +KK: \C\[F22] KK: x^2\[Return]\[Return] -TestEnd -Lang C -Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 2\n with len: 1' lyx-log.txt +CP: Putting selection at .*idx: 0 par: 0 pos: 0\n .*idx: 0 par: 0 pos: 0\n with len: 1 +CP: Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 2\n with len: 1 -Lang it_IT.utf8 -TestBegin test.lyx -dbg find > lyx-log.txt 2>&1 +# +CN: Part 3 +KK: \[Escape]\C\[Home] +CP: Key (queried) [action=buffer-begin][Ctrl+Home] KK: \CF -KK: \CM\Axmath-number-toggle\[Return] +KK: \[Delete] +# Check ignore format (was unchecked) +KK: \At\Ai\Ah +KK: \C\[F22] KK: x^2\[Return] -TestEnd -Lang C -Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0\n with len: 1' lyx-log.txt +CP: Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0\n with len: 1 -Lang it_IT.utf8 -TestBegin test.lyx -dbg find > lyx-log.txt 2>&1 +CN: Part 4 +KK: \[Escape]\C\[Home] +CP: Key (queried) [action=buffer-begin][Ctrl+Home] KK: \CF -KK: \CM\Axmath-number-toggle\[Return] +KK: \[Delete] +KK: \C\[F22] KK: x^2\[Return]\[Return] +CP: Putting selection at .*idx: 0 par: 0 pos: 0\n .*idx: 0 par: 0 pos: 0\n with len: 1 +CP: Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 2\n with len: 1 TestEnd Lang C -Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 2\n with len: 1' lyx-log.txt +Assert searchPatterns.pl base=findadv-15 +