| OLD | NEW |
| (Empty) |
| 1 <body> | |
| 2 <script> | |
| 3 if (window.testRunner) { | |
| 4 testRunner.dumpAsText(); | |
| 5 testRunner.dumpResourceResponseMIMETypes(); | |
| 6 // Prevent networking layer from reordering loads. | |
| 7 testRunner.setSerializeHTTPLoads(); | |
| 8 testRunner.waitUntilDone(); | |
| 9 } | |
| 10 function done() { | |
| 11 if (window.testRunner) | |
| 12 setTimeout(function(){ testRunner.notifyDone() }, 1000); | |
| 13 } | |
| 14 </script> | |
| 15 <style> | |
| 16 plaintext { display: none } | |
| 17 </style> | |
| 18 <body onload="done()") | |
| 19 <br><br> | |
| 20 This test requires DumpRenderTree to see the log of what resources are loaded. | |
| 21 <br><br> | |
| 22 The first script document.writes a plaintext tag so the main parser will not loa
d | |
| 23 the subsequent resources. Preload scanner won't know this so it will still kick
off the loads, | |
| 24 allowing us to verify that preloading is working as expected. | |
| 25 <script> | |
| 26 document.write('<script src="resources/document-write-plaintext.js"></sc'+'r
ipt>'); | |
| 27 document.write('<script src="resources/script1.js"></sc'+'ript>'); | |
| 28 </script> | |
| 29 | |
| OLD | NEW |