Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2012-08-15 17:02:38 +0000
committerMarkus Keller2012-08-15 17:02:38 +0000
commit9947195fa51547ed3a4664f2d6f3d852ddf551f7 (patch)
tree6145f0f2132462ff53be05feeab90c6e15e97683
parenta68f0663f7fb088475c19b08c09c7907db4f7a7c (diff)
downloadeclipse.platform.text-9947195fa51547ed3a4664f2d6f3d852ddf551f7.tar.gz
eclipse.platform.text-9947195fa51547ed3a4664f2d6f3d852ddf551f7.tar.xz
eclipse.platform.text-9947195fa51547ed3a4664f2d6f3d852ddf551f7.zip
Bug 379026: Test failures on GTK because workbench window doesn't have focus
trying to find out where we are
-rw-r--r--org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/FindReplaceDialogTest.java8
1 files changed, 6 insertions, 2 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 c5005057145..f1138971d15 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
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2010 IBM Corporation and others.
+ * Copyright (c) 2000, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,6 +10,8 @@
*******************************************************************************/
package org.eclipse.ui.workbench.texteditor.tests;
+import java.io.File;
+import java.util.Arrays;
import java.util.ResourceBundle;
import junit.framework.Test;
@@ -189,7 +191,9 @@ 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");
+ fail("this test does not work on GTK unless the runtime workbench has focus\n" +
+ "current dir: " + new File("").getAbsoluteFile() + "\n" +
+ "current dir contents: " + Arrays.asList(new File("").getAbsoluteFile().listFiles()));
assertTrue(findField.isFocusControl());

Back to the top