]> git.lyx.org Git - features.git/commitdiff
Added Lang command to test cases. Added a couplr of regression tests for Advanced...
authorTommaso Cucinotta <tommaso@lyx.org>
Sun, 30 Jan 2011 16:01:22 +0000 (16:01 +0000)
committerTommaso Cucinotta <tommaso@lyx.org>
Sun, 30 Jan 2011 16:01:22 +0000 (16:01 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37377 a592a061-630c-0410-9148-cb99ea01b6c8

development/autotests/findadv-01-in.txt
development/autotests/findadv-02-in.txt
development/autotests/findadv-03-in.txt [new file with mode: 0644]
development/autotests/findadv-04-in.txt [new file with mode: 0644]

index c731269044e1d2f79f41bde300d7afe836a8ee28..c59e119d381ddfb66bb306ef694bee57701e3ff5 100644 (file)
@@ -1,6 +1,7 @@
 # After replacing with something that matches the search pattern, the next
 # match should not consider the just replaced text (#4388)
 #
+Lang it_IT.utf8
 TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
 KK: aaa\[Home]
 KK: \CF
index 91cd265a1dc9d0b76b288d7542462d8083513cb8..626b1069168a1deaeadc7d51db5a6f8e115be7f7 100644 (file)
@@ -1,5 +1,6 @@
 # Basic test on refactoring of mathematics notation
 #
+Lang it_IT.utf8
 TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
 KK: \Cm
 KK: x^(a) +\\frac 1+x^(a) \[Down]1-x^(a)  \C\[Home]
diff --git a/development/autotests/findadv-03-in.txt b/development/autotests/findadv-03-in.txt
new file mode 100644 (file)
index 0000000..945e542
--- /dev/null
@@ -0,0 +1,19 @@
+#
+Lang it_IT.utf8
+TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
+KK: \Cm
+KK: x^2 -x^2\C\[Home]
+KK: \Afs
+KK: \CF
+KK: \Cm
+KK: x^2\[Return]
+TestEnd pcregrep -M "Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0" lyx-log.txt
+TestBegin test2.lyx -dbg find > lyx-log2.txt 2>&1
+KK: \Cm
+KK: x^2 -x^2\C\[Home]
+KK: \Afs
+KK: \CF
+KK: \Cm
+KK: x^2\[Return]\[Return]
+TestEnd
+Assert pcregrep -M "Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 2" lyx-log2.txt
diff --git a/development/autotests/findadv-04-in.txt b/development/autotests/findadv-04-in.txt
new file mode 100644 (file)
index 0000000..ce01ddc
--- /dev/null
@@ -0,0 +1,15 @@
+# Regression test for #7245
+#
+Lang it_IT.utf8
+TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
+KK: \Cm
+KK: x^2\C\[Home]
+KK: \CF
+KK: \Cm
+KK: x^2\[Tab]
+KK: \Cm
+KK: x^2n\[Return]\[Return]\[Escape]
+KK: \Afs
+KK: \Ax
+KK: buffer-export latex\[Return]
+TestEnd grep '^\$x\^{2n}\$$' test.tex