| 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>
|
|
|