|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <head> |
|
4 <title>Test whether we can create an AudioContext interface</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"> |
|
11 |
|
12 SimpleTest.waitForExplicitFinish(); |
|
13 addLoadEvent(function() { |
|
14 var ac = new AudioContext(); |
|
15 ok(ac, "Create a AudioContext object"); |
|
16 ok(ac instanceof EventTarget, "AudioContexts must be EventTargets"); |
|
17 SimpleTest.finish(); |
|
18 }); |
|
19 |
|
20 </script> |
|
21 </pre> |
|
22 </body> |
|
23 </html> |