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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Text-splitText.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>Text.splitText()</title> 3 <title>Text.splitText()</title>
4 <link rel=help href="https://dom.spec.whatwg.org/#dom-text-splittextoffset"> 4 <link rel=help href="https://dom.spec.whatwg.org/#dom-text-splittextoffset">
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="log"></div> 7 <div id="log"></div>
8 <script> 8 <script>
9 test(function() { 9 test(function() {
10 var text = document.createTextNode("camembert"); 10 var text = document.createTextNode("camembert");
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 var parent = document.createElement('div'); 44 var parent = document.createElement('div');
45 var text = document.createTextNode("bleu"); 45 var text = document.createTextNode("bleu");
46 parent.appendChild(text); 46 parent.appendChild(text);
47 var new_text = text.splitText(2); 47 var new_text = text.splitText(2);
48 assert_equals(text.data, "bl"); 48 assert_equals(text.data, "bl");
49 assert_equals(new_text.data, "eu"); 49 assert_equals(new_text.data, "eu");
50 assert_equals(text.nextSibling, new_text); 50 assert_equals(text.nextSibling, new_text);
51 assert_equals(new_text.parentNode, parent); 51 assert_equals(new_text.parentNode, parent);
52 }, "Split child"); 52 }, "Split child");
53 </script> 53 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698