aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2017-06-09Use 64-bit safe type for return from Scintilla.Neil1-2/+2
Allows pointer returning methods like GetRangePointer to work in 64-bit code.
2017-06-09Avoid signed safety warnings from GCC 7.Neil1-2/+2
2017-05-21Make SparseVector work with move-only types.Neil2-20/+66
Define UniqueString as a move-only string and use in a SparseVector for ContractionState. Remove SparseVector method specializations that are no longer needed.
2017-05-21Make SplitVector work with move-only types like unique_ptr.Neil5-6/+19
Provide InsertEmpty and both const and non-const reference returning operator[]. Add and fix comments.
2017-05-10Update unit test to match header change.Neil1-0/+1
2017-05-02Avoid explicit allocation in test.Neil1-12/+8
2017-04-29Use std::unique_ptr, std::vector, and move construction to simplify UndoHistoryNeil1-0/+1
and make it easier to modify. Remove out of date warning suppression.
2017-04-22Include <memory> for std::unique_ptr.Neil9-0/+9
2017-04-19Use =delete for unwanted functions.Neil1-2/+2
2017-04-03Fix test which was broken by encapsulation of revision 6195.Neil1-1/+1
2017-04-01Standardize on C++ headers, remove headers that aren't needed and add <cstddef>Neil8-9/+8
where it may be needed in the future.
2017-03-16Fix use-after-free in fold tags when top line folded then new top line inserted.Neil1-0/+12
In SparseVector, string inserted at start then NULL inserted at start.
2017-02-04Ensure std::cerr is available in automated tests.Neil1-0/+1
2016-11-12Note required packages. Ensure filtered header is cleaned by make clean.Neil1-1/+5
2016-10-18Add SparseVector template as a new data structure for storing per-line dataNeil1-0/+185
which is 0 or NULL for most lines.
2016-10-18Visual Studio project for running unit tests makes it easier to debug them.Neil3-0/+218
Debugging visualizer for SplitVector helps understand state of objects.
2016-10-08Fix minor warnings in unit tests from MSVC 64-bit.Neil4-27/+27
2016-09-30Enable SplitVector to store objects by using std::copy to copy elements insteadNeil1-0/+104
of memmove and memcpy. This allows SplitVector<std::string> to work.
2016-09-07Add test cases for WordList::InListAbbreviated.oirfeodent1-0/+16
2016-09-07Add InListAbridged to WordList.oirfeodent1-0/+22
2016-08-25Add unit tests for WordList class.Neil3-0/+34
2016-05-17Enable g-ir-scanner to scan ScintillaObject signalsThomas Martitz4-13/+254
Currently, the ScintillaObject signals can't be used from python code via gobject-introspection. This is because g-ir-scanner does not properly scan the signals. For signals, there is the additional requirement that parameters have are registered GTypes. For the sci-notify signal, this can be accomplished by boxing SCNotification. In addition, g-ir-scanner also runs on Scintilla.h where it picks up additional structs. test/gi/ is updated accordingly. The test python script is enhanced to showcase the signals (some fixes to the makefile are included as well).
2016-05-17Backed out changeset: 89cda794d0dd as fixed changeset will be sent by author.Neil4-254/+13
2016-04-26Enable g-ir-scanner to scan ScintillaObject signalsThomas Martitz4-13/+254
Currently, the ScintillaObject signals can't be used from python code via gobject-introspection. This is because g-ir-scanner does not properly scan the signals. For signals, there is the additional requirement that parameters have are registered GTypes. For the sci-notify signal, this can be accomplished by boxing SCNotification. In addition, g-ir-scanner also runs on Scintilla.h where it picks up additional structs. test/gi/ is updated accordingly. The test python script is enhanced to showcase the signals (some fixes to the makefile are included as well).
2016-05-05Make Open work again and print out message when SciLexer can't be found.Neil1-5/+9
2016-02-23Retry OpenClipboard if it fails as another application may have opened it.Neil1-3/+4
2016-02-09Fix 64-bit build on Windows which was broken in 3.6.3 as long only 32-bits.Neil1-1/+1
2016-01-05Fix module ::-syntax when special characters such as 'x' are used.Kein-Hong Man1-1/+1
Added ' and " detection as prefix chars for x repetition operator.
2015-12-28Fix typo.Neil1-1/+1
2015-12-28Bug [#1797]. Highlight changed subroutine prototype syntax for Perl 5.20.Kein-Hong Man3-2/+489
2015-12-18Bug [#1793]. Add support for Perl 5.22.Kein-Hong Man3-21/+421
Double-diamond operator <<>> Hexadecimal floating point literals Repetition in list assignment Added example file to the lexing tests and changed lexing tests to allow larger files and to standardise on Unix line ends when testing these larger files to avoid spurious failures.
2015-12-15Minor cleanups for GObject introspection.Neil1-1/+1
Avoid doc-comment in header as they are interpreted by g-ir-scanner, fix a typo, remove empty lines, add to change log.
2015-12-13Fix issues raised by review and some moreThomas Martitz2-10/+24
- remove any notion of deprecation of legacy symbol names - make sure typelib search path is set for test program - add separate test target to test/gi/makefile - improve g-ir-scanner call command line - fixed gtk2 support of test test/gi/gi-test.py
2015-09-30Add a test suite to check gobject-introspection dataThomas Martitz3-0/+184
The test suite acts also as an example for downstream projects to generate gobject-introspection data. A known-good .gir file is checked in for checking results in the future. Lastly, a small python uses the gobject-introspection data to create a small editor window. The change to gtk/makefile is because scintilla needs to be in a shared library for the python program. Therefore scintilla.a has to be compiled with -fPIC.
2015-11-20Remove line end whitespace.Neil2-2/+2
2015-09-04Bug [#1757]. Treat CRLF as two characters in SCI_COUNTCHARACTERS.Neil1-0/+8
2015-07-27Add Position.h as a place-holder and to allow #include "Position.h" in source.Neil6-0/+6
2015-07-04Unit tests need to see std::exception now.Neil3-0/+3
2015-06-11Added MultipleSelectAddNext, MultipleSelectAddEach, IsRangeWord, andNeil1-0/+54
TargetWholeDocument.
2015-04-14Ensure SCI_TEXTHEIGHT uses valid style data and remove test pauses thatNeil1-3/+0
hid this.
2014-12-22Avoid warning from cppcheck.Neil1-3/+2
2014-12-22Replace function UnicodeFromBytes with UnicodeFromUTF8 as they are exactly theNeil2-0/+45
same. Add unit tests for UnicodeFromUTF8.
2014-08-08Implement explicit tab stops per line.Neil1-0/+74
From Nick Gravgaard.
2014-08-08Remove extra whitespace.Neil1-10/+10
2014-05-24Removing style byte indicators.Neil1-4/+0
2014-05-21Updated to current version of Catch as fixes issues reported by undefinedNeil1-555/+398
behaviour sanitizer.
2014-05-15Don't try to use sanitizers on OS X as not built into Clang.Neil Hodgson1-2/+5
2014-05-15Support Clang on Linux and turn on the address and undefined behaviourNeil1-1/+6
sanitizers.
2014-05-15Update Catch unit testing framework to current build 43 as it avoids someNeil1-1989/+3048
warnings from Clang.
2014-01-14Avoid warnings from cppcheck for testing code.Neil1-0/+2