| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <body> | |
| 3 <script src="/js-test-resources/js-test.js"></script> | |
| 4 <script> | |
| 5 window.jsTestIsAsync = true; | |
| 6 | |
| 7 if (window.testRunner) | |
| 8 testRunner.dumpResourceRequestPriorities(); | |
| 9 | |
| 10 // Load test target html inside an iframe to ensure that | |
| 11 // resource request dumps always include preloader requests. | |
| 12 var iframe = document.createElement("iframe"); | |
| 13 iframe.src = "resources/promote-img-in-viewport-priority-iframe.html"; | |
| 14 document.body.appendChild(iframe); | |
| 15 window.onload = function() { | |
| 16 setTimeout(function() { | |
| 17 document.body.removeChild(iframe); | |
| 18 finishJSTest(); | |
| 19 }, 0); | |
| 20 }; | |
| 21 </script> | |
| OLD | NEW |