]> git.lyx.org Git - lyx.git/blobdiff - development/autotests/findadv-15-in.txt
ctests: log a waste and a success
[lyx.git] / development / autotests / findadv-15-in.txt
index c615e6016afd06bc8140a3d74da43a29da8576f0..90094895b81c7e55e71a6d5d40c531d2b9e39b2c 100644 (file)
@@ -1,37 +1,56 @@
 # 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 it_IT.utf8
-TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
-KK: \CM\Axmath-number-toggle\[Return]
+Lang sk_SK.utf8
+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: \Az\Ag\Ae
-KK: \CM\Axmath-number-toggle\[Return]
+KK: \At\Ar\Ak\Ah
+KK: \CF
+KK: \C\[F22]
 KK: x^2\[Return]
-TestEnd
-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
 
-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: \Az\Ag\Ae
-KK: \CM\Axmath-number-toggle\[Return]
+KK: \[Delete]
+KK: \C\[F22]
 KK: x^2\[Return]\[Return]
-TestEnd
-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
 
-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: \[Delete]
+# Check ignore format (was unchecked)
+KK: \At\Ar\Ak\Ah
 KK: \CF
-KK: \CM\Axmath-number-toggle\[Return]
+KK: \C\[F22]
 KK: x^2\[Return]
-TestEnd
-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
 
-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
-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
+Lang C
+Assert searchPatterns.pl base=findadv-15
+