Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2012-08-20 12:04:51 +0000
committerMarkus Keller2012-08-20 12:04:51 +0000
commit6e2def36c7195b258b9d2b6098e69b9fb6e081c6 (patch)
tree1524691a631139032860c00179504613c0f19369 /org.eclipse.ui.workbench.texteditor.tests
parentaffab046bc89be3c0c7d0859ab1e9048d27f099f (diff)
downloadeclipse.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
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 0dfe6585b..aa2636830 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