Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / cssom / cssimportrule-media.html
blob72733f014923173823c464475609054bde2e3ef9
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>CSSOM - CSSImportRule - Media</title>
5 <link rel="author" title="Glenn Adams" href="mailto:glenn@skynav.com"/>
6 <link rel="help" href="http://www.w3.org/TR/cssom/#the-cssimportrule-interface"/>
7 <meta name="flags" content="dom"/>
8 <script src="../resources/testharness.js"></script>
9 <script src="../resources/testharnessreport.js"></script>
10 <style id="sheet1">
11 @import "resources/import.css";
12 </style>
13 <style id="sheet2">
14 @import "resources/import.css" all;
15 </style>
16 <style id="sheet3">
17 @import "resources/import.css" not tv;
18 </style>
19 <style id="sheet4">
20 @import "resources/import.css" screen, tv;
21 </style>
22 </head>
23 <body>
24 <div id="log"></div>
25 <div id="box"></div>
26 <script>
28 var doc = window.document;
30 var sheet1 = doc.styleSheets[0];
32 test(function(){
34 assert_equals(sheet1.cssRules[0].cssText, '@import url(\"resources/import.css\");');
36 }, 'doc.styleSheets[0].cssRules[0].cssText == \'@import url(\"resources/import.css\");\'');
38 var sheet2 = doc.styleSheets[1];
40 test(function(){
42 assert_equals(sheet2.cssRules[0].cssText, '@import url(\"resources/import.css\") all;');
44 }, 'doc.styleSheets[1].cssRules[0].cssText == \'@import url(\"resources/import.css\") all;\'');
46 var sheet3 = doc.styleSheets[2];
48 test(function(){
50 assert_equals(sheet3.cssRules[0].cssText, '@import url(\"resources/import.css\") not tv;');
52 }, 'doc.styleSheets[2].cssRules[0].cssText == \'@import url(\"resources/import.css\") not tv;\'');
54 var sheet4 = doc.styleSheets[3];
56 test(function(){
58 assert_equals(sheet4.cssRules[0].cssText, '@import url(\"resources/import.css\") screen, tv;');
60 }, 'doc.styleSheets[3].cssRules[0].cssText == \'@import url(\"resources/import.css\") screen, tv;\'');
62 </script>
63 </body>
64 </html>