| Index: third_party/WebKit/LayoutTests/css3/media-cssom.html
|
| diff --git a/third_party/WebKit/LayoutTests/css3/media-cssom.html b/third_party/WebKit/LayoutTests/css3/media-cssom.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..894c2e2182a81d59ec12919baca0a4e2ca4bb3af
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/css3/media-cssom.html
|
| @@ -0,0 +1,32 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<title>@media CSSOM - inherited from CSSConditionRule</title>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +<style>
|
| + @media screen and (min-width: 480px) {
|
| + body { background-color: lightgreen; }
|
| + }
|
| +</style>
|
| +</head>
|
| +<body>
|
| +<p>Test for <a href="http://crbug.com/651792">bug 651792</a>.</p>
|
| +<script>
|
| + var rules = document.styleSheets[0].cssRules;
|
| + test(function(){
|
| + assert_equals(CSSRule.STYLE_RULE,1);
|
| + assert_equals(CSSRule.MEDIA_RULE,4);
|
| + assert_equals(rules.length, 1);
|
| + assert_equals(rules[0].type, 4);
|
| + assert_equals(rules[0].cssRules.length, 1);
|
| + assert_equals(rules[0].cssRules[0].type, 1);
|
| + assert_equals(rules[0].conditionText, "screen and (min-width: 480px)");
|
| + assert_equals(rules[0].cssText,
|
| + "@media screen and (min-width: 480px) { \n" +
|
| + " body { background-color: lightgreen; }\n" +
|
| + "}");
|
| + }, "@media inherited from CSSConditionRule pass.");
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|