aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/simpleTests.py
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-05-11 10:07:13 +1000
committerNeil <nyamatongwe@gmail.com>2021-05-11 10:07:13 +1000
commit8dd2db6205ceb93506490bd94a031178b37710aa (patch)
tree63336b1c28bec1e681e0ece691762e97cb59a2e7 /test/simpleTests.py
parent002f1a013736a89223dc1ede2724f8492e12ce1f (diff)
downloadscintilla-mirror-8dd2db6205ceb93506490bd94a031178b37710aa.tar.gz
Add test for SelectionLayer.
Diffstat (limited to 'test/simpleTests.py')
-rw-r--r--test/simpleTests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/simpleTests.py b/test/simpleTests.py
index 0f3516553..c1407ad7c 100644
--- a/test/simpleTests.py
+++ b/test/simpleTests.py
@@ -1972,6 +1972,12 @@ class TestElements(unittest.TestCase):
self.assertEquals(selBack & opaque, opaque)
self.assertNotEquals(selText & dropAlpha, selBack & dropAlpha)
+ def testSelectionLayer(self):
+ self.ed.SelectionLayer = self.ed.SC_LAYER_OVER_TEXT
+ self.assertEquals(self.ed.SelectionLayer, self.ed.SC_LAYER_OVER_TEXT)
+ self.ed.SelectionLayer = self.ed.SC_LAYER_BASE
+ self.assertEquals(self.ed.SelectionLayer, self.ed.SC_LAYER_BASE)
+
class TestIndices(unittest.TestCase):
def setUp(self):
self.xite = Xite.xiteFrame