Fix preloader issue with srcdoc documents.
[WebKit-https.git] / LayoutTests / fast / preloader / iframe-srcdoc.html
1 <body>
2 <script>
3     if (window.testRunner) {
4         testRunner.dumpChildFramesAsText();
5         testRunner.dumpAsText();
6     }
7
8 </script>
9 This test has to be run as a layout test in order to see if resources were loaded and the test passed.
10 <iframe srcdoc="<script> window.addEventListener('DOMContentLoaded', function() { if (window.internals) console.log(internals.isPreloaded('resources/script1.js') ? 'PASS' : 'FAIL'); }, false); </script><script src=resources/non-existant.js></script><script>document.write('<plaintext>');</script> <script src=resources/script1.js></script>" />