| Index: third_party/WebKit/LayoutTests/fast/dom/css-mediarule-parentRule.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/css-mediarule-parentRule.html b/third_party/WebKit/LayoutTests/fast/dom/css-mediarule-parentRule.html
|
| index ee0c5fe8455bc4b7b97305f2eefe85cd311ee503..cef526e133858ae28f28e58c6f59edc367d6c083 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/css-mediarule-parentRule.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/css-mediarule-parentRule.html
|
| @@ -4,6 +4,23 @@
|
| <script src="../../resources/js-test.js"></script>
|
| </head>
|
| <body>
|
| -<script src="script-tests/css-mediarule-parentRule.js"></script>
|
| +<script>
|
| +description(
|
| +'This tests that calling parentRule on the child rule of MediaRule is equal to that MediaRule.'
|
| +);
|
| +
|
| +if (window.testRunner)
|
| + testRunner.dumpAsText();
|
| +
|
| +var head = document.getElementsByTagName('head')[0];
|
| +head.innerHTML = "<style>@media all { a { border-color: red; } }</style>";
|
| +
|
| +var styleSheetList = document.styleSheets;
|
| +var styleSheet = styleSheetList[0];
|
| +var mediaRule = styleSheet.cssRules[0];
|
| +var childRule = mediaRule.cssRules[0];
|
| +
|
| +shouldBe("childRule.parentRule", "mediaRule")
|
| +</script>
|
| </body>
|
| </html>
|
|
|