lyx_mirror/development/autotests/findadv-07-in.txt
2022-05-10 15:03:11 +02:00

52 lines
1.2 KiB
Plaintext

# 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"
UseShortcut "C-F30" "layout Itemize"
PrepareShortcuts
Lang sk_SK.utf8
CO: findadv-06.ctrl
Lang sk_SK.utf8
CO: findadv-07.ctrl
TestBegin test.lyx -dbg key,find > findadv-07.loga.txt 2>&1
KD: 100
CN: Part 1
KK: foo bar\[Return]
#select itemized
KK: \C\[F30]
KK: foo bar\[Return]
KK: \C\[F29]
KK: foo bar\C\[Home]
KK: \Axbuffer-write\[Return]
KK: \Axdialog-show findreplaceadv\[Return]
# Uncheck ignore format
KK: \At\Ar\Ak\Ah
KK: \CF
KK: \C\[F30]
Sleep 1
KK: foo\[Return]
CP: Putting selection at .*idx: 0 par: 1 pos: 0\n with len: 3
#
CN: Part 2
CP: Key (queried) [action=buffer-begin][Ctrl+Home]
KK: \[Escape]\C\[Home]
KK: \CF
KK: \[Delete]
# Uncheck ignore format
#KK: \At\Ar\Ak\Ah
#KK: \CF
KK: \C\[F30]
Sleep 1
KK: bar\[Return]
CP: Putting selection at .*idx: 0 par: 1 pos: 4\n with len: 3
TestEnd
Lang C
Assert searchPatterns.pl base=findadv-07