diff options
author | Markus Keller | 2012-08-21 11:06:20 +0000 |
---|---|---|
committer | Markus Keller | 2012-08-21 11:06:20 +0000 |
commit | 37bd66cd34291241f3e6273d9bed0b881a7abd9f (patch) | |
tree | 3d61c398f7c71141ce67f365dc98bbb191dcfa04 | |
parent | dec0a5b7df19eade00ea3afb775606885be3f17a (diff) | |
download | eclipse.platform.text-37bd66cd34291241f3e6273d9bed0b881a7abd9f.tar.gz eclipse.platform.text-37bd66cd34291241f3e6273d9bed0b881a7abd9f.tar.xz eclipse.platform.text-37bd66cd34291241f3e6273d9bed0b881a7abd9f.zip |
Bug 379026: Test failures on GTK because workbench window doesn't have focusv20120821-110620I20120821-0800
-rw-r--r-- | org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/FindReplaceDialogTest.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/FindReplaceDialogTest.java b/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/FindReplaceDialogTest.java index aa2636830d6..a40509afd1e 100644 --- a/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/FindReplaceDialogTest.java +++ b/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/FindReplaceDialogTest.java @@ -194,8 +194,7 @@ public class FindReplaceDialogTest extends TestCase { event.doit= true; findField.traverse(SWT.TRAVERSE_RETURN, event); runEventQueue(); - Shell shell= ((Shell)fFindReplaceDialog.get("fActiveShell")); - if (shell == null && Util.isGtk()) + if (Util.isGtk()) takeScreenshot(); assertTrue(findField.isFocusControl()); @@ -247,7 +246,7 @@ public class FindReplaceDialogTest extends TestCase { runEventQueue(); Shell shell= ((Shell)fFindReplaceDialog.get("fActiveShell")); if (shell == null && Util.isGtk()) - takeScreenshot(); + fail("this test does not work on GTK unless the runtime workbench has focus. Screenshot: " + takeScreenshot()); Button wrapSearchBox= (Button)fFindReplaceDialog.get("fWrapCheckBox"); wrapSearchBox.setFocus(); @@ -284,7 +283,7 @@ public class FindReplaceDialogTest extends TestCase { runEventQueue(); Shell shell= ((Shell)fFindReplaceDialog.get("fActiveShell")); if (shell == null && Util.isGtk()) - takeScreenshot(); + fail("this test does not work on GTK unless the runtime workbench has focus. Screenshot: " + takeScreenshot()); final Event event= new Event(); |