blob: 74195a83873dcba8bfc80f014202f996c7d95e96 [file] [log] [blame]
eric@webkit.org00884b62009-12-20 10:27:34 +00001<html>
2<body>
3<embed id="plg" type="application/x-webkit-test-netscape"></embed><P>
4
5This tests that file URLs can embed plugins which can successfully
6load 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>
12function CheckForFinished() {
13 if (window.subframe_done == 1) {
14 var result = document.getElementById("result");
15 result.innerHTML = "SUCCESS";
rniwa@webkit.org5cf7fa82012-06-15 07:38:37 +000016 if (testRunner) {
17 testRunner.notifyDone();
eric@webkit.org00884b62009-12-20 10:27:34 +000018 }
19 } else {
20 setTimeout(CheckForFinished, 10);
21 }
22}
23
24function 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.org5cf7fa82012-06-15 07:38:37 +000033if (testRunner) {
34 testRunner.dumpAsText();
35 testRunner.waitUntilDone();
eric@webkit.org00884b62009-12-20 10:27:34 +000036}
37runtest();
38</script>
39</body>
40</html>
41