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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/document-head.html

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 11 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/fast/dom/document-head.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/document-head.html b/third_party/WebKit/LayoutTests/fast/dom/document-head.html
index ed2bbefb98544a7cf5fbf4dd589784c705386388..9f8869efd4f35bb5645f20cd9651f0b8fd914b40 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/document-head.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/document-head.html
@@ -4,6 +4,16 @@
<script src="../../resources/js-test.js"></script>
</head>
<body>
-<script src="script-tests/document-head.js"></script>
+<script>
+description("This test checks to see if document.head is available, readonly, and the same element as what we would expect by getting it by other means.");
+
+shouldBe("document.head", "document.getElementsByTagName('head')[0]");
+
+document.head = 1;
+shouldBeTrue("document.head !== 1");
+
+document.documentElement.removeChild(document.head);
+shouldBeNull("document.head");
+</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698