Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(642)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/traversal/TreeWalker-previousNodeLastChildReject.html

Issue 1988983002: Move the dom directory from web-platform-tests/ to wpt/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <!-- 3 <!--
4 Test adapted from https://mxr.mozilla.org/chromium/source/src/third_party/WebKit /LayoutTests/fast/dom/TreeWalker/script-tests/previousNodeLastChildReject.js 4 Test adapted from https://mxr.mozilla.org/chromium/source/src/third_party/WebKit /LayoutTests/fast/dom/TreeWalker/script-tests/previousNodeLastChildReject.js
5 --> 5 -->
6 <head> 6 <head>
7 <title>TreeWalker: previousNodeLastChildReject</title> 7 <title>TreeWalker: previousNodeLastChildReject</title>
8 <script src="../../../../resources/testharness.js"></script> 8 <script src="../../../../resources/testharness.js"></script>
9 <script src="../../../../resources/testharnessreport.js"></script> 9 <script src="../../../../resources/testharnessreport.js"></script>
10 <script src="traversal-support.js"></script> 10 <script src="traversal-support.js"></script>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 assert_node(walker.nextNode(), { type: Element, id: 'C1' }); 78 assert_node(walker.nextNode(), { type: Element, id: 'C1' });
79 assert_node(walker.currentNode, { type: Element, id: 'C1' }); 79 assert_node(walker.currentNode, { type: Element, id: 'C1' });
80 assert_node(walker.nextNode(), { type: Element, id: 'B2' }); 80 assert_node(walker.nextNode(), { type: Element, id: 'B2' });
81 assert_node(walker.currentNode, { type: Element, id: 'B2' }); 81 assert_node(walker.currentNode, { type: Element, id: 'B2' });
82 assert_node(walker.previousNode(), { type: Element, id: 'C1' }); 82 assert_node(walker.previousNode(), { type: Element, id: 'C1' });
83 assert_node(walker.currentNode, { type: Element, id: 'C1' }); 83 assert_node(walker.currentNode, { type: Element, id: 'C1' });
84 }, 'Test that previousNode properly respects the filter.'); 84 }, 'Test that previousNode properly respects the filter.');
85 </script> 85 </script>
86 </body> 86 </body>
87 </html> 87 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698