2 // This script provides some mechanics for testing NPAPI
5 /* public */ function onSuccess(name, id)
7 setTimeout(onFinished, 0, name, id, "OK");
10 /* public */ function onFailure(name, id, status)
12 setTimeout(onFinished, 0, name, id, status);
17 // Finish running a test by setting the status
19 /* private */ function onFinished(name, id, result)
21 var statusPanel = document.getElementById("statusPanel");
23 statusPanel.innerHTML = result;
27 document.title = "OK";
29 document.title = "FAIL";