From cebba91edb8bc17ef5ab373e7c5dbaf1e3676b1e Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 5 Jul 2013 13:48:22 +1000 Subject: Implemented tests for Qt on Linux. --- test/lexTests.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'test/lexTests.py') 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") -- cgit v1.2.3