[HtmlUnit] SVN: [15409] trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/ javascript/host/event/KeyboardEventTest.java

rbri--- via HtmlUnit-develop <[email protected]>
Newsgroups gmane.comp.java.htmlunit.devel
Message-ID <[email protected]>
Revision: 15409
          http://sourceforge.net/p/htmlunit/code/15409
Author:   rbri
Date:     2018-06-29 11:37:26 +0000 (Fri, 29 Jun 2018)
Log Message:
-----------
ff60 support (wip)

Modified Paths:
--------------
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/event/KeyboardEventTest.java

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/event/KeyboardEventTest.java
===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/event/KeyboardEventTest.java	2018-06-29 11:20:25 UTC (rev 15408)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/event/KeyboardEventTest.java	2018-06-29 11:37:26 UTC (rev 15409)
@@ -14,6 +14,8 @@
  */
 package com.gargoylesoftware.htmlunit.javascript.host.event;
 
+import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.FF60;
+
 import java.util.Arrays;
 
 import org.junit.Test;
@@ -133,6 +135,7 @@
      */
     @Test
     @Alerts("32, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, ")
+    @BuggyWebDriver(FF60)
     public void keyCodes_keyup() throws Exception {
         final String html = "<html><head>\n"
             + "<script>\n"
@@ -188,6 +191,7 @@
      */
     @Test
     @Alerts("32, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, ")
+    @BuggyWebDriver(FF60)
     public void keyCodes_keydown() throws Exception {
         final String html = "<html><head>\n"
             + "<script>\n"
@@ -300,8 +304,7 @@
      */
     @Test
     @Alerts(DEFAULT = {"13", "13", "13"},
-            FF52 = {"0", "13", "13"},
-            FF60 = {"10", "0", "10"})
+            FF = {"0", "13", "13"})
     public void keyCodeEnter_keypress() throws Exception {
         final String html = "<html>\n"
             + "<head>\n"
@@ -321,7 +324,7 @@
         final WebDriver driver = loadPage2(html);
         final WebElement field = driver.findElement(By.id("t"));
 
-        field.sendKeys("\n");
+        field.sendKeys(Keys.ENTER);
 
         verifyAlerts(driver, getExpectedAlerts());
     }


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.