blob: 1da7f392a6d670acb3ab037797b8e8589ec76e92 [file] [log] [blame]
<body>
<script>
if (window.testRunner)
testRunner.dumpAsText();
window.addEventListener('DOMContentLoaded', function() {
if (window.internals) {
var success = internals.isPreloaded("resources/style1.css") && !internals.isPreloaded("resources/fail.css");
console.log(success ? "PASS" : "FAIL");
}
}, false);
</script>
This test requires DumpRenderTree to see the log of what resources are loaded.
<script src=resources/non-existant.js></script>
<script>document.write("<plaintext>");</script>
<style>
@charset "ascii";
/* */
@import "resources/style1.css";
em {
@import "resources/fail.css";
}
@import "resources/fail.css";
</style>
<style>
@media print {
@import "resources/fail.css";
}
@import "resources/fail.css";
</style>