aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/simpleTests.py
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-05-08 14:08:18 +1000
committernyamatongwe <devnull@localhost>2013-05-08 14:08:18 +1000
commitb7db33dd85ee178be818ed681be11e34f0a46ee1 (patch)
tree4dabfcb7a7506a9524dc4c5249078241be40ea37 /test/simpleTests.py
parent5edb8f8609a85df7fb81e20192487d58157c9069 (diff)
downloadscintilla-mirror-b7db33dd85ee178be818ed681be11e34f0a46ee1.tar.gz
Avoid warning.
Diffstat (limited to 'test/simpleTests.py')
-rw-r--r--test/simpleTests.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/simpleTests.py b/test/simpleTests.py
index 638634b05..9b99344f0 100644
--- a/test/simpleTests.py
+++ b/test/simpleTests.py
@@ -1520,6 +1520,26 @@ class TestLexer(unittest.TestCase):
length = self.ed.GetLexerLanguage(0, name)
name = name[:length]
self.assertEquals(name, b"cpp")
+
+ def testPropertyNames(self):
+ propertyNamesSize = self.ed.PropertyNames()
+ propertyNames = b"x" * propertyNamesSize
+ self.ed.PropertyNames(None, propertyNames)
+ self.assertNotEquals(propertyNames, b"")
+ # The cpp lexer has a boolean property named lexer.cpp.allow.dollars
+ propNameDollars = b"lexer.cpp.allow.dollars"
+ propertyType = self.ed.PropertyType(propNameDollars)
+ self.assertEquals(propertyType, self.ed.SC_TYPE_BOOLEAN)
+ propertyDescriptionSize = self.ed.DescribeProperty(propNameDollars)
+ propertyDescription = b"x" * propertyDescriptionSize
+ self.ed.DescribeProperty(propNameDollars, propertyDescription)
+ self.assertNotEquals(propertyDescription, b"")
+
+ def testWordListDescriptions(self):
+ wordSetSize = self.ed.DescribeKeyWordSets()
+ wordSet = b"x" * wordSetSize
+ self.ed.DescribeKeyWordSets(None, wordSet)
+ self.assertNotEquals(wordSet, b"")
class TestAutoComplete(unittest.TestCase):