lyx_mirror/development/autotests/findadv-combined-in.txt
Kornel Benko 09e5acba11 keytests: Rewritten to use searchPatterns.pl instead of pcregrep
Also corrected output of keytest.py. Messages from called
programs were output to stdout wile own printed messages
were still cached.
2017-05-17 12:12:55 +02:00

205 lines
4.6 KiB
Plaintext

# Finding special latex/regexp chars: \
#
Lang sk_SK.utf8
TestBegin test.lyx -dbg key,find > findadv-combined.loga.txt 2>&1
CO: findadv-combined.ctrl
CP: Key (queried) [action=buffer-begin][Ctrl+Home]
# String to be checked
KK: \\()[]{}%^#@?*.\[Return]
KK: \\()[]{}%^#@?*.\[Return]
KK: \\()[]{}%^#@?*.\[Return]
KK: \\()[]{}%^#@?*.\[Return]
KK: \\()[]{}%^#@?*.\[Return]
KK: \\()[]{}%^#@?*.\[Return]
KK: \\()[]{}%^#@?*.\[Return]
KK: \\()[]{}%^#@?*.\[Return]
KK: \Cs
#
# First tests with ignore format set
# The tests are not separated by \[Home] in order to
# be found at possibly different inset
#
#
KK: \[Escape]\C\[Home]
CP: Key (queried) [action=buffer-begin][Ctrl+Home]
CN: Searching for '@'
KK: \CF
KK: \[Delete]
KK: \Axregexp-mode\[Return]\\@\[Return]
KK: \[Escape]
CP: Escaped : '\@'
CR: [pP]utting selection at .*idx: 0 par: 0 pos: 10\n with len: 1
#
CN: Searching for '('
KK: \CF
KK: \[Delete]
KK: \Axregexp-mode\[Return]\\(\[Return]
KK: \[Escape]
CP: Escaped : '\('
CP: Putting selection at .*idx: 0 par: 1 pos: 1\n with len: 1
#
CN: Searching for ')'
KK: \CF
KK: \[Delete]
KK: \Axregexp-mode\[Return]\\)\[Return]
KK: \[Escape]
CP: Escaped : '\)'
CP: Putting selection at .*idx: 0 par: 1 pos: 2\n with len: 1
#
CN: Searching for '\\'
KK: \CF
KK: \[Delete]
KK: \Axregexp-mode\[Return]\\\\\[Return]
KK: \[Escape]
CP: Escaping: '\backslash\backslash'
CP: Putting selection at .*idx: 0 par: 2 pos: 0\n with len: 1
#
CN: Searching for '%'
KK: \CF
KK: \[Delete]
KK: \Axregexp-mode\[Return]%\[Return]
KK: \[Escape]
CP: Escaped : '%'
CP: Putting selection at .*idx: 0 par: 2 pos: 7\n with len: 1
#
CN: Searching for '^'
KK: \CF
KK: \[Delete]
KK: \Axregexp-mode\[Return]\\^\[Return]
KK: \[Escape]
CP: Escaped : '\^'
CP: Putting selection at .*idx: 0 par: 2 pos: 8\n with len: 1
#
CN: Searching for '['
KK: \CF
KK: \[Delete]
KK: \Axregexp-mode\[Return]\\[\[Return]
KK: \[Escape]
CP: Escaped : '\['
CP: Putting selection at .*idx: 0 par: 3 pos: 3\n with len: 1
#
CN: Searching for ']'
KK: \CF
KK: \[Delete]
KK: \Axregexp-mode\[Return]\\]\[Return]
KK: \[Escape]
CP: Escaped : '\]'
CP: Putting selection at .*idx: 0 par: 3 pos: 4\n with len: 1
#
CN: Searching for '{'
KK: \CF
KK: \[Delete]
KK: \Axregexp-mode\[Return]\\{\[Return]
KK: \[Escape]
CP: Escaping: '\backslash\{'
CP: Putting selection at .*idx: 0 par: 3 pos: 5\n with len: 1
#
CN: Searching for '}'
KK: \CF
KK: \[Delete]
KK: \Axregexp-mode\[Return]\\}\[Return]
KK: \[Escape]
CP: Escaping: '\backslash\}'
CP: Putting selection at .*idx: 0 par: 3 pos: 6\n with len: 1
CN: ..
CN: Now tests with unchecked ignore format
CN: ..
#
KK: \CF
# Uncheck ignore format
KK: \At\Ai\Ah
KK: \[Escape]\C\[Home]
CP: Key (queried) [action=buffer-begin][Ctrl+Home]
#
CN: Searching for '['
KK: \CF
KK: \[Delete]
KK: \Axregexp-mode\[Return]\\[\[Return]
KK: \[Escape]
CP: Escaped : '\['
CP: Putting selection at .*idx: 0 par: 0 pos: 3\n with len: 1
#
CN: Searching for '('
KK: \CF
KK: \[Delete]
KK: \Axregexp-mode\[Return]\\(\[Return]
KK: \[Escape]
CP: Escaped : '\('
CP: Putting selection at .*idx: 0 par: 1 pos: 1\n with len: 1
#
CN: Searching for ')'
KK: \CF
KK: \[Delete]
KK: \Axregexp-mode\[Return]\\)\[Return]
KK: \[Escape]
CP: Escaped : '\)'
CP: Putting selection at .*idx: 0 par: 1 pos: 2\n with len: 1
#
CN: Searching for '\\'
KK: \CF
KK: \[Delete]
KK: \Axregexp-mode\[Return]\\\\\[Return]
KK: \[Escape]
CP: Escaped : '\\'
CP: Putting selection at .*idx: 0 par: 2 pos: 0\n with len: 1
#
CN: Searching for '%'
KK: \CF
KK: \[Delete]
KK: \Axregexp-mode\[Return]%\[Return]
KK: \[Escape]
CP: Escaped : '%'
CP: Putting selection at .*idx: 0 par: 2 pos: 7\n with len: 1
#
CN: Searching for '^'
KK: \CF
KK: \[Delete]
# Uncheck ignore format
KK: \Axregexp-mode\[Return]\\^\[Return]
KK: \[Escape]
CP: Escaped : '\^'
CP: Putting selection at .*idx: 0 par: 2 pos: 8\n with len: 1
#
CN: Searching for '{'
KK: \CF
KK: \[Delete]
KK: \Axregexp-mode\[Return]\\{\[Return]
KK: \[Escape]
CP: Escaping: '\backslash\{'
CP: Putting selection at .*idx: 0 par: 3 pos: 5\n with len: 1
#
CN: Searching for '}'
KK: \CF
KK: \[Delete]
KK: \Axregexp-mode\[Return]\\}\[Return]
KK: \[Escape]
CP: Escaping: '\backslash\}'
CP: Putting selection at .*idx: 0 par: 3 pos: 6\n with len: 1
#
CN: Searching for ']'
KK: \CF
KK: \[Delete]
KK: \Axregexp-mode\[Return]\\]\[Return]
KK: \[Escape]
CP: Escaped : '\]'
CP: Putting selection at .*idx: 0 par: 4 pos: 4\n with len: 1
#
CN: Searching for '@'
KK: \CF
KK: \[Delete]
KK: \Axregexp-mode\[Return]\\@\[Return]
KK: \[Escape]
CP: Escaped : '\@'
CP: Putting selection at .*idx: 0 par: 4 pos: 10\n with len: 1
#
TestEnd
CC:
Assert searchPatterns.pl log=findadv-combined.loga.txt patterns=findadv-combined.ctrl