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
This commit is contained in:
Tommaso Cucinotta 2011-02-06 23:14:49 +00:00
parent 7dba92987c
commit eede499399
3 changed files with 20 additions and 1 deletions

View File

@ -37,6 +37,19 @@ as argument to the run-tests.sh script, e.g.:
For failed tests you get a folder with the logs that help you identify
the problem.
Despite the efforts to avoid it, sometimes a test fails simply because
the key presses provided to the process are someway lost due to slow
hardware, slow window manager, too beautiful and animated desktop,...
When this happens, the tests should be run with a higher delay among
key presses. The default of 100 milliseconds can be changed by setting
the XVKBD_DELAY environment variable.
The standard xvkbd available on your system may be used to run the
tests. However, a custom xvkbd may optionally be used that forbids the
testing framework to type into non-LyX windows and may mitigate the
issue described right above. This option can be activated by defining
the XVKBD_HACKED environment variable to any value.
SYNTAX
----------------------------------------------------------------------

View File

@ -44,6 +44,9 @@
# \[Tab] ........ sends a Tab character
# \[Return] ..... sends a Return
#
# KD: n
# Changes the delay among typed charactes to n milliseconds.
#
#
# This example instructs LyX to type "Hello World", then exports it as
# LaTeX, and verifies that the typed characters are indeed present in the

View File

@ -20,7 +20,6 @@ print 'Beginning keytest.py'
FNULL = open('/dev/null', 'w')
def_delay = '60'
key_delay = ''
class CommandSource:
@ -262,6 +261,10 @@ if xvkbd_exe is None:
xvkbd_hacked = os.environ.get('XVKBD_HACKED') != None
def_delay = os.environ.get('XVKBD_DELAY')
if def_delay is None:
def_delay = '100'
file_new_command = os.environ.get('FILE_NEW_COMMAND')
if file_new_command is None:
file_new_command = "\Afn"