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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLInputElement/script-tests/checked-pseudo-selector.js

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/script-tests/checked-pseudo-selector.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLInputElement/script-tests/checked-pseudo-selector.js b/third_party/WebKit/LayoutTests/fast/dom/HTMLInputElement/script-tests/checked-pseudo-selector.js
deleted file mode 100644
index 49b77b1e36354576c6eb988829f68f245c089fb9..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLInputElement/script-tests/checked-pseudo-selector.js
+++ /dev/null
@@ -1,17 +0,0 @@
-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);

Powered by Google App Engine
This is Rietveld 408576698