Cmake key-tests: These are very touchy in respect to timings

Cmake key-tests: These are very touchy in respect to timings

1.) Try to use shortcuts instead of direct command
2.) use bigger pause where needed
This commit is contained in:
Kornel Benko 2021-01-29 16:11:16 +01:00
parent 9b79c639f7
commit ac5534827e
11 changed files with 52 additions and 26 deletions

View File

@ -1,5 +1,6 @@
# Test for searching with regular expressions # Test for searching with regular expressions
UseShortcut "C-F30" "layout Itemize" UseShortcut "C-F30" "layout Itemize"
UseShortcut "C-F20" "regexp-mode"
PrepareShortcuts PrepareShortcuts
@ -14,7 +15,7 @@ KK: \CF
KK: \At\Ai\Ah KK: \At\Ai\Ah
KK: \CF KK: \CF
KK: \C\[F30] KK: \C\[F30]
KK: \Axregexp-mode\[Return][a-z]* \[Return] KK: \C\[F20][a-z]* \[Return]
CP: Putting selection at .*idx: 0 par: 0 pos: 0\n with len: 3 CP: Putting selection at .*idx: 0 par: 0 pos: 0\n with len: 3
CN: Part 2 CN: Part 2
@ -26,7 +27,7 @@ KK: \[Delete]
#KK: \At\Ai\Ah #KK: \At\Ai\Ah
#KK: \CF #KK: \CF
KK: \C\[F30] KK: \C\[F30]
KK: \Axregexp-mode\[Return][a-z]* \[Return]\[Return] KK: \C\[F20][a-z]* \[Return]\[Return]
CP: Putting selection at .*idx: 0 par: 0 pos: 0\n with len: 3 CP: Putting selection at .*idx: 0 par: 0 pos: 0\n with len: 3
CP: Putting selection at .*idx: 0 par: 1 pos: 0\n with len: 3 CP: Putting selection at .*idx: 0 par: 1 pos: 0\n with len: 3
TestEnd TestEnd

View File

@ -1,4 +1,6 @@
# Searching for regexp with e.g. \[Backspace]\[Backspace]s finds blanks # Searching for regexp with e.g. \[Backspace]\[Backspace]s finds blanks
UseShortcut "C-F20" "regexp-mode"
PrepareShortcuts
Lang it_IT.utf8 Lang it_IT.utf8
CO: findadv-18.ctrl CO: findadv-18.ctrl
@ -6,7 +8,7 @@ TestBegin test.lyx -dbg key,find > findadv-18.loga.txt 2>&1
KK: a b c\C\[Home] KK: a b c\C\[Home]
KK: \Cs KK: \Cs
KK: \CF KK: \CF
KK: \Axregexp-mode\[Return]\\s\[Return] KK: \C\[F20]\\s\[Return]
CP: Putting selection at .*idx: 0 par: 0 pos: 1\n with len: 1 CP: Putting selection at .*idx: 0 par: 0 pos: 1\n with len: 1
TestEnd TestEnd
Lang C Lang C

View File

@ -1,4 +1,6 @@
# Check that searching for regexp "([a-z]+)\s\1" finds duplicate words. # Check that searching for regexp "([a-z]+)\s\1" finds duplicate words.
UseShortcut "C-F20" "regexp-mode"
PrepareShortcuts
Lang it_IT.utf8 Lang it_IT.utf8
CO: findadv-19.ctrl CO: findadv-19.ctrl
@ -7,7 +9,7 @@ KD: 50
KK: Hello world world!\C\[Home] KK: Hello world world!\C\[Home]
KK: \Cs KK: \Cs
KK: \CF KK: \CF
KK: \Axregexp-mode\[Return]([a-z]+)\\s\\1\[Return] KK: \C\[F20]([a-z]+)\\s\\1\[Return]
CP: Putting selection at .*idx: 0 par: 0 pos: 6\n with len: 11 CP: Putting selection at .*idx: 0 par: 0 pos: 6\n with len: 11
Sleep 1 Sleep 1
TestEnd TestEnd

View File

@ -1,11 +1,13 @@
# Avoiding recursive replacements when replaced text matches search pattern # Avoiding recursive replacements when replaced text matches search pattern
# Addresses #7675. # Addresses #7675.
# #
Lang it_IT.utf8 Lang it_IT.utf8
CO: findadv-20.1.ctrl CO: findadv-20.1.ctrl
TestBegin test.lyx -dbg key,find > findadv-20.loga.txt 2>&1 TestBegin test.lyx -dbg key,find > findadv-20.loga.txt 2>&1
CN: Part 1 CN: Part 1
KD: 100
KK: a a a\C\[Home] KK: a a a\C\[Home]
KK: \CF KK: \CF
KK: a\[Tab] KK: a\[Tab]
@ -20,6 +22,7 @@ Lang it_IT.utf8
CO: findadv-20.2.ctrl CO: findadv-20.2.ctrl
TestBegin test2.lyx -dbg key,find > findadv-20.logb.txt 2>&1 TestBegin test2.lyx -dbg key,find > findadv-20.logb.txt 2>&1
CN: Part 2 CN: Part 2
KD: 100
KK: \Cma \Cma \Cma \C\[Home] KK: \Cma \Cma \Cma \C\[Home]
KK: \CF KK: \CF
KK: a\[Tab] KK: a\[Tab]

View File

@ -1,5 +1,7 @@
# Test for searching with regular expressions # Test for searching with regular expressions
# Test for #8381 # Test for #8381
UseShortcut "C-F20" "regexp-mode"
PrepareShortcuts
Lang sk_SK.utf8 Lang sk_SK.utf8
CO: findadv-21.ctrl CO: findadv-21.ctrl
@ -24,7 +26,7 @@ KK: \CF
KK: \At\Ai\Ah KK: \At\Ai\Ah
KK: \CF KK: \CF
KK: \Aoe KK: \Aoe
KK: \Axregexp-mode\[Return][a-z]* \[Return]\[Return] KK: \C\[F20][a-z]* \[Return]\[Return]
Cr: ^.*Putting Cr: ^.*Putting
#Cr: ^.*action=buffer-begin #Cr: ^.*action=buffer-begin
CP: Putting selection at cur= inset: .* idx: 0 par: 3 pos: 0\n with len: 4 CP: Putting selection at cur= inset: .* idx: 0 par: 3 pos: 0\n with len: 4
@ -39,7 +41,7 @@ KK: \CF\[Delete]
#KK: \At\Ai\Ah #KK: \At\Ai\Ah
#KK: \CF #KK: \CF
KK: \Aol KK: \Aol
KK: \Axregexp-mode\[Return][a-z]2 \Axregexp-mode\[Return][a-z]+ KK: \C\[F20][a-z]2 \C\[F20][a-z]+
KK: \[Return]\[Return]\[Return]\[Return]\[Return]\[Return] KK: \[Return]\[Return]\[Return]\[Return]\[Return]\[Return]
Cr: ^.*Putting Cr: ^.*Putting
CP: Putting selection at cur= inset: .* idx: 0 par: 6 pos: 0\n with len: 8 CP: Putting selection at cur= inset: .* idx: 0 par: 6 pos: 0\n with len: 8

View File

@ -1,5 +1,8 @@
# Finding special latex/regexp chars: ( # Finding special latex/regexp chars: (
# #
UseShortcut "C-F20" "regexp-mode"
PrepareShortcuts
Lang it_IT.utf8 Lang it_IT.utf8
KD: 100 KD: 100
CO: findadv-re-01.ctrl CO: findadv-re-01.ctrl
@ -8,7 +11,7 @@ CN: Part 1
KK: \\()[]{}%^#@?*.\C\[Home] KK: \\()[]{}%^#@?*.\C\[Home]
KK: \Cs KK: \Cs
KK: \CF KK: \CF
KK: \Axregexp-mode\[Return]\\(\[Return] KK: \C\[F20]\\(\[Return]
CP: Putting selection at .*idx: 0 par: 0 pos: 1\n with len: 1 CP: Putting selection at .*idx: 0 par: 0 pos: 1\n with len: 1
TestEnd TestEnd
# #
@ -20,7 +23,7 @@ KK: \CF
# Uncheck ignore format # Uncheck ignore format
KK: \At\Ai\Ah KK: \At\Ai\Ah
KK: \CF KK: \CF
KK: \Axregexp-mode\[Return]\\(\[Return] KK: \C\[F20]\\(\[Return]
CP: Putting selection at .*idx: 0 par: 0 pos: 1\n with len: 1 CP: Putting selection at .*idx: 0 par: 0 pos: 1\n with len: 1
TestEnd TestEnd
@ -31,7 +34,7 @@ CO: >> findadv-re-01.ctrl
TestBegin test.lyx -dbg key,find >> findadv-re-01.loga.txt 2>&1 TestBegin test.lyx -dbg key,find >> findadv-re-01.loga.txt 2>&1
CN: Part 3 CN: Part 3
KK: \CF KK: \CF
KK: \Axregexp-mode\[Return]\\[\[Return] KK: \C\[F20]\\[\[Return]
CP: Putting selection at .*idx: 0 par: 0 pos: 3\n with len: 1 CP: Putting selection at .*idx: 0 par: 0 pos: 3\n with len: 1
TestEnd TestEnd
# #
@ -43,7 +46,7 @@ KK: \CF
# Uncheck ignore format # Uncheck ignore format
KK: \At\Ai\Ah KK: \At\Ai\Ah
KK: \CF KK: \CF
KK: \Axregexp-mode\[Return]\\[\[Return] KK: \C\[F20]\\[\[Return]
CP: Putting selection at .*idx: 0 par: 0 pos: 3\n with len: 1 CP: Putting selection at .*idx: 0 par: 0 pos: 3\n with len: 1
TestEnd TestEnd
Lang C Lang C

View File

@ -1,5 +1,8 @@
# Finding special latex/regexp chars: \ # Finding special latex/regexp chars: \
# #
UseShortcut "C-F20" "regexp-mode"
PrepareShortcuts
Lang it_IT.utf8 Lang it_IT.utf8
CO: findadv-re-02.ctrl CO: findadv-re-02.ctrl
TestBegin test.lyx -dbg key,find > findadv-re-02.loga.txt 2>&1 TestBegin test.lyx -dbg key,find > findadv-re-02.loga.txt 2>&1
@ -7,7 +10,7 @@ CN: Part 1
KK: \\()[]{}%^#@?*.\C\[Home] KK: \\()[]{}%^#@?*.\C\[Home]
KK: \Cs KK: \Cs
KK: \CF KK: \CF
KK: \Axregexp-mode\[Return]\\\\\[Return] KK: \C\[F20]\\\\\[Return]
CP: Putting selection at .*idx: 0 par: 0 pos: 0\n with len: 1 CP: Putting selection at .*idx: 0 par: 0 pos: 0\n with len: 1
TestEnd TestEnd
# #
@ -19,7 +22,7 @@ KK: \CF
# Uncheck ignore format # Uncheck ignore format
KK: \At\Ai\Ah KK: \At\Ai\Ah
KK: \CF KK: \CF
KK: \Axregexp-mode\[Return]\\\\\[Return] KK: \C\[F20]\\\\\[Return]
CP: Putting selection at .*idx: 0 par: 0 pos: 0\n with len: 1 CP: Putting selection at .*idx: 0 par: 0 pos: 0\n with len: 1
TestEnd TestEnd
@ -30,7 +33,7 @@ TestBegin test.lyx -dbg key,find >> findadv-re-02.loga.txt 2>&1
CN: Part 3 CN: Part 3
CO: >> findadv-re-02.ctrl CO: >> findadv-re-02.ctrl
KK: \CF KK: \CF
KK: \Axregexp-mode\[Return]%\[Return] KK: \C\[F20]%\[Return]
CP: Putting selection at .*idx: 0 par: 0 pos: 7\n with len: 1 CP: Putting selection at .*idx: 0 par: 0 pos: 7\n with len: 1
TestEnd TestEnd
# #
@ -42,7 +45,7 @@ KK: \CF
# Uncheck ignore format # Uncheck ignore format
KK: \At\Ai\Ah KK: \At\Ai\Ah
KK: \CF KK: \CF
KK: \Axregexp-mode\[Return]%\[Return] KK: \C\[F20]%\[Return]
CP: Putting selection at .*idx: 0 par: 0 pos: 7\n with len: 1 CP: Putting selection at .*idx: 0 par: 0 pos: 7\n with len: 1
TestEnd TestEnd
@ -53,7 +56,7 @@ CO: >> findadv-re-02.ctrl
TestBegin test.lyx -dbg key,find >> findadv-re-02.loga.txt 2>&1 TestBegin test.lyx -dbg key,find >> findadv-re-02.loga.txt 2>&1
CN: Part 5 CN: Part 5
KK: \CF KK: \CF
KK: \Axregexp-mode\[Return]\\^\[Return] KK: \C\[F20]\\^\[Return]
CP: Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 1 CP: Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 1
TestEnd TestEnd
# #
@ -65,7 +68,7 @@ KK: \CF
# Uncheck ignore format # Uncheck ignore format
KK: \At\Ai\Ah KK: \At\Ai\Ah
KK: \CF KK: \CF
KK: \Axregexp-mode\[Return]\\^\[Return] KK: \C\[F20]\\^\[Return]
CP: Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 1 CP: Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 1
TestEnd TestEnd
Lang C Lang C

View File

@ -1,5 +1,8 @@
# Finding special latex/regexp chars: { # Finding special latex/regexp chars: {
# #
UseShortcut "C-F20" "regexp-mode"
PrepareShortcuts
Lang it_IT.utf8 Lang it_IT.utf8
CO: findadv-re-03.ctrl CO: findadv-re-03.ctrl
TestBegin test.lyx -dbg key,find > findadv-re-03.loga.txt 2>&1 TestBegin test.lyx -dbg key,find > findadv-re-03.loga.txt 2>&1
@ -7,7 +10,7 @@ CN: Part 1
KK: \\()[]{}%^#@?*.\C\[Home] KK: \\()[]{}%^#@?*.\C\[Home]
KK: \Cs KK: \Cs
KK: \CF KK: \CF
KK: \Axregexp-mode\[Return]\\{\[Return] KK: \C\[F20]\\{\[Return]
CP: Putting selection at .*idx: 0 par: 0 pos: 5\n with len: 1 CP: Putting selection at .*idx: 0 par: 0 pos: 5\n with len: 1
TestEnd TestEnd
# #
@ -19,7 +22,7 @@ KK: \CF
# Uncheck ignore format # Uncheck ignore format
KK: \At\Ai\Ah KK: \At\Ai\Ah
KK: \CF KK: \CF
KK: \Axregexp-mode\[Return]\\{\[Return] KK: \C\[F20]\\{\[Return]
CP: Putting selection at .*idx: 0 par: 0 pos: 5\n with len: 1 CP: Putting selection at .*idx: 0 par: 0 pos: 5\n with len: 1
TestEnd TestEnd
# #
@ -30,7 +33,7 @@ CO: >> findadv-re-03.ctrl
TestBegin test.lyx -dbg key,find >> findadv-re-03.loga.txt 2>&1 TestBegin test.lyx -dbg key,find >> findadv-re-03.loga.txt 2>&1
CN: Part 3 CN: Part 3
KK: \CF KK: \CF
KK: \Axregexp-mode\[Return]\\}\[Return] KK: \C\[F20]\\}\[Return]
CP: Putting selection at .*idx: 0 par: 0 pos: 6\n with len: 1 CP: Putting selection at .*idx: 0 par: 0 pos: 6\n with len: 1
TestEnd TestEnd
# #
@ -42,7 +45,7 @@ KK: \CF
# Uncheck ignore format # Uncheck ignore format
KK: \At\Ai\Ah KK: \At\Ai\Ah
KK: \CF KK: \CF
KK: \Axregexp-mode\[Return]\\}\[Return] KK: \C\[F20]\\}\[Return]
CP: Putting selection at .*idx: 0 par: 0 pos: 6\n with len: 1 CP: Putting selection at .*idx: 0 par: 0 pos: 6\n with len: 1
Sleep 1 Sleep 1
TestEnd TestEnd

View File

@ -1,4 +1,6 @@
# Finding styles with regexp # Finding styles with regexp
UseShortcut "C-F20" "regexp-mode"
PrepareShortcuts
Lang sk_SK.utf8 Lang sk_SK.utf8
CO: findadv-re-04.ctrl CO: findadv-re-04.ctrl
@ -16,7 +18,7 @@ KK: \At\Ai\Ah
KK: \CF KK: \CF
KK: \Ce KK: \Ce
CN: Case insensitive, format not ignored .* CN: Case insensitive, format not ignored .*
KK: \Axregexp-mode\[Return].*\[Return] KK: \C\[F20].*\[Return]
Cr: ^.*Putting Cr: ^.*Putting
CP: Putting selection at .*idx: 0 par: 0 pos: 16\n with len: 9 CP: Putting selection at .*idx: 0 par: 0 pos: 16\n with len: 9
Cr: ^.*Putting Cr: ^.*Putting
@ -32,7 +34,7 @@ KK: \CF
KK: \At\Ai\Ah KK: \At\Ai\Ah
KK: \CF KK: \CF
KK: \Ce KK: \Ce
KK: \Axregexp-mode\[Return]\\b[a-z]*\\b\[Return]\[Return]\[Return] KK: \C\[F20]\\b[a-z]*\\b\[Return]\[Return]\[Return]
Cr: ^.*Putting Cr: ^.*Putting
CP: Putting selection at .*idx: 0 par: 0 pos: 16\n with len: 3 CP: Putting selection at .*idx: 0 par: 0 pos: 16\n with len: 3
Cr: ^.*Putting Cr: ^.*Putting
@ -50,7 +52,7 @@ KK: \CF
KK: \At\Ai\Ah KK: \At\Ai\Ah
KK: \CF KK: \CF
KK: \Ce KK: \Ce
KK: \Az\[Tab]\Axregexp-mode\[Return][a-z]+\[Return]\[Return]\[Return]\[Return] KK: \Az\[Tab]\C\[F20][a-z]+\[Return]\[Return]\[Return]\[Return]
Cr: ^.*Putting Cr: ^.*Putting
CP: Putting selection at .*idx: 0 par: 0 pos: 17\n with len: 2 CP: Putting selection at .*idx: 0 par: 0 pos: 17\n with len: 2
Cr: ^.*Putting Cr: ^.*Putting
@ -72,7 +74,7 @@ KK: \CF
KK: \At\Ai\Ah KK: \At\Ai\Ah
KK: \CF KK: \CF
KK: \Ce KK: \Ce
KK: \Az\[Tab]\Axregexp-mode\[Return][A-Z]+\[Return]\[Return]\[Return] KK: \Az\[Tab]\C\[F20][A-Z]+\[Return]\[Return]\[Return]
Cr: ^.*Putting Cr: ^.*Putting
CP: Putting selection at .*idx: 0 par: 0 pos: 16\n with len: 1 CP: Putting selection at .*idx: 0 par: 0 pos: 16\n with len: 1
Cr: ^.*Putting Cr: ^.*Putting

View File

@ -7,13 +7,16 @@
# It will fail if the Italian translation changes, if "ignore format" is # It will fail if the Italian translation changes, if "ignore format" is
# unchecked by default, or if the wrap-around mechanism changes (e.g. does not # unchecked by default, or if the wrap-around mechanism changes (e.g. does not
# ask if the cursor started at the beginning of the buffer). # ask if the cursor started at the beginning of the buffer).
UseShortcut "C-F20" "regexp-mode"
PrepareShortcuts
Lang it_IT.utf8 Lang it_IT.utf8
CO: findadv-re-05.ctrl CO: findadv-re-05.ctrl
TestBegin test.lyx -dbg key,find > findadv-re-05.loga.txt 2>&1 TestBegin test.lyx -dbg key,find > findadv-re-05.loga.txt 2>&1
KK: \Cm\\frac 1-x\[Down]1+x^2 \C\[Home] KK: \Cm\\frac 1-x\[Down]1+x^2 \C\[Home]
KK: \CF KK: \CF
KK: \Cm\\frac \Axregexp-mode\[Return].* \[Down]1+x^2 \[Return] KK: \Cm\\frac \C\[F20].* \[Down]1+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: raggiunta la fine cercando in avanti CP: raggiunta la fine cercando in avanti
TestEnd TestEnd
Lang C Lang C

View File

@ -1,4 +1,6 @@
# Finding regexps within \frac{} # Finding regexps within \frac{}
UseShortcut "C-F20" "regexp-mode"
PrepareShortcuts
Lang sk_SK.utf8 Lang sk_SK.utf8
CO: findadv-re-06.ctrl CO: findadv-re-06.ctrl
@ -9,7 +11,7 @@ KK: \CF
# Uncheck ignore format (depends on IT language) # Uncheck ignore format (depends on IT language)
KK: \At\Ai\Ah KK: \At\Ai\Ah
KK: \CF KK: \CF
KK: \Cm\\frac \Axregexp-mode\[Return].* \[Down]1+x^2 \[Return] KK: \Cm\\frac \C\[F20].* \[Down]1+x^2 \[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: 0\n with len: 1
TestEnd TestEnd
Lang C Lang C