diff options
author | nyamatongwe <unknown> | 2013-02-05 09:28:07 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2013-02-05 09:28:07 +1100 |
commit | ff4788b4cf8ec592dbeb5db3270061c0af76da90 (patch) | |
tree | 918d925828ed132043e82d7e93d4a7b1a1248f37 /test | |
parent | e24c283b7c2ad83bbe09d3dd8f9053af68b77d07 (diff) | |
download | scintilla-mirror-ff4788b4cf8ec592dbeb5db3270061c0af76da90.tar.gz |
Add allocation of extended styles.
Diffstat (limited to 'test')
-rw-r--r-- | test/simpleTests.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/simpleTests.py b/test/simpleTests.py index 04c9ed145..4d397261a 100644 --- a/test/simpleTests.py +++ b/test/simpleTests.py @@ -1181,6 +1181,18 @@ class TestAnnotation(unittest.TestCase): self.assertEquals(result, styles) self.ed.AnnotationClearAll() + def testExtendedStyles(self): + start0 = self.ed.AllocateExtendedStyles(0) + self.assertEquals(start0, 256) + start1 = self.ed.AllocateExtendedStyles(10) + self.assertEquals(start1, 256) + start2 = self.ed.AllocateExtendedStyles(20) + self.assertEquals(start2, start1 + 10) + # Reset by changing lexer + self.ed.ReleaseAllExtendedStyles() + start0 = self.ed.AllocateExtendedStyles(0) + self.assertEquals(start0, 256) + def testTextAnnotationStyleOffset(self): self.ed.AnnotationSetStyleOffset(300) self.assertEquals(self.ed.AnnotationGetStyleOffset(), 300) |