aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/lexTests.py
diff options
context:
space:
mode:
authornyamatongwe <unknown>2012-03-25 20:30:01 +1100
committernyamatongwe <unknown>2012-03-25 20:30:01 +1100
commitcd9968e9193f3654ad1349625733c20e4bf5c436 (patch)
tree2c7fd0cce1f0983de8a017752b27eaa9d3c71279 /test/lexTests.py
parentb53374b371b1f0970edcbcfcb9ba9cd14d3f6aa8 (diff)
downloadscintilla-mirror-cd9968e9193f3654ad1349625733c20e4bf5c436.tar.gz
Fix lexer tests to test subranges correctly.
Diffstat (limited to 'test/lexTests.py')
-rw-r--r--test/lexTests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lexTests.py b/test/lexTests.py
index 3c8644a6a..f6b67d8aa 100644
--- a/test/lexTests.py
+++ b/test/lexTests.py
@@ -76,12 +76,12 @@ class TestLexers(unittest.TestCase):
lineStart = self.ed.PositionFromLine(line)
self.ed.StartStyling(lineStart, mask)
self.assertEquals(self.ed.EndStyled, lineStart)
- self.ed.Colourise(0, lenDocument)
+ self.ed.Colourise(lineStart, lenDocument)
progStyled = self.AsStyled()
if progStyled != prevStyled:
with open(nameNew, "wb") as f:
f.write(progStyled)
- assertEquals(progStyled, prevStyled)
+ self.assertEquals(progStyled, prevStyled)
# Give up after one failure
return