aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/simpleTests.py
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-02-05 09:28:07 +1100
committernyamatongwe <devnull@localhost>2013-02-05 09:28:07 +1100
commit9162c73355b47219d24ddba152fe931fdfabbcfc (patch)
tree40f963ff3a3e36ee8f3a4fdeb679a8c9881f8db8 /test/simpleTests.py
parent4d129be11ee453b135d16c78dfdff8d176b3cd7f (diff)
downloadscintilla-mirror-9162c73355b47219d24ddba152fe931fdfabbcfc.tar.gz
Add allocation of extended styles.
Diffstat (limited to 'test/simpleTests.py')
-rw-r--r--test/simpleTests.py12
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)