| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <body> | |
| 3 <embed id="plg" type="application/x-webkit-test-netscape"></embed><P> | |
| 4 | |
| 5 This tests that file URLs can embed plugins which can successfully | |
| 6 load other File URLs from the Plugin. (Via the NPN_GetURL API) | |
| 7 | |
| 8 <div id="result">FAILED</div> | |
| 9 <iframe name="output">Output Goes Here</iframe> | |
| 10 | |
| 11 <script> | |
| 12 function CheckForFinished() { | |
| 13 if (window.subframe_done == 1) { | |
| 14 var result = document.getElementById("result"); | |
| 15 result.innerHTML = "SUCCESS"; | |
| 16 if (testRunner) { | |
| 17 testRunner.notifyDone(); | |
| 18 } | |
| 19 } else { | |
| 20 setTimeout(CheckForFinished, 10); | |
| 21 } | |
| 22 } | |
| 23 | |
| 24 function runtest() { | |
| 25 window.subframe_done = 0; | |
| 26 var loc = window.location.toString(); | |
| 27 var subfile = loc.replace(/get-file-url.html/,"resources/get-file-url-subframe
.html"); | |
| 28 var plg = document.getElementById("plg"); | |
| 29 plg.getURL(subfile, "output"); | |
| 30 setTimeout(CheckForFinished, 10); | |
| 31 } | |
| 32 | |
| 33 if (testRunner) { | |
| 34 testRunner.dumpAsText(); | |
| 35 testRunner.waitUntilDone(); | |
| 36 } | |
| 37 runtest(); | |
| 38 </script> | |
| 39 </body> | |
| 40 </html> | |
| 41 | |
| OLD | NEW |