]> git.lyx.org Git - lyx.git/blobdiff - development/autotests/findadv-08-in.txt
Adding binary path for Homebrew on MacOS-arm64 (bug 12619).
[lyx.git] / development / autotests / findadv-08-in.txt
index 7964b92565ea7c86f3ad93671e078319a26ca239..2cd281b1517d04d79e848fea2f0d65ebd9c65fd5 100644 (file)
@@ -1,26 +1,55 @@
 # Basic test for searching with regular expressions
-
-Lang it_IT.utf8
-TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
+UseShortcut "C-F20" "regexp-mode"
+UseShortcut "C-F21" "command-sequence dialog-show findreplaceadv ; buffer-end ; buffer-begin-select ; char-delete-forward ;"
+PrepareShortcuts
+#
+Lang sk_SK.utf8
+CO: findadv-08.ctrl
+TestBegin test.lyx -dbg key,find > findadv-08.loga.txt 2>&1
+KD: 100
+CN: Part 1
+Cr: ^.*Putting
+CP: Key (queried) [action=buffer-begin][Ctrl+Home]
 KK: Nel mezzo del cammin di nostra vita\[Return]
 KK: mi ritrovai per una selva oscura\C\[Home]
-KK: \Cs
-KK: \CF
-KK: o\Axregexp-mode\[Return].* a\[Return]
-TestEnd
-Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 8' lyx-log.txt
-
-TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
-KK: \CF
-KK: o\Axregexp-mode\[Return][[:word:]]* a
-KD: 200
-KK: \Al\Ar\[Return]
-KD: 100
+KK: \Axbuffer-write\[Return]
+KK: \C\[F21]
+KK: o
+KK: \C\[F20]
+KK: .*? a\[Return]
+CP: Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 8
+#
+CN: Started Part 2
+CP: Key (queried) [action=buffer-begin][Ctrl+Home]
+KK: \[Escape]\C\[Home]\C\[F21]
+KK: o
+KK: \C\[F20]
+KK: [\\w]* a
+#KD: 100
+# select whole words
+KK: \Ae
+# search next
+KK: \A>
+# The following Escape is too fast
+Sleep 1
+KK: \[Escape]
+#KD: 1
+Cr: ^.*Putting
+CP: Putting selection at .*idx: 0 par: 1 pos: 26\n with len: 6
+#
+CN: Part 3
+CP: Key (queried) [action=buffer-begin][Ctrl+Home]
+KK: \[Escape]\C\[Home]\C\[F21]
+KK: \C\[F20]
+KK: .* 
+KK: \[Return]\[Return]\[Return]
+Cr: ^.*Putting
+CP: Putting selection at .*idx: 0 par: 0 pos: 0\n with len: 3
+Cr: ^.*Putting
+CP: Putting selection at .*idx: 0 par: 0 pos: 4\n with len: 5
+Cr: ^.*Putting
+CP: Putting selection at .*idx: 0 par: 0 pos: 10\n with len: 3
 TestEnd
-Assert pcregrep -M 'Putting selection at .*idx: 0 par: 1 pos: 26\n with len: 6' lyx-log.txt
+Lang C
+Assert searchPatterns.pl base=findadv-08
 
-TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
-KK: \CF
-KK: \Axregexp-mode\[Return].* \Al\Ar\[Return]\[Return]\[Return]
-TestEnd
-Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 10\n with len: 3' lyx-log.txt