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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/ranges/Range-stringifier.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 <meta charset="utf-8"> 2 <meta charset="utf-8">
3 <title>Range stringifier</title> 3 <title>Range stringifier</title>
4 <link rel="author" title="KiChjang" href="mailto:kungfukeith11@gmail.com"> 4 <link rel="author" title="KiChjang" href="mailto:kungfukeith11@gmail.com">
5 <script src="../../../../resources/testharness.js"></script> 5 <script src="../../../../resources/testharness.js"></script>
6 <script src="../../../../resources/testharnessreport.js"></script> 6 <script src="../../../../resources/testharnessreport.js"></script>
7 <div id=test>Test div</div> 7 <div id=test>Test div</div>
8 <div id=another>Another div</div> 8 <div id=another>Another div</div>
9 <div id=last>Last div</div> 9 <div id=last>Last div</div>
10 <div id=log></div> 10 <div id=log></div>
(...skipping 24 matching lines...) Expand all
35 35
36 var lastDiv = document.getElementById("last"); 36 var lastDiv = document.getElementById("last");
37 var lastText = lastDiv.childNodes[0]; 37 var lastText = lastDiv.childNodes[0];
38 test(function() { 38 test(function() {
39 r.setStart(textNode, 5); 39 r.setStart(textNode, 5);
40 r.setEnd(lastText, 4); 40 r.setEnd(lastText, 4);
41 assert_equals(r.toString(), "div\nAnother div\nLast"); 41 assert_equals(r.toString(), "div\nAnother div\nLast");
42 }, "Three nodes with start offset and end offset on text nodes"); 42 }, "Three nodes with start offset and end offset on text nodes");
43 }); 43 });
44 </script> 44 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698