tizen beta release
[framework/web/webkit-efl.git] / LayoutTests / fast / dom / script-tests / css-mediarule-parentRule.js
1 description(
2 'This tests that calling parentRule on the child rule of MediaRule is equal to that MediaRule.'
3 );
4
5 if (window.layoutTestController)
6     layoutTestController.dumpAsText();
7
8 var head = document.getElementsByTagName('head')[0];
9 head.innerHTML = "<style>@media all { a { border-color: red; } }</style>";
10
11 var styleSheetList = document.styleSheets;
12 var styleSheet = styleSheetList[0];
13 var mediaRule = styleSheet.cssRules[0];
14 var childRule = mediaRule.cssRules[0];
15
16 shouldBe("childRule.parentRule", "mediaRule")