diff options
author | Markus Keller | 2012-08-31 16:33:58 +0000 |
---|---|---|
committer | Markus Keller | 2012-08-31 16:33:58 +0000 |
commit | d7e203e4af813447b1b3961d00693c76919a117c (patch) | |
tree | c4502b0e42ca6e5de5d9ad2456084b74368c2c52 /org.eclipse.ui.workbench.texteditor.tests | |
parent | b0e31203731bf99b2f81f72c0d1fdfa3c7b0872f (diff) | |
download | eclipse.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.java | 8 |
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 d8af2f2dbac..7bc6a5a976f 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(); |