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 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Test AudioContext.currentTime</title>
5 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
7 </head>
8 <body>
9 <pre id="test">
10 <script class="testbody" type="text/javascript">
12 SimpleTest.waitForExplicitFinish();
13 addLoadEvent(function() {
14 var ac = new AudioContext();
15 is(ac.currentTime, 0, "AudioContext.currentTime should be 0 initially");
16 setTimeout(function() {
17 ok(ac.currentTime > 0, "AudioContext.currentTime should have increased by now");
18 SimpleTest.finish();
19 }, 1000);
20 });
22 </script>
23 </pre>
24 </body>
25 </html>