Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 <html>
2 <head>
3 <title>NPN_Timer Tests</title>
4 <script type="text/javascript"
5 src="/tests/SimpleTest/SimpleTest.js"></script>
6 <script type="text/javascript" src="utils.js"></script>
7 <link rel="stylesheet" type="text/css"
8 href="/tests/SimpleTest/test.css" />
9 </head>
10 <body onload="runTests()">
11 <script class="testbody" type="application/javascript">
13 SimpleTest.waitForExplicitFinish();
14 setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED);
16 function pluginTimerTestFinish(result) {
17 ok(result, "timer tests completed");
18 SimpleTest.finish();
19 }
21 function runTests() {
22 var plugin = document.getElementById("plugin1");
23 plugin.timerTest("pluginTimerTestFinish");
24 }
25 </script>
27 <p id="display"></p>
29 <embed id="plugin1" type="application/x-test" width="400" height="100">
30 </embed>
32 </body>
33 </html>