mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-04-08 17:15:37 +02:00
Update with https://www.scintilla.org/scintilla521.zip https://www.scintilla.org/lexilla515.zip - fix setting to bring Scintilla::PositionCR from ScintillaStructures.h inline with Sci_Position.h Sci_PositionCR - add workaround to enable lexer for searchResult commented out SCI_SETILEXER call on searchResult to get one result which is correctly handled by the lexer, added comment about the current problem with property @MarkingsStruct which seems to disappear after call to SCI_SETILEXER or CreateLexer - corrected usage of ObjC lexer - removed unnecessary filter stuff - use own sections for scintilla and lexilla build targets and allow parallel builds - as libscilex is no longer existing, changed to libscintilla - adapt makefiles and cmake - use VS2019 - started simple changes for createlexer adaptations, nullpointercheck missing on return of lexer name from deprecated LexerNameFromID -> undefined behaviour - movement from id -> lexer name, mostly done via LexerNameFromID + switching off corresponding compiler warning - changed to SCI_SETILEXER from SCI_SETLEXER, SCI_SETLEXERLANGUAGE needs to be corrected, see Scintilla5Migration.html - just commented out: SCI_LOADLEXERLIBRARY Fix #10504, close #11419
24 lines
837 B
Plaintext
24 lines
837 B
Plaintext
The test directory contains some unit and performance tests for Scintilla.
|
|
|
|
The tests can only be run on Windows 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.
|
|
Lexilla may be built before running tests but lexing tests will be skipped if Lexilla not available.
|
|
|
|
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
|
|
|
|
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
|
|
.
|