aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/simpleTests.py
diff options
context:
space:
mode:
authorMitchell Foral <unknown>2021-06-09 10:51:58 +1000
committerMitchell Foral <unknown>2021-06-09 10:51:58 +1000
commit5f998b68113dd116c1e938028dddcbcc7425a144 (patch)
treeef0e02b0bad89507ef4ee0973913c251736bbfc2 /test/simpleTests.py
parent4fb6cb9c6e694574aab4aa29640f9903df407aed (diff)
downloadscintilla-mirror-5f998b68113dd116c1e938028dddcbcc7425a144.tar.gz
Add SCI_PASTERECTANGULAR to insert text like a rectangular paste.
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 63a752da4..82ed84810 100644
--- a/test/simpleTests.py
+++ b/test/simpleTests.py
@@ -535,6 +535,12 @@ class TestSimple(unittest.TestCase):
self.ed.Clear()
self.assertEquals(self.ed.Contents(), b"1c")
+ def testPasteRectangular(self):
+ self.ed.AddText(5, b"a\nb\nc")
+ self.ed.SetSel(0,0)
+ self.ed.PasteRectangular(3, b"1\n2")
+ self.assertEquals(self.ed.Contents(), b"1a\n2b\nc")
+
def testCopyAllowLine(self):
lineEndType = self.ed.EOLMode
self.ed.EOLMode = self.ed.SC_EOL_LF