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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Node-parentElement.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Node-parentElement.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Node-parentElement.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Node-parentElement.html
deleted file mode 100644
index 61aaa715024243ad79d6b63cb9d7b81ed488e8b7..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Node-parentElement.html
+++ /dev/null
@@ -1,82 +0,0 @@
-<!DOCTYPE html>
-<title>Node.parentElement</title>
-<script src="../../../../resources/testharness.js"></script>
-<script src="../../../../resources/testharnessreport.js"></script>
-<div id="log"></div>
-<script>
-test(function() {
- assert_equals(document.parentElement, null)
-}, "When the parent is null, parentElement should be null")
-test(function() {
- assert_equals(document.doctype.parentElement, null)
-}, "When the parent is a document, parentElement should be null (doctype)")
-test(function() {
- assert_equals(document.documentElement.parentElement, null)
-}, "When the parent is a document, parentElement should be null (element)")
-test(function() {
- var comment = document.appendChild(document.createComment("foo"))
- assert_equals(comment.parentElement, null)
-}, "When the parent is a document, parentElement should be null (comment)")
-test(function() {
- var df = document.createDocumentFragment()
- assert_equals(df.parentElement, null)
- var el = document.createElement("div")
- assert_equals(el.parentElement, null)
- df.appendChild(el)
- assert_equals(el.parentNode, df)
- assert_equals(el.parentElement, null)
-}, "parentElement should return null for children of DocumentFragments (element)")
-test(function() {
- var df = document.createDocumentFragment()
- assert_equals(df.parentElement, null)
- var text = document.createTextNode("bar")
- assert_equals(text.parentElement, null)
- df.appendChild(text)
- assert_equals(text.parentNode, df)
- assert_equals(text.parentElement, null)
-}, "parentElement should return null for children of DocumentFragments (text)")
-test(function() {
- var df = document.createDocumentFragment()
- var parent = document.createElement("div")
- df.appendChild(parent)
- var el = document.createElement("div")
- assert_equals(el.parentElement, null)
- parent.appendChild(el)
- assert_equals(el.parentElement, parent)
-}, "parentElement should work correctly with DocumentFragments (element)")
-test(function() {
- var df = document.createDocumentFragment()
- var parent = document.createElement("div")
- df.appendChild(parent)
- var text = document.createTextNode("bar")
- assert_equals(text.parentElement, null)
- parent.appendChild(text)
- assert_equals(text.parentElement, parent)
-}, "parentElement should work correctly with DocumentFragments (text)")
-test(function() {
- var parent = document.createElement("div")
- var el = document.createElement("div")
- assert_equals(el.parentElement, null)
- parent.appendChild(el)
- assert_equals(el.parentElement, parent)
-}, "parentElement should work correctly in disconnected subtrees (element)")
-test(function() {
- var parent = document.createElement("div")
- var text = document.createTextNode("bar")
- assert_equals(text.parentElement, null)
- parent.appendChild(text)
- assert_equals(text.parentElement, parent)
-}, "parentElement should work correctly in disconnected subtrees (text)")
-test(function() {
- var el = document.createElement("div")
- assert_equals(el.parentElement, null)
- document.body.appendChild(el)
- assert_equals(el.parentElement, document.body)
-}, "parentElement should work correctly in a document (element)")
-test(function() {
- var text = document.createElement("div")
- assert_equals(text.parentElement, null)
- document.body.appendChild(text)
- assert_equals(text.parentElement, document.body)
-}, "parentElement should work correctly in a document (text)")
-</script>

Powered by Google App Engine
This is Rietveld 408576698