Title: [126144] trunk/LayoutTests
- Revision
- 126144
- Author
- [email protected]
- Date
- 2012-08-21 01:12:42 -0700 (Tue, 21 Aug 2012)
Log Message
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.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (126143 => 126144)
--- trunk/LayoutTests/ChangeLog 2012-08-21 08:06:18 UTC (rev 126143)
+++ trunk/LayoutTests/ChangeLog 2012-08-21 08:12:42 UTC (rev 126144)
@@ -1,3 +1,14 @@
+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-08-20 Keishi Hattori <[email protected]>
Clicking input type=range with padding or border sets wrong value
Added: trunk/LayoutTests/fast/xpath/xpath-detached-import-assert-expected.txt (0 => 126144)
--- trunk/LayoutTests/fast/xpath/xpath-detached-import-assert-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/xpath/xpath-detached-import-assert-expected.txt 2012-08-21 08:12:42 UTC (rev 126144)
@@ -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
+
Added: trunk/LayoutTests/fast/xpath/xpath-detached-import-assert.html (0 => 126144)
--- trunk/LayoutTests/fast/xpath/xpath-detached-import-assert.html (rev 0)
+++ trunk/LayoutTests/fast/xpath/xpath-detached-import-assert.html 2012-08-21 08:12:42 UTC (rev 126144)
@@ -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() >= 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