aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/simpleTests.py
diff options
context:
space:
mode:
authorFerdinand Oeinck <unknown>2022-10-04 09:35:06 +1100
committerFerdinand Oeinck <unknown>2022-10-04 09:35:06 +1100
commitf4d5c00424eff7c84b4152b4df4de5c0ba4b12bc (patch)
treee239ae33e6bfb8844a150bb1c25b1b643741211d /test/simpleTests.py
parent232fad28e7003fd38e2468258bcfacc61381ef7a (diff)
downloadscintilla-mirror-f4d5c00424eff7c84b4152b4df4de5c0ba4b12bc.tar.gz
Feature [feature-requests:#1453] Added SCI_STYLESETINVISIBLEREPRESENTATION to
make it easier to edit around invisible text. This also allows representing long lexemes with a single character to provide a summarized view.
Diffstat (limited to 'test/simpleTests.py')
-rw-r--r--test/simpleTests.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/simpleTests.py b/test/simpleTests.py
index 6c55c7cf4..92d6a92a7 100644
--- a/test/simpleTests.py
+++ b/test/simpleTests.py
@@ -1956,6 +1956,7 @@ class TestStyleAttributes(unittest.TestCase):
self.ed.EmptyUndoBuffer()
self.testColour = 0x171615
self.testFont = b"Georgia"
+ self.testRepresentation = "\N{BULLET}".encode("utf-8")
def tearDown(self):
self.ed.StyleResetDefault()
@@ -1971,6 +1972,13 @@ class TestStyleAttributes(unittest.TestCase):
self.ed.StyleSetSizeFractional(self.ed.STYLE_DEFAULT, 1234)
self.assertEquals(self.ed.StyleGetSizeFractional(self.ed.STYLE_DEFAULT), 1234)
+ def testInvisibleRepresentation(self):
+ self.assertEquals(self.ed.StyleGetInvisibleRepresentation(self.ed.STYLE_DEFAULT), b"")
+ self.ed.StyleSetInvisibleRepresentation(self.ed.STYLE_DEFAULT, self.testRepresentation)
+ self.assertEquals(self.ed.StyleGetInvisibleRepresentation(self.ed.STYLE_DEFAULT), self.testRepresentation)
+ self.ed.StyleSetInvisibleRepresentation(self.ed.STYLE_DEFAULT, b"\000")
+ self.assertEquals(self.ed.StyleGetInvisibleRepresentation(self.ed.STYLE_DEFAULT), b"")
+
def testBold(self):
self.ed.StyleSetBold(self.ed.STYLE_DEFAULT, 1)
self.assertEquals(self.ed.StyleGetBold(self.ed.STYLE_DEFAULT), 1)