Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / preloader / script.html
1 <body>
2 <script>
3 if (window.testRunner)
4     testRunner.dumpAsText();
5
6 window.addEventListener('DOMContentLoaded', function() {
7     if (window.internals)
8         console.log(internals.isPreloaded("resources/script1.js") ? "PASS" : "FAIL");
9 }, false);
10 </script>
11 This test requires DumpRenderTree to see the log of what resources are loaded.
12 <script src=resources/non-existant.js></script>
13 <script>document.write("<plaintext>");</script>
14 <script src=resources/script1.js></script>