aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2013-07-22 18:50:35 +1000
committerNeil <nyamatongwe@gmail.com>2013-07-22 18:50:35 +1000
commit79bd92adfc0ee27029fed81efd03fb5784c60f73 (patch)
tree7dbc4e6747caab5651bbe2258987600336a99262
parent474c3dbfc0bdce4bd98d2844a150d07d1d0d1d65 (diff)
downloadscintilla-mirror-79bd92adfc0ee27029fed81efd03fb5784c60f73.tar.gz
There were occsional failures in clipboard tests so add some DoEvents calls
to allow clipboard status to be propogated between windows. Seems to avoid the failures.
-rw-r--r--test/simpleTests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/simpleTests.py b/test/simpleTests.py
index ed55a67f9..4ce6e39ea 100644
--- a/test/simpleTests.py
+++ b/test/simpleTests.py
@@ -490,6 +490,7 @@ class TestSimple(unittest.TestCase):
self.ed.AddText(5, b"a1b2c")
self.ed.SetSel(1,3)
self.ed.Cut()
+ self.xite.DoEvents()
self.assertEquals(self.ed.CanPaste(), 1)
self.ed.SetSel(0, 0)
self.ed.Paste()
@@ -504,6 +505,7 @@ class TestSimple(unittest.TestCase):
self.assertEquals(self.ed.Contents(), b"1c")
def testCopyAllowLine(self):
+ self.xite.DoEvents()
lineEndType = self.ed.EOLMode
self.ed.EOLMode = self.ed.SC_EOL_LF
self.ed.AddText(5, b"a1\nb2")