1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/plugins/test/mochitest/test_npn_asynccall.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,33 @@ 1.4 +<html> 1.5 +<head> 1.6 + <title>NPN_AsyncCallback Tests</title> 1.7 + <script type="text/javascript" 1.8 + src="/tests/SimpleTest/SimpleTest.js"></script> 1.9 + <script type="text/javascript" src="utils.js"></script> 1.10 + <link rel="stylesheet" type="text/css" 1.11 + href="/tests/SimpleTest/test.css" /> 1.12 +</head> 1.13 +<body onload="runTests()"> 1.14 + <script class="testbody" type="application/javascript"> 1.15 + 1.16 + SimpleTest.waitForExplicitFinish(); 1.17 + setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED); 1.18 + 1.19 + function asyncTestsComplete(result) { 1.20 + ok(result, "asyncCallback tests completed"); 1.21 + SimpleTest.finish(); 1.22 + } 1.23 + 1.24 + function runTests() { 1.25 + var plugin = document.getElementById("plugin1"); 1.26 + plugin.asyncCallbackTest("asyncTestsComplete"); 1.27 + } 1.28 + </script> 1.29 + 1.30 + <p id="display"></p> 1.31 + 1.32 + <embed id="plugin1" type="application/x-test" width="400" height="100"> 1.33 + </embed> 1.34 + 1.35 + </body> 1.36 + </html>