diff options
author | Neil <nyamatongwe@gmail.com> | 2013-07-05 13:48:22 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-07-05 13:48:22 +1000 |
commit | cebba91edb8bc17ef5ab373e7c5dbaf1e3676b1e (patch) | |
tree | 5c597d2e75f1b883a2e5febd2cec5bb373614615 /test/lexTests.py | |
parent | a4560bc171c052aa73ba537c720638def526e49b (diff) | |
download | scintilla-mirror-cebba91edb8bc17ef5ab373e7c5dbaf1e3676b1e.tar.gz |
Implemented tests for Qt on Linux.
Diffstat (limited to 'test/lexTests.py')
-rw-r--r-- | test/lexTests.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/lexTests.py b/test/lexTests.py index 5c14bafc6..4d5cde4ff 100644 --- a/test/lexTests.py +++ b/test/lexTests.py @@ -2,11 +2,12 @@ from __future__ import with_statement -import io -import os -import unittest +import io, os, sys, unittest -import XiteWin +if sys.platform == "win32": + import XiteWin as Xite +else: + import XiteQt as Xite keywordsHTML = [ b"b body content head href html link meta " @@ -18,7 +19,7 @@ b"sub" class TestLexers(unittest.TestCase): def setUp(self): - self.xite = XiteWin.xiteFrame + self.xite = Xite.xiteFrame self.ed = self.xite.ed self.ed.ClearAll() self.ed.EmptyUndoBuffer() @@ -123,4 +124,4 @@ class TestLexers(unittest.TestCase): b"keyword6", b"keyword7"]) if __name__ == '__main__': - XiteWin.main("lexTests") + Xite.main("lexTests") |