aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/simpleTests.py
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-04-05 08:32:58 +1100
committerNeil <nyamatongwe@gmail.com>2019-04-05 08:32:58 +1100
commitcb81cd27cd1b162c381db4106cb29c4c397146a8 (patch)
treeac40f63a508d517d630cb266124b9bcebf914495 /test/simpleTests.py
parent966c872120ea94941f2672f15cdcc9018a5a5dd0 (diff)
downloadscintilla-mirror-cb81cd27cd1b162c381db4106cb29c4c397146a8.tar.gz
Backport: Feature [feature-requests:#1272]. Add API to set default fold display text.
Backport of changeset 7400:9fcb52fdb307.
Diffstat (limited to 'test/simpleTests.py')
-rw-r--r--test/simpleTests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/simpleTests.py b/test/simpleTests.py
index b5260c8a8..9a170a2f9 100644
--- a/test/simpleTests.py
+++ b/test/simpleTests.py
@@ -1639,6 +1639,11 @@ class TestStyleAttributes(unittest.TestCase):
self.ed.FoldDisplayTextSetStyle(self.ed.SC_FOLDDISPLAYTEXT_BOXED)
self.assertEquals(self.ed.FoldDisplayTextGetStyle(), self.ed.SC_FOLDDISPLAYTEXT_BOXED)
+ def testDefaultFoldDisplayText(self):
+ self.assertEquals(self.ed.GetDefaultFoldDisplayText(), b"")
+ self.ed.SetDefaultFoldDisplayText(0, b"...")
+ self.assertEquals(self.ed.GetDefaultFoldDisplayText(), b"...")
+
class TestIndices(unittest.TestCase):
def setUp(self):
self.xite = Xite.xiteFrame