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
commit47792a5650ed6c70b05ccf1c33cce015d032bd04 (patch)
tree372b58b5e348e1150d1be12e82466f24fd56cea2
parent746e6fee4485636e4ed3e82a2aa076b009c2e3fc (diff)
downloadscintilla-mirror-47792a5650ed6c70b05ccf1c33cce015d032bd04.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")