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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/script-tests/css-mediarule-parentRule.js

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 description(
2 'This tests that calling parentRule on the child rule of MediaRule is equal to t hat MediaRule.'
3 );
4
5 if (window.testRunner)
6 testRunner.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")
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698