3 var NPERR_NO_ERROR = 0;
4 var NPERR_GENERIC_ERROR = 1;
6 function callback(result) {
7 var d = document.getElementById('result');
9 if (result == NPERR_NO_ERROR)
10 d.innerHTML = "SUCCESS"
12 d.innerHTML = "FAILED - got error code " + result
14 layoutTestController.notifyDone();
18 if (window.layoutTestController) {
19 layoutTestController.dumpAsText();
20 layoutTestController.waitUntilDone();
21 plg.getURLNotify("data:,hello world", "frame", "callback");
23 document.write("Cannot run interactively");
27 <body onload="runtest()">
28 <embed id="plg" type="application/x-webkit-test-netscape"></embed>
29 This tests that the plugin properly receives NPP_URLNotify for subframe loads.
30 <div id="result">FAILED</div>
31 <iframe id="frame"></iframe>