]> git.lyx.org Git - features.git/commitdiff
Make some findadv-tests working again, more to follow
authorKornel Benko <kornel@lyx.org>
Fri, 15 Jan 2021 16:13:07 +0000 (17:13 +0100)
committerKornel Benko <kornel@lyx.org>
Fri, 15 Jan 2021 16:13:07 +0000 (17:13 +0100)
Some shortcuts in cua do not work anymore
so replacing them with virtual shortcus for tests only
seems a good way.

development/autotests/findadv-05-in.txt
development/autotests/findadv-06-in.txt

index 1f4ba89d79f60c3184b9770d1fca92e01c7f1e20..c2a8f251e86b07391b9ac326b45043f83f5af00a 100644 (file)
@@ -21,7 +21,8 @@ CP: Key (queried) [action=buffer-begin][Ctrl+Home]
 KK: \[Escape]\C\[Home]
 KK: \CF
 KK: \[Delete]
 KK: \[Escape]\C\[Home]
 KK: \CF
 KK: \[Delete]
-# Unchecked ignore format and emphasised already set
+# Unchecked ignore format and emphasised not set because of [Delete]
+KK: \Ce
 KK: foo\[Return]\[Return]
 CP: Putting selection at .*idx: 0 par: 0 pos: 4\n with len: 3
 CP: Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 3
 KK: foo\[Return]\[Return]
 CP: Putting selection at .*idx: 0 par: 0 pos: 4\n with len: 3
 CP: Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 3
index 164df32cc1003d4630d183bb4210c7a50f676cc7..c75050fffa6fb99e26015f70db47cb10805b3132 100644 (file)
@@ -1,23 +1,29 @@
 # Basic test for searching with par-style awareness
 # Basic test for searching with par-style awareness
+UseShortcut "C-F20" "layout Part"
+UseShortcut "C-F21" "layout Chapter"
+UseShortcut "C-F22" "layout Section"
+UseShortcut "C-F23" "layout Subsection"
+UseShortcut "C-F24" "layout Subsubsection"
+UseShortcut "C-F25" "layout Paragraph"
+UseShortcut "C-F26" "layout Subparagraph"
+UseShortcut "C-F29" "layout Standard"
 
 
+PrepareShortcuts
 Lang sk_SK.utf8
 CO: findadv-06.ctrl
 TestBegin test.lyx -dbg key,find > findadv-06.loga.txt 2>&1
 Lang sk_SK.utf8
 CO: findadv-06.ctrl
 TestBegin test.lyx -dbg key,find > findadv-06.loga.txt 2>&1
-KD: 50
+KD: 100
 CN: Part 1
 KK: foo\[Return]
 CN: Part 1
 KK: foo\[Return]
-KK: \Ao2
-KK: foo\[Return]
-KK: \Ao9
-KK: foo\C\[Home]
+KK: \C\[F22]foo\[Return]
+KK: \C\[F29]foo\C\[Home]
 KK: \Axbuffer-write\[Return]
 KK: \Axdialog-show findreplaceadv\[Return]
 # Uncheck ignore format
 KK: \At\Ai\Ah
 KK: \CF
 KK: \Axbuffer-write\[Return]
 KK: \Axdialog-show findreplaceadv\[Return]
 # Uncheck ignore format
 KK: \At\Ai\Ah
 KK: \CF
-KK: \Aj
-KK: \Ao2
-KK: foo\[Return]
+#KK: \Aj
+KK: \C\[F22]foo\[Return]
 CP: Putting selection at .*idx: 0 par: 1 pos: 0\n with len: 3
 #
 CN: Part 2
 CP: Putting selection at .*idx: 0 par: 1 pos: 0\n with len: 3
 #
 CN: Part 2
@@ -28,7 +34,7 @@ KK: \[Delete]
 # Uncheck ignore format
 #KK: \At\Ai\Ah
 #KK: \CF
 # Uncheck ignore format
 #KK: \At\Ai\Ah
 #KK: \CF
-KK: \Ao9
+KK: \C\[F29]
 KK: foo\[Return]\[Return]\[Return]
 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
 KK: foo\[Return]\[Return]\[Return]
 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