]> git.lyx.org Git - lyx.git/blob - development/autotests/findadv-08-in.txt
keytests: rewritten testcases to use the new searching engine searchPatterns.pl
[lyx.git] / development / autotests / findadv-08-in.txt
1 # Basic test for searching with regular expressions
2 UseShortcut "C-F20" "regexp-mode"
3 UseShortcut "C-F21" "command-sequence dialog-show findreplaceadv ; buffer-end ; buffer-begin-select ; char-delete-forward ;"
4 PrepareShortcuts
5 #
6 Lang sk_SK.utf8
7 CO: findadv-08.ctrl
8 TestBegin test.lyx -dbg key,find > findadv-08.loga.txt 2>&1
9 CN: Part 1
10 Cr: ^.*Putting
11 CP: Key (queried) [action=buffer-begin][Ctrl+Home]
12 KK: Nel mezzo del cammin di nostra vita\[Return]
13 KK: mi ritrovai per una selva oscura\C\[Home]
14 KK: \Axbuffer-write\[Return]
15 KK: \C\[F21]
16 KK: o
17 KK: \C\[F20]
18 KK: .* a\[Return]
19 CP: Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 8
20 #
21 CN: Started Part 2
22 CP: Key (queried) [action=buffer-begin][Ctrl+Home]
23 KK: \[Escape]\C\[Home]\C\[F21]
24 KK: o
25 KK: \C\[F20]
26 KK: [\\w]* a
27 KD: 100
28 # select whole words
29 KK: \Ae
30 # search next
31 KK: \Al
32 KK: \[Escape]
33 KD: 1
34 Cr: ^.*Putting
35 CP: Putting selection at .*idx: 0 par: 1 pos: 26\n with len: 6
36 #
37 CN: Part 3
38 CP: Key (queried) [action=buffer-begin][Ctrl+Home]
39 KK: \[Escape]\C\[Home]\C\[F21]
40 KK: \C\[F20]
41 KK: .* 
42 KK: \[Return]\[Return]\[Return]
43 Cr: ^.*Putting
44 CP: Putting selection at .*idx: 0 par: 0 pos: 0\n with len: 3
45 Cr: ^.*Putting
46 CP: Putting selection at .*idx: 0 par: 0 pos: 4\n with len: 5
47 Cr: ^.*Putting
48 CP: Putting selection at .*idx: 0 par: 0 pos: 10\n with len: 3
49 TestEnd
50 Lang C
51 Assert searchPatterns.pl base=findadv-08
52