aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-11-15 08:19:12 +1100
committerNeil <nyamatongwe@gmail.com>2019-11-15 08:19:12 +1100
commit3b72fe93906e4c6b8c800cf2c7b986bc2c2c89a2 (patch)
tree9ec118225cfc6c07a3963a19e8cf6b8dbc46d763 /test
parent03203843a7ccaef46938a7e54ff6c0fd838cafdf (diff)
downloadscintilla-mirror-3b72fe93906e4c6b8c800cf2c7b986bc2c2c89a2.tar.gz
Backport: Feature [feature-requests:#1316] Add access to virtual space at start and end of
multiple selections. Backport of changeset 7767:80102fe650b2.
Diffstat (limited to 'test')
-rw-r--r--test/simpleTests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/simpleTests.py b/test/simpleTests.py
index 6e7d10721..a4730980f 100644
--- a/test/simpleTests.py
+++ b/test/simpleTests.py
@@ -1407,10 +1407,14 @@ class TestMultiSelection(unittest.TestCase):
self.assertEquals(self.ed.GetSelectionNCaretVirtualSpace(0), 3)
self.ed.SetSelectionNAnchorVirtualSpace(0, 2)
self.assertEquals(self.ed.GetSelectionNAnchorVirtualSpace(0), 2)
+ self.assertEquals(self.ed.GetSelectionNStartVirtualSpace(0), 3)
+ self.assertEquals(self.ed.GetSelectionNEndVirtualSpace(0), 2)
# Does not check that virtual space is valid by being at end of line
self.ed.SetSelection(1, 1)
self.ed.SetSelectionNCaretVirtualSpace(0, 3)
self.assertEquals(self.ed.GetSelectionNCaretVirtualSpace(0), 3)
+ self.assertEquals(self.ed.GetSelectionNStartVirtualSpace(0), 0)
+ self.assertEquals(self.ed.GetSelectionNEndVirtualSpace(0), 3)
def testRectangularVirtualSpace(self):
self.ed.VirtualSpaceOptions=1