Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <head> | |
| 3 <script> | |
| 4 if (window.testRunner) | |
| 5 testRunner.dumpAsText(); | |
| 6 function testPreload(url, doc) | |
| 7 { | |
| 8 if (internals.isPreloadedBy(url, doc)) { | |
| 9 console.log("PASS: " + url + " is preloaded."); | |
| 10 } else { | |
| 11 console.log("FAIL: " + url + " should be preloaded"); | |
| 12 } | |
| 13 } | |
| 14 </script> | |
| 15 <script src="http://127.0.0.1:8000/resources/slow-script.pl?delay=100"></script> | |
| 16 <link id=target rel=import href="resources/preload.html"> | |
| 17 <script> | |
| 18 testPreload('resources/preload.html', document); | |
|
Yoav Weiss
2015/06/09 07:53:40
Can you move the test script to be above the <link
yoichio
2015/06/11 04:27:44
Done.
| |
| 19 </script> | |
| 20 </head> | |
| OLD | NEW |