Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2012-08-31 16:33:58 +0000
committerMarkus Keller2012-08-31 16:33:58 +0000
commitd7e203e4af813447b1b3961d00693c76919a117c (patch)
treec4502b0e42ca6e5de5d9ad2456084b74368c2c52 /org.eclipse.ui.workbench.texteditor.tests
parentb0e31203731bf99b2f81f72c0d1fdfa3c7b0872f (diff)
downloadeclipse.platform.text-d7e203e4af813447b1b3961d00693c76919a117c.tar.gz
eclipse.platform.text-d7e203e4af813447b1b3961d00693c76919a117c.tar.xz
eclipse.platform.text-d7e203e4af813447b1b3961d00693c76919a117c.zip
Bug 379026: Test failures on GTK because workbench window doesn't have focusv20120831-163358I20120904-0800
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, 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 d8af2f2db..7bc6a5a97 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
@@ -182,8 +182,12 @@ public class FindReplaceDialogTest extends TestCase {
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());
+
+ if (Util.isMac())
+ /* On the Mac, checkboxes only take focus if "Full Keyboard Access" is enabled in the System Preferences.
+ * Let's not assume that someone pressed Ctrl+F7 on every test machine... */
+ return;
Button wrapSearchBox= (Button)fFindReplaceDialog.get("fWrapCheckBox");
wrapSearchBox.setFocus();
@@ -206,7 +210,7 @@ public class FindReplaceDialogTest extends TestCase {
public void testFocusNotChangedWhenButtonMnemonicPressed() {
if (Util.isMac())
- return;
+ return; // Mac doesn't support mnemonics.
openTextViewerAndFindReplaceDialog();

Back to the top