Title: [158731] trunk/LayoutTests
- Revision
- 158731
- Author
- [email protected]
- Date
- 2013-11-06 00:13:33 -0800 (Wed, 06 Nov 2013)
Log Message
Add a test for queries whose leftmost selector matches the root node
https://bugs.webkit.org/show_bug.cgi?id=123877
Reviewed by Andreas Kling.
Merge https://chromium.googlesource.com/chromium/blink/+/22981c70bf93e8a07ee7b4d68a4522aee21b26ce
so that we won't introduce the regression they had.
* fast/selectors/querySelector-leftmost-selector-matches-rootNode-expected.txt: Added.
* fast/selectors/querySelector-leftmost-selector-matches-rootNode.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (158730 => 158731)
--- trunk/LayoutTests/ChangeLog 2013-11-06 08:09:44 UTC (rev 158730)
+++ trunk/LayoutTests/ChangeLog 2013-11-06 08:13:33 UTC (rev 158731)
@@ -1,5 +1,18 @@
2013-11-06 Ryosuke Niwa <[email protected]>
+ Add a test for queries whose leftmost selector matches the root node
+ https://bugs.webkit.org/show_bug.cgi?id=123877
+
+ Reviewed by Andreas Kling.
+
+ Merge https://chromium.googlesource.com/chromium/blink/+/22981c70bf93e8a07ee7b4d68a4522aee21b26ce
+ so that we won't introduce the regression they had.
+
+ * fast/selectors/querySelector-leftmost-selector-matches-rootNode-expected.txt: Added.
+ * fast/selectors/querySelector-leftmost-selector-matches-rootNode.html: Added.
+
+2013-11-06 Ryosuke Niwa <[email protected]>
+
Assertion failure end < m_runCount in WebCore::BidiRunList<WebCore::BidiRun>::reverseRuns
https://bugs.webkit.org/show_bug.cgi?id=123863
Added: trunk/LayoutTests/fast/selectors/querySelector-leftmost-selector-matches-rootNode-expected.txt (0 => 158731)
--- trunk/LayoutTests/fast/selectors/querySelector-leftmost-selector-matches-rootNode-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/selectors/querySelector-leftmost-selector-matches-rootNode-expected.txt 2013-11-06 08:13:33 UTC (rev 158731)
@@ -0,0 +1,18 @@
+Test queries whose leftmost selector matches the root node.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS document.body.querySelectorAll('#target > div').length is 6
+PASS document.body.querySelectorAll('#target').length is 0
+PASS document.body.querySelectorAll('.target > div').length is 6
+PASS document.body.querySelectorAll('.target').length is 0
+PASS document.body.querySelectorAll('body > div').length is 6
+PASS document.body.querySelectorAll('body').length is 0
+PASS document.body.querySelector('#target') is null
+PASS document.body.querySelector('.target') is null
+PASS document.body.querySelector('body') is null
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Added: trunk/LayoutTests/fast/selectors/querySelector-leftmost-selector-matches-rootNode.html (0 => 158731)
--- trunk/LayoutTests/fast/selectors/querySelector-leftmost-selector-matches-rootNode.html (rev 0)
+++ trunk/LayoutTests/fast/selectors/querySelector-leftmost-selector-matches-rootNode.html 2013-11-06 08:13:33 UTC (rev 158731)
@@ -0,0 +1,28 @@
+<!doctype html>
+<html>
+<head>
+<script src=""
+</head>
+<body id="target" class="target">
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <pre id='console'></pre>
+</body>
+<script>
+description('Test queries whose leftmost selector matches the root node.');
+shouldBe("document.body.querySelectorAll('#target > div').length", "6");
+shouldBe("document.body.querySelectorAll('#target').length", "0");
+shouldBe("document.body.querySelectorAll('.target > div').length", "6");
+shouldBe("document.body.querySelectorAll('.target').length", "0");
+shouldBe("document.body.querySelectorAll('body > div').length", "6");
+shouldBe("document.body.querySelectorAll('body').length", "0");
+shouldBeNull("document.body.querySelector('#target')");
+shouldBeNull("document.body.querySelector('.target')");
+shouldBeNull("document.body.querySelector('body')");
+</script>
+<script src=""
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes