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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/dom-tree-accessors/document.body-setter-01.html

Issue 1962003002: Import web-platform-tests@41d6911b288a9624c249a406b9bf51607a2dd04d (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Skip submit-entity-body.html 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/html/dom/documents/dom-tree-accessors/document.body-setter-01.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/dom-tree-accessors/document.body-setter-01.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/dom-tree-accessors/document.body-setter-01.html
deleted file mode 100644
index 6d5da6d65cbb7891cf2d55dda2b667f9df92a3a5..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/dom-tree-accessors/document.body-setter-01.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<title>Setting document.body to incorrect values</title>
-<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
-<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-document-body">
-<link rel="help" href="https://heycam.github.io/webidl/#es-interface">
-<script src="../../../../../../resources/testharness.js"></script>
-<script src="../../../../../../resources/testharnessreport.js"></script>
-<div id="log"></div>
-<script>
-var originalBody = document.body;
-test(function() {
- assert_throws(new TypeError(), function() {
- document.body = "text"
- })
-}, "Should throw a TypeError when trying to set document.body to a string.")
-test(function() {
- assert_throws("HierarchyRequestError", function() {
- document.body = document.createElement("div")
- })
-}, "Should throw a HierarchyRequestError when trying to set document.body to a div element.")
-test(function() {
- var doc = document.implementation.createHTMLDocument("")
- doc.removeChild(doc.documentElement)
- assert_throws("HierarchyRequestError", function() {
- doc.body = document.createElement("body")
- })
-}, "Should throw a HierarchyRequestError when trying to set document.body when there's no root element.")
-test(function() {
- assert_equals(document.body, originalBody);
-}, "document.body has not changed")
-</script>

Powered by Google App Engine
This is Rietveld 408576698