From: Tommaso Cucinotta Date: Sun, 30 Jan 2011 16:01:22 +0000 (+0000) Subject: Added Lang command to test cases. Added a couplr of regression tests for Advanced... X-Git-Tag: 2.0.0~961 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=090aac89d0e8315a25f158d9f34e60aae8cc5c44;p=features.git Added Lang command to test cases. Added a couplr of regression tests for Advanced F&R. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37377 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/development/autotests/findadv-01-in.txt b/development/autotests/findadv-01-in.txt index c731269044..c59e119d38 100644 --- a/development/autotests/findadv-01-in.txt +++ b/development/autotests/findadv-01-in.txt @@ -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 diff --git a/development/autotests/findadv-02-in.txt b/development/autotests/findadv-02-in.txt index 91cd265a1d..626b106916 100644 --- a/development/autotests/findadv-02-in.txt +++ b/development/autotests/findadv-02-in.txt @@ -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 index 0000000000..945e542360 --- /dev/null +++ b/development/autotests/findadv-03-in.txt @@ -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 index 0000000000..ce01ddc951 --- /dev/null +++ b/development/autotests/findadv-04-in.txt @@ -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