]> git.lyx.org Git - lyx.git/commit
Fix a broken autotest
authorScott Kostyshak <skostysh@lyx.org>
Mon, 24 Feb 2014 12:57:02 +0000 (07:57 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Mon, 24 Feb 2014 13:10:34 +0000 (08:10 -0500)
commit7409b5e18aabd01ee3dd08c47801032ceaeb6374
treec0a8b8a16dd599ba3fcffae210be099217801572
parent3cba653a6785b312b0ecacfe3ea2384bc8bf30ae
Fix a broken autotest

This test was broken after wrap-around search was implemented. From
what I understand, the point of the test is that search should _not_
match in this case because "ignore format" is checked by default.
Thus, a new way of testing that there was no match is to check whether
the wrap around message shows up, because the cursor is initially at
the beginning so that would mean that the entire buffer was checked.

I confirmed that the test now works by checking that it passes and
checking that it fails if "ignore format" is unchecked. Although this
test is still fragile, it is fragile in a conservative way (i.e. it
will give false failures rather than false passes). It will fail if
the Italian translation changes, if "ignore format" is unchecked by
default, or if the wrap-around mechanism changes (e.g. does not ask if
the cursor started at the beginning of the buffer).
development/autotests/findadv-re-05-in.txt