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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLInputElement/checked-pseudo-selector.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/HTMLInputElement/checked-pseudo-selector.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLInputElement/checked-pseudo-selector.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLInputElement/checked-pseudo-selector.html
index 86592540feb7d4db61533acb0724aad7a99e3b7a..8e4cdcebc763a0a47f51b412dd7c144c41020a93 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLInputElement/checked-pseudo-selector.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/HTMLInputElement/checked-pseudo-selector.html
@@ -4,6 +4,24 @@
<script src="../../../resources/js-test.js"></script>
</head>
<body>
-<script src="script-tests/checked-pseudo-selector.js"></script>
+<script>
+var style = document.createElement('style');
+style.appendChild(document.createTextNode("input { color: green; }"));
+style.appendChild(document.createTextNode("input:checked { color: red; }"));
+document.documentElement.firstChild.appendChild(style);
+
+var input1 = document.createElement('input');
+input1.type = 'radio';
+document.body.appendChild(input1);
+input1.checked = true;
+input1.type = "text";
+
+var view = document.defaultView;
+shouldBeEqualToString("view.getComputedStyle(input1, '').getPropertyValue('color')", "rgb(0, 128, 0)");
+shouldBeTrue("input1.checked");
+
+// cleanup
+document.body.removeChild(input1);
+</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698