summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Drossel2008-06-19 09:02:30 (EDT)
committerCarsten Drossel2008-06-19 09:02:30 (EDT)
commitee4bb178f31c27bd2bacda60db4f2e49dae0c6bd (patch)
treeb5b4ba71fcb4cc68523f4eacd5caf63e4d387565
parent243727153301eeb7731cdabd1c4af3483534a6a0 (diff)
downloadorg.eclipse.riena-ee4bb178f31c27bd2bacda60db4f2e49dae0c6bd.zip
org.eclipse.riena-ee4bb178f31c27bd2bacda60db4f2e49dae0c6bd.tar.gz
org.eclipse.riena-ee4bb178f31c27bd2bacda60db4f2e49dae0c6bd.tar.bz2
more sleeping fixes random failures in TextRidgetTest2
-rw-r--r--org.eclipse.riena.tests/src/org/eclipse/riena/tests/UITestHelper.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/org.eclipse.riena.tests/src/org/eclipse/riena/tests/UITestHelper.java b/org.eclipse.riena.tests/src/org/eclipse/riena/tests/UITestHelper.java
index 338d0ee..cac5224 100644
--- a/org.eclipse.riena.tests/src/org/eclipse/riena/tests/UITestHelper.java
+++ b/org.eclipse.riena.tests/src/org/eclipse/riena/tests/UITestHelper.java
@@ -35,9 +35,9 @@ public final class UITestHelper {
* Send a key event with the given keycode.
*
* @param display
- * a non-null {@link Display} instance
+ * a non-null {@link Display} instance
* @param keyCode
- * a SWT key code
+ * a SWT key code
*/
public static void sendKeyAction(Display display, int keyCode) {
EventSender sender = new EventSender(display, keyCode);
@@ -50,9 +50,9 @@ public final class UITestHelper {
* Send the give message as a series of key events
*
* @param display
- * a non-null {@link Display} instance
+ * a non-null {@link Display} instance
* @param message
- * a non-null String
+ * a non-null String
*/
public static void sendString(Display display, String message) {
EventSender sender = new EventSender(display, message);
@@ -115,6 +115,7 @@ public final class UITestHelper {
Event event = new Event();
event.type = SWT.KeyDown;
event.keyCode = keyCode;
+ doSleep(MS_LONG_WAIT);
display.post(event);
doSleep(MS_LONG_WAIT);
event.type = SWT.KeyUp;
@@ -126,6 +127,7 @@ public final class UITestHelper {
Event event = new Event();
event.type = SWT.KeyDown;
event.character = ch;
+ doSleep(MS_LONG_WAIT);
display.post(event);
doSleep(MS_LONG_WAIT);
event.type = SWT.KeyUp;