summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/preloader/style-base.html
blob: 8819581e0732f2c23abc64fba343ae228d4808ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<body>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

window.addEventListener('DOMContentLoaded', function() {
    if (window.internals) {
        var success = internals.isPreloaded("resources/style1.css");
        console.log(success ? "PASS" : "FAIL");
    }
}, false);
</script>
This test requires content_shell --run-layout-test to see the log of what resources are loaded.
<script src=non-existant.js></script>
<script>document.write("<plaintext>");</script>
<base href="resources/foo.html">
<style>
@charset "ascii";
/* */
@import "style1.css";
</style>