Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.ui.workbench.texteditor.tests')
-rw-r--r--org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/FindReplaceDialogTest.java8
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();

Back to the top