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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/StyleSheet/get-stylesheet-byname.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/StyleSheet/get-stylesheet-byname.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/get-stylesheet-byname.html b/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/get-stylesheet-byname.html
index 610fada6730dff30deb3b296515c60dba444715d..b16471365561e2bb816f70470b862e29bb08b6c1 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/get-stylesheet-byname.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/get-stylesheet-byname.html
@@ -4,6 +4,13 @@
<script src="../../../resources/js-test.js"></script>
</head>
<body>
-<script src="script-tests/get-stylesheet-byname.js"></script>
+<script>
+description("This test verifies that a StyleSheet object will be returned instead of a HTMLStyleElement when calling document.styleSheets named property getter.");
+
+var styleElement = document.createElement("style");
+styleElement.setAttribute("id", "test");
+document.head.appendChild(styleElement);
+shouldBe('document.styleSheets["test"]', 'styleElement.sheet');
+</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698