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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/traversal/TreeWalker-walking-outside-a-tree.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://github.com/operasoftware/presto-testo/blob/master/core /standards/acid3/individual/006a.html 4 Test adapted from https://github.com/operasoftware/presto-testo/blob/master/core /standards/acid3/individual/006a.html
5 --> 5 -->
6 <head> 6 <head>
7 <title>TreeWalker: walking-outside-a-tree</title> 7 <title>TreeWalker: walking-outside-a-tree</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 20 matching lines...) Expand all
31 doc.appendChild(p); 31 doc.appendChild(p);
32 assert_equals(w.previousNode(), title, "failed to handle regrafting correctl y"); 32 assert_equals(w.previousNode(), title, "failed to handle regrafting correctl y");
33 p.appendChild(body); 33 p.appendChild(body);
34 assert_equals(w.nextNode(), p, "couldn't retrace steps"); 34 assert_equals(w.nextNode(), p, "couldn't retrace steps");
35 assert_equals(w.nextNode(), body, "couldn't step back into root"); 35 assert_equals(w.nextNode(), body, "couldn't step back into root");
36 assert_equals(w.previousNode(), null, "root didn't retake its rootish positi on"); 36 assert_equals(w.previousNode(), null, "root didn't retake its rootish positi on");
37 }, "walking outside a tree"); 37 }, "walking outside a tree");
38 </script> 38 </script>
39 </body> 39 </body>
40 </html> 40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698