On 13/12/12 12:33, Kornel Benko wrote:
> Checking findadv-08-in.txt (Shouldn't we better create 3 logs here?)
That's possible/useful, sure. Feel free to apply modifications.
This is one of a few test cases where I had to increase the typing delay (KD:
200).
I just verified that commenting out that line the test fails, as it doesn't
seem to
manage to check the needed option properly. As a rough guess, it seems like the
GUI
manages to execute the [Enter] action before finishing the Alt+l, Alt+r actions
that are dispatched before -- increasing the waiting time there, fixed the
issue.
Though, there are a few cases in which this problem returns, and depending on
the
hardware and/or WM options, some of these tests may unnecessarily fail.
Sometimes, repeating the failing test leads to passing it, but I understand it's
not optimum.
As u said, till it's just me, but if there's at least someone else, and it
becomes
integrated in a standard testing process, then I'd like to fix these issues.
Can u pls try the attached test out ?
> P.S.
>
> Sorry if the private mail is not what you prefer here, but as we are ATM the
> only persons
Yes, perhaps someone else gets curious and volunteers to help writing a couple
of further tests.
T.
# Basic test for searching with regular expressions
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: Nel mezzo del cammin di nostra vita\[Return]
KK: mi ritrovai per una selva oscura\C\[Home]
KK: \Cs
KK: \CF
KK: o\Axregexp-mode\[Return].* a\[Return]
TestEnd
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 8\n with len: 8'
lyx-log.txt
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: \C\[Home]\CF
KK: o\Axregexp-mode\[Return][[:word:]]* a
KK: \Al\Ar
KD: 500
KK: \[Return]
KD: 60
TestEnd
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 1 pos: 26\n with len: 6'
lyx-log.txt
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: \C\[Home]\CF
KK: \Axregexp-mode\[Return].* \Al\Ar\[Return]\[Return]\[Return]
TestEnd
Assert pcregrep -M 'Putting selection at .*idx: 0 par: 0 pos: 10\n with len: 3'
lyx-log.txt