Skip to content

Commit

Permalink
Disabling cut-n-paste tests in Firefox on Linux with native events
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Aug 29, 2013
1 parent f3020fd commit 1759e94
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
22 changes: 14 additions & 8 deletions java/client/test/org/openqa/selenium/TypingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import org.openqa.selenium.testing.Ignore;
import org.openqa.selenium.testing.JUnit4TestBase;
import org.openqa.selenium.testing.JavascriptEnabled;
import org.openqa.selenium.testing.TestUtilities;
import org.openqa.selenium.testing.drivers.Browser;

import static org.hamcrest.Matchers.anyOf;
Expand All @@ -45,6 +44,9 @@
import static org.openqa.selenium.testing.Ignore.Driver.OPERA_MOBILE;
import static org.openqa.selenium.testing.Ignore.Driver.PHANTOMJS;
import static org.openqa.selenium.testing.Ignore.Driver.SAFARI;
import static org.openqa.selenium.testing.TestUtilities.isFirefox;
import static org.openqa.selenium.testing.TestUtilities.isNativeEventsEnabled;
import static org.openqa.selenium.testing.drivers.SauceDriver.getEffectivePlatform;

public class TypingTest extends JUnit4TestBase {

Expand Down Expand Up @@ -278,7 +280,7 @@ public void testShouldFireFocusKeyEventsInTheRightOrder() {
@Test
public void testShouldReportKeyCodeOfArrowKeys() {
assumeFalse(Browser.detect() == Browser.opera &&
TestUtilities.getEffectivePlatform().is(Platform.WINDOWS));
getEffectivePlatform().is(Platform.WINDOWS));

driver.get(pages.javascriptPage);

Expand Down Expand Up @@ -313,7 +315,7 @@ private static void checkRecordedKeySequence(WebElement element, int expectedKey
@Test
public void testShouldReportKeyCodeOfArrowKeysUpDownEvents() {
assumeFalse(Browser.detect() == Browser.opera &&
TestUtilities.getEffectivePlatform().is(Platform.WINDOWS));
getEffectivePlatform().is(Platform.WINDOWS));

driver.get(pages.javascriptPage);

Expand Down Expand Up @@ -440,7 +442,7 @@ public void testArrowKeysAndPageUpAndDown() {
@Test
public void testHomeAndEndAndPageUpAndPageDownKeys() {
assumeFalse("FIXME: macs don't have HOME keys, would PGUP work?",
TestUtilities.getEffectivePlatform().is(Platform.MAC));
getEffectivePlatform().is(Platform.MAC));

driver.get(pages.javascriptPage);

Expand Down Expand Up @@ -539,7 +541,7 @@ public void testShiftSelectionDeletes() {
@Test
public void testChordControlHomeShiftEndDelete() {
assumeFalse("FIXME: macs don't have HOME keys, would PGUP work?",
TestUtilities.getEffectivePlatform().is(Platform.MAC));
getEffectivePlatform().is(Platform.MAC));

driver.get(pages.javascriptPage);

Expand All @@ -562,7 +564,7 @@ public void testChordControlHomeShiftEndDelete() {
@Test
public void testChordReveseShiftHomeSelectionDeletes() {
assumeFalse("FIXME: macs don't have HOME keys, would PGUP work?",
TestUtilities.getEffectivePlatform().is(Platform.MAC));
getEffectivePlatform().is(Platform.MAC));

driver.get(pages.javascriptPage);

Expand Down Expand Up @@ -596,7 +598,11 @@ public void testChordReveseShiftHomeSelectionDeletes() {
@Test
public void testChordControlCutAndPaste() {
assumeFalse("FIXME: macs don't have HOME keys, would PGUP work?",
TestUtilities.getEffectivePlatform().is(Platform.MAC));
getEffectivePlatform().is(Platform.MAC));
assumeFalse("FIXME: Fails in Firefox on Linux with native events",
isFirefox(driver) &&
isNativeEventsEnabled(driver) &&
getEffectivePlatform().is(Platform.LINUX));

driver.get(pages.javascriptPage);

Expand Down Expand Up @@ -704,7 +710,7 @@ public void testTypingIntoAnIFrameWithContentEditableOrDesignModeSet() {
@Ignore(value = {HTMLUNIT, OPERA, ANDROID, OPERA_MOBILE, MARIONETTE})
@Test
public void testNonPrintableCharactersShouldWorkWithContentEditableOrDesignModeSet() {
assumeFalse("not tested on mac", TestUtilities.getEffectivePlatform().is(Platform.MAC));
assumeFalse("not tested on mac", getEffectivePlatform().is(Platform.MAC));

driver.get(pages.richTextPage);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ public void testChordControlCutAndPaste() {
assumeFalse("Windows: native events library does not support storing modifiers state yet",
isNativeEventsEnabled(driver) && getEffectivePlatform().is(Platform.WINDOWS) &&
(isInternetExplorer(driver) || isFirefox(driver)));
assumeFalse("FIXME: Fails in Firefox on Linux with native events",
isFirefox(driver) &&
isNativeEventsEnabled(driver) &&
getEffectivePlatform().is(Platform.LINUX));

driver.get(pages.javascriptPage);

Expand Down

0 comments on commit 1759e94

Please sign in to comment.