notepad-plus-plus/scintilla/test
Don HO d7819cf601
Upgrade Scintilla from v4.2.0 to v4.4.6
Close #8900, close #9550
2021-02-21 19:14:40 +01:00
..
examples Upgrade Scintilla from v4.2.0 to v4.4.6 2021-02-21 19:14:40 +01:00
gi Upgrade Scintilla from v3.56 to v4.14 2019-05-04 21:14:48 +03:00
unit Upgrade Scintilla from v4.2.0 to v4.4.6 2021-02-21 19:14:40 +01:00
MessageNumbers.py Upgrade Scintilla from 4.1.4 to 4.2.0 2019-07-22 13:08:41 +02:00
README Upgrade Scintilla from v3.56 to v4.14 2019-05-04 21:14:48 +03:00
ScintillaCallable.py Upgrade Scintilla from 4.1.4 to 4.2.0 2019-07-22 13:08:41 +02:00
XiteMenu.py [UPDATE] Update Scintilla to 3.3.4 2013-08-28 00:44:27 +00:00
XiteQt.py Upgrade Scintilla from v4.2.0 to v4.4.6 2021-02-21 19:14:40 +01:00
XiteWin.py Upgrade Scintilla from v4.2.0 to v4.4.6 2021-02-21 19:14:40 +01:00
lexTests.py Upgrade Scintilla from v4.2.0 to v4.4.6 2021-02-21 19:14:40 +01:00
performanceTests.py Upgrade Scintilla from v4.2.0 to v4.4.6 2021-02-21 19:14:40 +01:00
simpleTests.py Upgrade Scintilla from v4.2.0 to v4.4.6 2021-02-21 19:14:40 +01:00
win32Tests.py Upgrade Scintilla from v4.2.0 to v4.4.6 2021-02-21 19:14:40 +01:00
xite.py Upgrade Scintilla from v4.2.0 to v4.4.6 2021-02-21 19:14:40 +01:00

README

The test directory contains some unit and performance tests for Scintilla.

The tests can only be run on Windows or Linux/Qt using Python 2.7 or 3.x.
Python 2.7+ is required because the bytes string type and literals are available.
Scintilla must be built before running any tests.

A test application for Windows only is in xite.py and this can be run to experiment:
pythonw xite.py

To run the basic tests:
python simpleTests.py

There are some lexing tests with simple input files in several languages in the examples
subdirectory and their expected lexed states in *.styled where the start of each style
is marked with {styleNumber}, for example:
{15}<%@{16}language=javas{15}%>{0}

To run the lexing tests:
python lexTests.py

To check for performance regressions:
python performanceTests.py
While each test run will be different and the timer has only limited granularity, some results
from a 2 GHz Athlon with a DEBUG build are:
 0.187 testAddLine
. 0.203 testAddLineMiddle
. 0.171 testHuge
. 0.203 testHugeInserts
. 0.312 testHugeReplace
.