aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorNathaniel Braun <unknown>2026-01-08 08:22:01 +1100
committerNathaniel Braun <unknown>2026-01-08 08:22:01 +1100
commit56c071e2734e3812c7c77b611637cbc2698eb7d3 (patch)
tree5da57f71c12bef0a8bd2706a0d8773cb5442ddfe /test
parent0627663abd14c81cafde85ce9cc0502d9bc3a6c3 (diff)
downloadscintilla-mirror-56c071e2734e3812c7c77b611637cbc2698eb7d3.tar.gz
Feature [feature-requests:#184]. Add option to disable drag/drop editing
SCI_SETDRAGDROPENABLED. Fully implemented on Win32 but may only prevent dragging on other platforms.
Diffstat (limited to 'test')
-rw-r--r--test/simpleTests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/simpleTests.py b/test/simpleTests.py
index 4e6a51d59..0a14a4bdb 100644
--- a/test/simpleTests.py
+++ b/test/simpleTests.py
@@ -260,6 +260,13 @@ class TestSimple(unittest.TestCase):
self.assertEqual(self.ed.CanUndo(), 0)
self.ed.UndoCollection = 1
+ def testDragDrop(self):
+ self.assertEqual(self.ed.DragDropEnabled, 1)
+ self.ed.DragDropEnabled = 0
+ self.assertEqual(self.ed.DragDropEnabled, 0)
+ self.ed.DragDropEnabled = 1
+ self.assertEqual(self.ed.DragDropEnabled, 1)
+
def testGetColumn(self):
self.ed.AddText(1, b"x")
self.assertEqual(self.ed.GetColumn(0), 0)