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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/getElementsByClassName-19.htm

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><head> 2 <html><head>
3 <title>getElementsByClassName</title> 3 <title>getElementsByClassName</title>
4 <meta content="get elements in document" name="description"> 4 <meta content="get elements in document" name="description">
5 <link href="https://dom.spec.whatwg.org/#dom-document-getelementsbyclassname " rel="help"> 5 <link href="https://dom.spec.whatwg.org/#dom-document-getelementsbyclassname " rel="help">
6 <script src="../../../../resources/testharness.js"></script> 6 <script src="../../../../resources/testharness.js"></script>
7 <script src="../../../../resources/testharnessreport.js"></script> 7 <script src="../../../../resources/testharnessreport.js"></script>
8 </head> 8 </head>
9 <body> 9 <body>
10 <div id="log"></div> 10 <div id="log"></div>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 { 45 {
46 var collection = document.getElementsByClassName("text"); 46 var collection = document.getElementsByClassName("text");
47 assert_equals(collection.length, 4); 47 assert_equals(collection.length, 4);
48 assert_equals(collection[0].parentNode.nodeName, "DIV"); 48 assert_equals(collection[0].parentNode.nodeName, "DIV");
49 assert_equals(collection[1].parentNode.nodeName, "DIV"); 49 assert_equals(collection[1].parentNode.nodeName, "DIV");
50 assert_equals(collection[2].parentNode.nodeName, "TABLE"); 50 assert_equals(collection[2].parentNode.nodeName, "TABLE");
51 assert_equals(collection[3].parentNode.nodeName, "TR"); 51 assert_equals(collection[3].parentNode.nodeName, "TR");
52 }, "get elements in document"); 52 }, "get elements in document");
53 </script> 53 </script>
54 </body></html> 54 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698