Title: [133656] branches/safari-536.28-branch/LayoutTests

Diff

Modified: branches/safari-536.28-branch/LayoutTests/ChangeLog (133655 => 133656)


--- branches/safari-536.28-branch/LayoutTests/ChangeLog	2012-11-06 20:22:00 UTC (rev 133655)
+++ branches/safari-536.28-branch/LayoutTests/ChangeLog	2012-11-06 20:23:54 UTC (rev 133656)
@@ -1,5 +1,20 @@
 2012-11-06  Lucas Forschler  <[email protected]>
 
+        Merge r126144
+
+    2012-08-21  Chris Evans  <[email protected]>
+
+            Add another interesting test that used to fire a different ASSERT before we fixed https://bugs.webkit.org/show_bug.cgi?id=36427:
+            ASSERT(parents.size() >= depth + 1)
+            https://bugs.webkit.org/show_bug.cgi?id=84793
+
+            Reviewed by Abhishek Arya.
+
+            * fast/xpath/xpath-detached-import-assert-expected.txt: Added.
+            * fast/xpath/xpath-detached-import-assert.html: Added.
+
+2012-11-06  Lucas Forschler  <[email protected]>
+
         Merge r125631
 
     2012-08-14  Chris Evans  <[email protected]>
@@ -11059,3 +11074,4 @@
 .
 .
 .
+.

Copied: branches/safari-536.28-branch/LayoutTests/fast/xpath/xpath-detached-import-assert-expected.txt (from rev 126144, trunk/LayoutTests/fast/xpath/xpath-detached-import-assert-expected.txt) (0 => 133656)


--- branches/safari-536.28-branch/LayoutTests/fast/xpath/xpath-detached-import-assert-expected.txt	                        (rev 0)
+++ branches/safari-536.28-branch/LayoutTests/fast/xpath/xpath-detached-import-assert-expected.txt	2012-11-06 20:23:54 UTC (rev 133656)
@@ -0,0 +1,9 @@
+A test case from https://bugs.webkit.org/show_bug.cgi?id=84793.
+
+Test passes if it doesn't hit ASSERT(parents.size() >= depth + 1).
+
+PASS result.numberValue is NaN
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Copied: branches/safari-536.28-branch/LayoutTests/fast/xpath/xpath-detached-import-assert.html (from rev 126144, trunk/LayoutTests/fast/xpath/xpath-detached-import-assert.html) (0 => 133656)


--- branches/safari-536.28-branch/LayoutTests/fast/xpath/xpath-detached-import-assert.html	                        (rev 0)
+++ branches/safari-536.28-branch/LayoutTests/fast/xpath/xpath-detached-import-assert.html	2012-11-06 20:23:54 UTC (rev 133656)
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src=""
+</head>
+<body>
+<svg id="svg"></svg>
+<p>A test case from https://bugs.webkit.org/show_bug.cgi?id=84793.
+<p>Test passes if it doesn't hit ASSERT(parents.size() &gt;= depth + 1).
+<div id="console"></div>
+
+<script>
+  resolver = function (prefix) {
+    var ns = {
+      "svg"    : "http://www.w3.org/2000/svg",
+      "xhtml"  : "http://www.w3.org/1999/xhtml",
+    };
+    return ns[prefix] || null;
+  }
+
+  var result= document.evaluate("/node()/descendant-or-self::svg:* | node()/ancestor-or-self::node()", document.getElementById("svg").ownerDocument.importNode(document.documentElement), resolver, XPathResult.NUMBER_TYPE, result);
+  shouldBe("result.numberValue", "NaN");
+</script>
+<script src=""
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to