Commit Graph

52 Commits

Author SHA1 Message Date
Tommaso Cucinotta
ef7a142f3f Fixed longstanding bug in Advanced Find&Replace, when dealing with documents containing braces.
Corresponding test-case needed a fix as well and now it is passed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39518 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-25 19:16:14 +00:00
Tommaso Cucinotta
4622b215ba Added to the test-case the case that was actually failing (replacing with multi-cells inside math).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39280 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-12 15:55:32 +00:00
Tommaso Cucinotta
e87e2860e7 Added regression test for #7675 (ensure that after replacing multi-cell math contents the cursor is properly advanced).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39279 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-12 15:42:20 +00:00
Tommaso Cucinotta
db592baf0e Recovered autotests for *-in.txt tests.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39265 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-10 00:13:12 +00:00
Tommaso Cucinotta
bf5f1eb3e8 Added the possibility to build arbitrary scripts (*-in.sh) as tests. They are all launched
together with the others when typing 'make', and also they can be selectively
launched by using: ./run-tests.sh filename-in.sh.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39241 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-03 17:00:18 +00:00
Tommaso Cucinotta
a48baee56f Now Adv. F&R correctly interprets escape sequences within regexp insets, e.g., \\ or \(, for finding characters with a special meaning in regular expression context (\^()[]).
Added corresponding regression tests findadv-re-01 and -02 for finding these special characters.
Unfortunately, braces {} are a little bit special and don't work yet. Added findadv-re-03 regression test to not forget about this case.
This goes along the line of fixing issues reported by Andrew Parsloe and summarised as #7638.
Last note: Still there will be cases when the Advanced F&R won't work, especially if the text to be found and/or the search pattern is preceded by backslashes or others.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39135 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-19 16:41:23 +00:00
Tommaso Cucinotta
e607cbfbca Updated UserGuide after removal of macro insertion while in regexp mode.
Fixed regression case (now typing twice "\" leads to "\\", i.e., the regexp matching the backslash char).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39019 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-12 01:25:26 +00:00
Tommaso Cucinotta
3a603d760a Added test-case for regular expressions using "\" for backwards references (e.g., \1).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39018 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-12 01:23:07 +00:00
Tommaso Cucinotta
c7e609135a Now backslash-prefixed regexps like "\s", "\d", etc., are all understood by Advanced F&R.
Fixing issue 4 reported at: http://permalink.gmane.org/gmane.editors.lyx.devel/136992


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39016 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-12 00:12:26 +00:00
Tommaso Cucinotta
69ab1306a8 Avoid extra ' ' in text-only export of consecutive macros in math mode, for Advanced F&R matching, with ignore-format off.
For example, this wasn't allowing to match '\beta\alpha' in the sequence '\alpha\beta\alpha', as
in the accompanying regression test-case (added case for ignore-format off).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38888 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-29 14:08:29 +00:00
Tommaso Cucinotta
2d8108cf4c Avoid extra ' ' in text-only export of consecutive macros in math mode, for Advanced F&R matching.
For example, this wasn't allowing to match '\beta\alpha' in the sequence '\alpha\beta\alpha', as
in the accompanying regression test-case.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38883 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-29 13:40:34 +00:00
Tommaso Cucinotta
ec46b98d8c Fixed bug in matching at borders within *-environments with ignore-format off.
(related to #7596)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38863 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-27 21:14:36 +00:00
Tommaso Cucinotta
386c8291ed Fixed Advanced F&R issue in matching things at environment borders with ignore-format off.
Added accompanying regression tests for displayed math and numbered equations.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38860 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-27 20:39:58 +00:00
Tommaso Cucinotta
f1965e9ff1 Bugfix in how the search buffer was exported for the Advanced Find & Replace.
For example, before this footnotes were not correctly found.
Added also accompanying regression test.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38846 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-26 17:08:48 +00:00
Kornel Benko
b66dcc5536 Revert no intended change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38722 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-12 13:35:10 +00:00
Kornel Benko
45b61c6ecf 1.) Corrected internal compilation for Libintl
2.) Changed cmake-files accordingly
Patch from Jean-Marc Lasgouttes


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38606 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-06 19:24:54 +00:00
Tommaso Cucinotta
be9a7223c0 Added test for crash in current trunk (i.e., this is failing now).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38478 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-22 22:23:42 +00:00
Tommaso Cucinotta
25e3d90303 Added check for assertions or anomalous exits of LyX on TestEnd.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38477 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-22 22:23:16 +00:00
Tommaso Cucinotta
cd04601b6f A few clarifications, more TODOs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38411 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-16 10:58:20 +00:00
Tommaso Cucinotta
23258f5399 Regression test for #7442.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38384 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-14 22:21:18 +00:00
Vincent van Ravesteijn
eec88b7e5e Revert wrong previous commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37959 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-19 10:34:59 +00:00
Vincent van Ravesteijn
e52af5f897 Simplify logic in InsetRef::latex().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37958 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-19 10:31:43 +00:00
Tommaso Cucinotta
5619a45daf Checks that r37943 keeps doing its job.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37944 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-18 00:48:32 +00:00
Tommaso Cucinotta
1b929a0c45 When killing lyx instances, we may ignore failures of kill and killall (if the process is not found, it exited already).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37734 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-19 21:00:01 +00:00
Tommaso Cucinotta
8faded55d9 Replaced the Ctrl+Shft+r sequences for entering regexp-mode with [Alt+x]regexp-mode[Ret],
as the shortcut has gone.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37667 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-14 20:41:46 +00:00
Tommaso Cucinotta
16ba37879e Added test-case for finding (properly) LyX & LaTeX (special phrases exported
in Paragraph.cpp as the corresponding macros), when ignore format is off.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37601 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-12 11:06:09 +00:00
Tommaso Cucinotta
9e9874c0ab Avoid stop_autotests termination message when it is killed at normal termination of test-case.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37600 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-12 11:05:04 +00:00
Tommaso Cucinotta
ac56711021 Added version suffix to symlinks. Tested with --enable-version-suffix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37598 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-11 23:27:34 +00:00
Tommaso Cucinotta
dcf0eb944e Now the framework works running LyX in the language required by the test
script (if any) also when LyX is not installed on your system
(using a variant of the trick suggested by Enrico, i.e., create a symlink
locale from the LyX sources root to an autotests/locale folder).
At least, it does on Linux.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37589 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-10 22:33:23 +00:00
Tommaso Cucinotta
3596e02d6a Suppress killall output when killing STOP button.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37560 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-08 00:14:23 +00:00
Tommaso Cucinotta
16d57e550f Forgot to terminate the emergency button.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37552 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-07 23:37:34 +00:00
Tommaso Cucinotta
939796f137 Added emergency STOP button in tcl/tk window for immediate & painless termination of the tests.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37551 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-07 23:32:27 +00:00
Tommaso Cucinotta
eede499399 Allowed to set the default typing delay via environment variable.
Improved documentation of usage.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37523 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 23:14:49 +00:00
Tommaso Cucinotta
7dba92987c If XVKBD_HACKED env var is not set, then don't try to build any custom xvkbd.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37522 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 22:56:02 +00:00
Tommaso Cucinotta
89620e1481 Made use of internal hacked xvkbd optional. Now it is needed and
used only if the XVKBD_HACKED environment var is defined.
Made keytest.py exploit the -wait_idle option of the hacked xvkbd.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37521 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 22:50:07 +00:00
Tommaso Cucinotta
3a6bc0b36a More regular expression testing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37520 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 22:48:54 +00:00
Tommaso Cucinotta
252606610c Added -wait_idle option to wait for the target process to idle at each key press.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37519 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 22:47:33 +00:00
Tommaso Cucinotta
29c92d79a4 Added proper propagation of Ctrl-C from os.system()-executed command to keytest.py (makes stopping tests easier while they're running).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37518 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-06 22:16:51 +00:00
Tommaso Cucinotta
17f1377baf Saving a doc is faster and more reliable by Ctrl-s, rather than activating a menu (thx Pavel).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37449 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 09:13:19 +00:00
Pavel Sanda
eda9616158 fix findadv-03-in.txt
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37441 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 00:01:53 +00:00
Tommaso Cucinotta
1f51de3cd1 Added custom xvkbd for avoiding typing into other windows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37439 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-02 23:18:16 +00:00
Tommaso Cucinotta
ac7572f366 More precise identification of the lyx window (by id, instead of the buggy by title).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37410 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-01 22:57:10 +00:00
Tommaso Cucinotta
705759d678 Added the creation of a custom .lyx folder inside pwd/home/.lyx at
the beginning of the tests (which reconfigures LyX and takes some time),
followed by all of the tests using it. This way, we get only the default
configuration of LyX as a base, without being affected by individual users
custom configurations.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37408 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-01 22:08:07 +00:00
Pavel Sanda
fc1260b0bc Few touches of autotests
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37390 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-31 20:39:35 +00:00
Tommaso Cucinotta
37179bca4b Added test cases for format-aware searching of formatted text.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37380 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 19:46:05 +00:00
Tommaso Cucinotta
7e02f60ae6 keytest.py ignores now also whitespaces only lines.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37379 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 19:45:17 +00:00
Tommaso Cucinotta
e4df1f08fb Removed stripping of whitespaces from script commands.
Added the capability to ignore empty lines.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37378 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 19:44:31 +00:00
Tommaso Cucinotta
090aac89d0 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
2011-01-30 16:01:22 +00:00
Tommaso Cucinotta
cc694943a7 Refined description of syntax.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37376 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 16:00:01 +00:00
Tommaso Cucinotta
4d138a9f3d Avoid confusing the window name of a LyX instance with the one of
Thunderbird while displaying LyX mails or Firefox while displaying
LyX web pages.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37375 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-30 15:59:41 +00:00