Title: [197201] trunk/LayoutTests
Revision
197201
Author
[email protected]
Date
2016-02-26 14:06:16 -0800 (Fri, 26 Feb 2016)

Log Message

Unreviewed, fix flaky test introduced in r197156.

* fast/dom/Node/nullable-parameters-expected.txt:
* fast/dom/Node/nullable-parameters.html:
* fast/dom/Node/resources/testdoc.xml: Removed.
* fast/dom/Node/resources/testdoc2.xml: Removed.

Modified Paths

Removed Paths

  • trunk/LayoutTests/fast/dom/Node/resources/

Diff

Modified: trunk/LayoutTests/ChangeLog (197200 => 197201)


--- trunk/LayoutTests/ChangeLog	2016-02-26 21:57:13 UTC (rev 197200)
+++ trunk/LayoutTests/ChangeLog	2016-02-26 22:06:16 UTC (rev 197201)
@@ -1,3 +1,12 @@
+2016-02-26  Chris Dumez  <[email protected]>
+
+        Unreviewed, fix flaky test introduced in r197156.
+
+        * fast/dom/Node/nullable-parameters-expected.txt:
+        * fast/dom/Node/nullable-parameters.html:
+        * fast/dom/Node/resources/testdoc.xml: Removed.
+        * fast/dom/Node/resources/testdoc2.xml: Removed.
+
 2016-02-26  Said Abou-Hallawa  <[email protected]>
 
         <g> wrapping <symbol> causes display of hidden <symbol>

Modified: trunk/LayoutTests/fast/dom/Node/nullable-parameters-expected.txt (197200 => 197201)


--- trunk/LayoutTests/fast/dom/Node/nullable-parameters-expected.txt	2016-02-26 21:57:13 UTC (rev 197200)
+++ trunk/LayoutTests/fast/dom/Node/nullable-parameters-expected.txt	2016-02-26 22:06:16 UTC (rev 197201)
@@ -3,13 +3,13 @@
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS xmlDoc.documentElement.lookupPrefix('undefined') is "c"
-PASS xmlDoc.documentElement.lookupPrefix(null) is null
-PASS xmlDoc.documentElement.lookupPrefix(undefined) is null
+PASS element.lookupPrefix('undefined') is "c"
+PASS element.lookupPrefix(null) is null
+PASS element.lookupPrefix(undefined) is null
 
-PASS xmlDoc.documentElement.lookupNamespaceURI('undefined') is "test"
-PASS xmlDoc.documentElement.lookupNamespaceURI(null) is null
-PASS xmlDoc.documentElement.lookupNamespaceURI(undefined) is null
+PASS element.lookupNamespaceURI('undefined') is "test"
+PASS element.lookupNamespaceURI(null) is "http://www.w3.org/1999/xhtml"
+PASS element.lookupNamespaceURI(undefined) is "http://www.w3.org/1999/xhtml"
 
 PASS element.isDefaultNamespace('undefined') is true
 PASS element.isDefaultNamespace(undefined) is false

Modified: trunk/LayoutTests/fast/dom/Node/nullable-parameters.html (197200 => 197201)


--- trunk/LayoutTests/fast/dom/Node/nullable-parameters.html	2016-02-26 21:57:13 UTC (rev 197200)
+++ trunk/LayoutTests/fast/dom/Node/nullable-parameters.html	2016-02-26 22:06:16 UTC (rev 197201)
@@ -1,26 +1,19 @@
 <script src=""
 <script>
-function loadXML(url)
-{
-    var xhr = new XMLHttpRequest();
-    xhr.open("GET", url, false);
-    xhr.send();
-    return xhr.responseXML;
-}
-
 description("Tests the behavior of a few Node API parameters that should be nullable");
 
-var xmlDoc = loadXML("resources/testDoc.xml");
+var element = document.createElement("test");
+element.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:c", "undefined");
+shouldBeEqualToString("element.lookupPrefix('undefined')", "c");
+shouldBeNull("element.lookupPrefix(null)");
+shouldBeNull("element.lookupPrefix(undefined)");
 
-shouldBeEqualToString("xmlDoc.documentElement.lookupPrefix('undefined')", "c");
-shouldBeNull("xmlDoc.documentElement.lookupPrefix(null)");
-shouldBeNull("xmlDoc.documentElement.lookupPrefix(undefined)");
-
 debug("");
-xmlDoc = loadXML("resources/testDoc2.xml");
-shouldBeEqualToString("xmlDoc.documentElement.lookupNamespaceURI('undefined')", "test");
-shouldBeNull("xmlDoc.documentElement.lookupNamespaceURI(null)");
-shouldBeNull("xmlDoc.documentElement.lookupNamespaceURI(undefined)");
+element = document.createElement("test");
+element.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:undefined", "test");
+shouldBeEqualToString("element.lookupNamespaceURI('undefined')", "test");
+shouldBeEqualToString("element.lookupNamespaceURI(null)", "http://www.w3.org/1999/xhtml");
+shouldBeEqualToString("element.lookupNamespaceURI(undefined)", "http://www.w3.org/1999/xhtml");
 
 debug("");
 var element = document.createElementNS("undefined", "test");
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to