eric@webkit.org | 00884b6 | 2009-12-20 10:27:34 +0000 | [diff] [blame] | 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"; |
rniwa@webkit.org | 5cf7fa8 | 2012-06-15 07:38:37 +0000 | [diff] [blame^] | 16 | if (testRunner) { |
| 17 | testRunner.notifyDone(); |
eric@webkit.org | 00884b6 | 2009-12-20 10:27:34 +0000 | [diff] [blame] | 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 | |
rniwa@webkit.org | 5cf7fa8 | 2012-06-15 07:38:37 +0000 | [diff] [blame^] | 33 | if (testRunner) { |
| 34 | testRunner.dumpAsText(); |
| 35 | testRunner.waitUntilDone(); |
eric@webkit.org | 00884b6 | 2009-12-20 10:27:34 +0000 | [diff] [blame] | 36 | } |
| 37 | runtest(); |
| 38 | </script> |
| 39 | </body> |
| 40 | </html> |
| 41 | |