Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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">
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 });
20 </script>
21 </pre>
22 </body>
23 </html>