1 # Finding numbered maths with ignore-format on&off (might affect #7596)
4 TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
5 KK: \CM\Axmath-number-toggle\[Return]
9 # Uncheck ignore format
11 KK: \CM\Axmath-number-toggle\[Return]
14 Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0\n with len: 1' lyx-log.txt
16 TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
18 # Uncheck ignore format
20 KK: \CM\Axmath-number-toggle\[Return]
21 KK: x^2\[Return]\[Return]
23 Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 2\n with len: 1' lyx-log.txt
25 TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
27 KK: \CM\Axmath-number-toggle\[Return]
30 Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 0\n with len: 1' lyx-log.txt
32 TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
34 KK: \CM\Axmath-number-toggle\[Return]
35 KK: x^2\[Return]\[Return]
37 Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 0\n.*idx: 0 par: 0 pos: 2\n with len: 1' lyx-log.txt