diff options
author | Markus Keller | 2012-08-20 12:04:51 +0000 |
---|---|---|
committer | Markus Keller | 2012-08-20 12:04:51 +0000 |
commit | 6e2def36c7195b258b9d2b6098e69b9fb6e081c6 (patch) | |
tree | 1524691a631139032860c00179504613c0f19369 | |
parent | affab046bc89be3c0c7d0859ab1e9048d27f099f (diff) | |
download | eclipse.platform.text-6e2def36c7195b258b9d2b6098e69b9fb6e081c6.tar.gz eclipse.platform.text-6e2def36c7195b258b9d2b6098e69b9fb6e081c6.tar.xz eclipse.platform.text-6e2def36c7195b258b9d2b6098e69b9fb6e081c6.zip |
Bug 379026: Test failures on GTK because workbench window doesn't have focus
store screenshot on GTK but don't fail
-rw-r--r-- | org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/FindReplaceDialogTest.java | 8 |
1 files changed, 4 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 0dfe6585b9e..aa2636830d6 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 @@ -196,7 +196,7 @@ public class FindReplaceDialogTest extends TestCase { runEventQueue(); Shell shell= ((Shell)fFindReplaceDialog.get("fActiveShell")); if (shell == null && Util.isGtk()) - fail("this test does not work on GTK unless the runtime workbench has focus. Screenshot: " + takeScreenshot()); + takeScreenshot(); assertTrue(findField.isFocusControl()); @@ -247,8 +247,8 @@ public class FindReplaceDialogTest extends TestCase { runEventQueue(); Shell shell= ((Shell)fFindReplaceDialog.get("fActiveShell")); if (shell == null && Util.isGtk()) - fail("this test does not work on GTK unless the runtime workbench has focus"); - + takeScreenshot(); + Button wrapSearchBox= (Button)fFindReplaceDialog.get("fWrapCheckBox"); wrapSearchBox.setFocus(); event.detail= SWT.TRAVERSE_MNEMONIC; @@ -284,7 +284,7 @@ public class FindReplaceDialogTest extends TestCase { runEventQueue(); Shell shell= ((Shell)fFindReplaceDialog.get("fActiveShell")); if (shell == null && Util.isGtk()) - fail("this test does not work on GTK unless the runtime workbench has focus"); + takeScreenshot(); final Event event= new Event(); |