[HtmlUnit] SVN: [14733] trunk/htmlunit/src

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[HtmlUnit] SVN: [14733] trunk/htmlunit/src

HtmlUnit - Dev mailing list
Revision: 14733
          http://sourceforge.net/p/htmlunit/code/14733
Author:   rbri
Date:     2017-07-28 10:12:34 +0000 (Fri, 28 Jul 2017)
Log Message:
-----------
latest Chrome - bring our impl in sync (wip)

Modified Paths:
--------------
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/dom/DOMTokenList.java
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/DOMTokenListTest.java

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/dom/DOMTokenList.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/dom/DOMTokenList.java 2017-07-28 08:31:46 UTC (rev 14732)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/dom/DOMTokenList.java 2017-07-28 10:12:34 UTC (rev 14733)
@@ -136,6 +136,10 @@
             value = value + token;
             updateAttribute(value);
         }
+        else if (getBrowserVersion().hasFeature(JS_DOMTOKENLIST_REMOVE_WHITESPACE_CHARS_ON_REMOVE)) {
+            value = String.join(" ", StringUtils.split(value, whitespaceChars()));
+            updateAttribute(value);
+        }
     }
 
     /**

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/DOMTokenListTest.java
===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/DOMTokenListTest.java 2017-07-28 08:31:46 UTC (rev 14732)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/DOMTokenListTest.java 2017-07-28 10:12:34 UTC (rev 14733)
@@ -14,6 +14,7 @@
  */
 package com.gargoylesoftware.htmlunit.javascript.host.dom;
 
+import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.CHROME;
 import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.FF52;
 
 import org.junit.Test;
@@ -693,7 +694,7 @@
     @Alerts(DEFAULT = {" \t \n  ", "0", "0", " \t \n  "},
             CHROME = {" \t \n  ", "0", "0", ""},
             FF52 = {" \t \n  ", "0", "0", ""})
-    @NotYetImplemented(FF52)
+    @NotYetImplemented({CHROME, FF52})
     public void removeFromWhitespace() throws Exception {
         remove(" \t \r  ", "a");
     }


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop