Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / preloader / style.html
1 <body>
2 <script>
3 if (window.testRunner)
4     testRunner.dumpAsText();
5
6 window.addEventListener('DOMContentLoaded', function() {
7     if (window.internals) {
8         var success = internals.isPreloaded("resources/style1.css") && !internals.isPreloaded("resources/fail.css");
9         console.log(success ? "PASS" : "FAIL");
10     }
11 }, false);
12 </script>
13 This test requires DumpRenderTree to see the log of what resources are loaded.
14 <script src=resources/non-existant.js></script>
15 <script>document.write("<plaintext>");</script>
16 <style>
17 @charset "ascii";
18 /* */
19 @import "resources/style1.css";
20 em {
21     @import "resources/fail.css";
22 }
23 @import "resources/fail.css";
24 </style>
25 <style>
26 @media print {
27     @import "resources/fail.css";
28 }
29 @import "resources/fail.css";
30 </style>