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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/ranges/Range-constructor.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 <title>Range constructor test</title> 2 <title>Range constructor test</title>
3 <link rel="author" title="Aryeh Gregor" href=ayg@aryeh.name> 3 <link rel="author" title="Aryeh Gregor" href=ayg@aryeh.name>
4 <div id=log></div> 4 <div id=log></div>
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 <script> 7 <script>
8 "use strict"; 8 "use strict";
9 9
10 test(function() { 10 test(function() {
11 var range = new Range(); 11 var range = new Range();
12 assert_equals(range.startContainer, document, "startContainer"); 12 assert_equals(range.startContainer, document, "startContainer");
13 assert_equals(range.endContainer, document, "endContainer"); 13 assert_equals(range.endContainer, document, "endContainer");
14 assert_equals(range.startOffset, 0, "startOffset"); 14 assert_equals(range.startOffset, 0, "startOffset");
15 assert_equals(range.endOffset, 0, "endOffset"); 15 assert_equals(range.endOffset, 0, "endOffset");
16 assert_true(range.collapsed, "collapsed"); 16 assert_true(range.collapsed, "collapsed");
17 assert_equals(range.commonAncestorContainer, document, 17 assert_equals(range.commonAncestorContainer, document,
18 "commonAncestorContainer"); 18 "commonAncestorContainer");
19 }); 19 });
20 </script> 20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698