]> git.lyx.org Git - lyx.git/blobdiff - development/autotests/findadv-re-04-in.txt
ctests: log a waste and a success
[lyx.git] / development / autotests / findadv-re-04-in.txt
index d092a535ff228685eed87eb8f572366f58519719..20986317a972f776999f54372700b3c1f49e5880 100644 (file)
@@ -1,13 +1,87 @@
 # Finding styles with regexp
+UseShortcut "C-F20" "regexp-mode"
+UnuseShortcut "Tab" "*"
 
-Lang it_IT.utf8
-TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
-KK: Hello \CeHello\C\[Home]
+PrepareShortcuts
+
+Lang sk_SK.utf8
+CO: findadv-re-04.ctrl
+CN: Part 1
+CP: Init key
+TestBegin test.lyx -dbg key,find > findadv-re-04.loga.txt 2>&1
+CP: Key (queried) [action=buffer-begin][Ctrl+Home]
+KK: The quick Brown \CeFox jUMps\Ce over the lazy Dog\[Return]
+Sleep 1
+KK: \C\[Home]
 KK: \Cs
 KK: \CF
 # Uncheck ignore format (depends on IT language)
-KK: \Az\Ag\Ae
-KK: \Ce\Axregexp-mode\[Return].*\[Return]
+KK: \At\Ar\Ak\Ah
+KK: \CF
+KK: \Ce
+CN: Case insensitive, format not ignored .*
+KK: \C\[F20].*\[Return]
+Cr: ^.*Putting 
+CP: Putting selection at .*idx: 0 par: 0 pos: 16\n with len: 9
+Cr: ^.*Putting 
+TestEnd
+
+CO: >> findadv-re-04.ctrl
+CN: Part 2
+CP: Init key
+TestBegin test.lyx -dbg key,find >> findadv-re-04.loga.txt 2>&1
+CN: Case insensitive, format not ignored [a-z]+
+KK: \CF
+# Uncheck ignore format (depends on IT language)
+KK: \At\Ar\Ak\Ah
+KK: \CF
+KK: \Ce
+KK: \C\[F20]\\b[a-z]+\\b\[Return]\[Return]\[Return]
+Cr: ^.*Putting 
+CP: Putting selection at .*idx: 0 par: 0 pos: 16\n with len: 3
+Cr: ^.*Putting 
+CP: Putting selection at .*idx: 0 par: 0 pos: 20\n with len: 5
+Cr: ^.*Putting 
+TestEnd
+
+CO: >> findadv-re-04.ctrl
+CN: Part 3
+CP: Init key
+TestBegin test.lyx -dbg key,find >> findadv-re-04.loga.txt 2>&1
+
+CN: Case sensitive, format not ignored [a-z]+
+KK: \CF
+KK: \At\Ar\Ak\Ah
+KK: \CF
+KK: \Ce
+KK: \Az\[Tab]\[Tab]\C\[F20][a-z]+\[Return]\[Return]\[Return]\[Return]
+Cr: ^.*Putting
+CP: Putting selection at .*idx: 0 par: 0 pos: 17\n with len: 2
+Cr: ^.*Putting
+Cr: ^.*Init key
+CP: Putting selection at .*idx: 0 par: 0 pos: 20\n with len: 1
+Cr: ^.*Putting
+Cr: ^.*Init key
+CP: Putting selection at .*idx: 0 par: 0 pos: 23\n with len: 2
+Cr: ^.*Putting 
+TestEnd
+
+CO: >> findadv-re-04.ctrl
+CN: Part 4
+CP: Init key
+TestBegin test.lyx -dbg key,find >> findadv-re-04.loga.txt 2>&1
+
+CN: Case sensitive, format not ignored [A-Z]+
+KK: \CF
+KK: \At\Ar\Ak\Ah
+KK: \CF
+KK: \Ce
+KK: \Az\[Tab]\[Tab]\C\[F20][A-Z]+\[Return]\[Return]\[Return]
+Cr: ^.*Putting
+CP: Putting selection at .*idx: 0 par: 0 pos: 16\n with len: 1
+Cr: ^.*Putting
+CP: Putting selection at .*idx: 0 par: 0 pos: 21\n with len: 2
+Cr: ^.*Putting 
 TestEnd
 Lang C
-Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 6\n with len: 5' lyx-log.txt
+Assert searchPatterns.pl base=findadv-re-04