| <!DOCTYPE html> |
| <html> |
| <body> |
| <iframe scrolling=no width=300 height=300></iframe> |
| <script> |
| if (window.testRunner) |
| testRunner.waitUntilDone(); |
| |
| function loadImage() |
| { |
| return "http://127.0.0.1:8000/resources/load-and-stall.php"; |
| } |
| |
| function xPngImage() |
| { |
| return "?name=../../../images/resources/gracehopper.png&mimeType=" + encodeURIComponent("image/x-png"); |
| } |
| |
| function testDone() |
| { |
| window.testRunner && testRunner.notifyDone(); |
| } |
| |
| function runTests() |
| { |
| var _newLoc = loadImage() + xPngImage(); |
| document.querySelector('iframe').src = _newLoc; |
| setTimeout(testDone, 500); |
| } |
| |
| setTimeout(function(){runTests();},0); |
| </script> |
| </body> |
| </html> |