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 | 55c1fa87f06d05b7bf5e111285fc7bce4e44e060 (patch) | |
tree | 5f60e23154daf9174c79849a9495bbd63323f84d /test/lexTests.py | |
parent | 8fa6f961169fd79d631a6a49e8fa2877e2579807 (diff) | |
download | scintilla-mirror-55c1fa87f06d05b7bf5e111285fc7bce4e44e060.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") |