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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Node-parentElement.html

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (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>Node.parentElement</title> 2 <title>Node.parentElement</title>
3 <script src="../../../../resources/testharness.js"></script> 3 <script src="../../../../resources/testharness.js"></script>
4 <script src="../../../../resources/testharnessreport.js"></script> 4 <script src="../../../../resources/testharnessreport.js"></script>
5 <div id="log"></div> 5 <div id="log"></div>
6 <script> 6 <script>
7 test(function() { 7 test(function() {
8 assert_equals(document.parentElement, null) 8 assert_equals(document.parentElement, null)
9 }, "When the parent is null, parentElement should be null") 9 }, "When the parent is null, parentElement should be null")
10 test(function() { 10 test(function() {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 document.body.appendChild(el) 73 document.body.appendChild(el)
74 assert_equals(el.parentElement, document.body) 74 assert_equals(el.parentElement, document.body)
75 }, "parentElement should work correctly in a document (element)") 75 }, "parentElement should work correctly in a document (element)")
76 test(function() { 76 test(function() {
77 var text = document.createElement("div") 77 var text = document.createElement("div")
78 assert_equals(text.parentElement, null) 78 assert_equals(text.parentElement, null)
79 document.body.appendChild(text) 79 document.body.appendChild(text)
80 assert_equals(text.parentElement, document.body) 80 assert_equals(text.parentElement, document.body)
81 }, "parentElement should work correctly in a document (text)") 81 }, "parentElement should work correctly in a document (text)")
82 </script> 82 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698