#
Lang en_US.utf8
TestBegin ../bug-7673.lyx > lyx-log.txt 2>&1
-KK: \Ax
# 'outline-in' was needed to reproduce the crash on some commits when bisecting
-KD: 1
-KK: command-sequence repeat 3 char-forward; outline-in; down; down\[Return]
+KK: \Axcommand-sequence repeat 3 char-forward; outline-in; down; down\[Return]
TestEnd
Assert ! pcregrep -M 'SIGSEGV' lyx-log.txt
#
Lang en_US.utf8
TestBegin > lyx-log.txt 2>&1
-KK: \Ax
-KD: 1
-KK: command-sequence buffer-new; layout Itemize; self-insert a; paragraph-break; depth-increment; self-insert b; up; char-delete-backward; down\[Return]
+KK: \Axcommand-sequence buffer-new; layout Itemize; self-insert a; paragraph-break; depth-increment; self-insert b; up; char-delete-backward; down\[Return]
TestEnd
#
Lang en_US.utf8
TestBegin ../bug-8370.lyx > lyx-log.txt 2>&1
-KK: \Ax
-KD: 1
-KK: command-sequence change-next; change-reject; change-next\[Return]
+KK: \Axcommand-sequence change-next; change-reject; change-next\[Return]
TestEnd
Lang en_US.utf8
TestBegin > lyx-log.txt 2>&1
-KK: \Ax
-KK: lyxrc-apply \\spellchecker enchant\[Return]
-KK: \Ax
-KK: lyxrc-apply \\spellchecker enchant\[Return]
+KK: \Axlyxrc-apply \\spellchecker enchant\[Return]
+KK: \Axlyxrc-apply \\spellchecker enchant\[Return]
TestEnd
Assert ! pcregrep -M 'SIGSEGV' lyx-log.txt
Lang en_US.utf8
TestBegin ../bug-8684.lyx > lyx-log1.txt 2>&1
-KK: \Ax
-KD: 1
-KK: command-sequence change-next; change-reject; change-next\[Return]
+KK: \Axcommand-sequence change-next; change-reject; change-next\[Return]
TestEnd
TestBegin ../bug-8684.lyx > lyx-log2.txt 2>&1
-KK: \Ax
-KD: 1
-KK: command-sequence char-forward; change-next\[Return]
+KK: \Axcommand-sequence char-forward; change-next\[Return]
TestEnd
KK: a\[Tab]
KK: aba\[Return]\[Return]\[Return]
KK: \Cs
-KK: \Ax
-KK: buffer-export latex\[Return]
+KK: \Axbuffer-export latex\[Return]
Lang C
TestEnd grep "^abaabaa$" test.tex
KK: \CF
KK: \Cmx^(a) \[Tab]
KK: \Cmx_a
-KD: 500
KK: \[Return]\[Return]\[Return]
KD: 60
KK: \Cs
-KK: \Ax
-KK: buffer-export latex\[Return]
+KK: \Axbuffer-export latex\[Return]
Lang C
TestEnd grep '^\$x_{a}+\\frac{1+x_{a}}{1-x\^{(a)}}\$' test.tex
KK: \Cm
KK: x^2n\[Return]\[Return]
KK: \Cs
-KK: \Ax
-KK: buffer-export latex\[Return]
+KK: \Axbuffer-export latex\[Return]
Lang C
TestEnd grep '^\$x\^{2n}\$$' test.tex
KK: a\[Tab]
KK: \Cm\\frac 1\[Down]a\[Return]\[Return]\[Return]
KK: \Cs
-KK: \Ax
-KK: buffer-export latex\[Return]
+KK: \Axbuffer-export latex\[Return]
TestEnd
Lang C
Assert pcregrep -M '^\$\\frac\{1\}\{a\}\$ \$\\frac\{1\}\{a\}\$ a' test.tex
KK: a\[Tab]
KK: \Cm\\frac 1\[Down]a\[Return]\[Return]\[Return]
KK: \Cs
-KK: \Ax
-KK: buffer-export latex\[Return]
+KK: \Axbuffer-export latex\[Return]
TestEnd
Lang C
Assert pcregrep -M '^\$\\frac\{1\}\{a\}\$ \$\\frac\{1\}\{a\}\$ \$a\$' test2.tex
Lang sk_SK.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
-KK: This should be a LaTeX logo: \Axspecialchar-insert lyx\[Return]\[Return]
+KK: This should be a LaTeX logo:
+KK: \Axspecialchar-insert lyx\[Return]\[Return]
KK: for a WYSIWYG LaTeX editor.\C\[Home]
KK: \Cs
KK: \CF
KK: \CF
# Uncheck ignore format (depends on IT language)
KK: \At\Ai\Ah
-KK: \Ce\Axregexp-mode\[Return].*\[Return]
+KK: \Ce
+KK: \Axregexp-mode\[Return].*\[Return]
TestEnd
Lang C
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 6\n with len: 5' lyx-log.txt
status = lyx_status(lyx_pid)
return (status == "dead") or (status == "zombie")
-def sendKeystring(keystr, LYX_PID):
+def sendKeystringLocal(keystr, LYX_PID):
# print "sending keystring "+keystr+"\n"
xvpar.extend(["-wait_idle", lyx_pid])
xvpar.extend(["-window", lyx_window_name, "-delay", actual_delay, "-text", keystr])
+ print("Sending \"" + keystr + "\"\n")
subprocess.call(xvpar, stdout = FNULL, stderr = FNULL)
+Axreg = re.compile(r'^(.*)\\Ax([^\\]+)(.*)$')
+returnreg = re.compile(r'\\\[Return\](.*)$')
+
+def sendKeystring(line, LYX_PID):
+ global key_delay
+ saved_delay = key_delay
+ while True:
+ m = Axreg.match(line)
+ if m:
+ prefix = m.group(1)
+ if prefix != "":
+ sendKeystringLocal(prefix, LYX_PID)
+ content = m.group(2)
+ rest = m.group(3);
+ m2 = returnreg.match(rest)
+ sendKeystringLocal('\Ax', LYX_PID)
+ time.sleep(0.1)
+ if m2:
+ line = m2.group(1)
+ key_delay = "1"
+ sendKeystringLocal(content + '\[Return]', LYX_PID)
+ key_delay = saved_delay
+ else:
+ if content != "":
+ sendKeystringLocal(content, LYX_PID)
+ key_delay = saved_delay
+ return
+ else:
+ if line != "":
+ sendKeystringLocal(line, LYX_PID)
+ key_delay = saved_delay
+ return
+
def system_retry(num_retry, cmd):
i = 0
rtn = intr_system(cmd)