4 <script src=
"resources/compatibility.js"></script>
5 <script src=
"../resources/js-test.js"></script>
10 description("Tests audio context for offline attributes and methods.");
13 // Create an online and offline context for testing.
14 onlineContext
= new AudioContext();
15 offlineContext
= new OfflineAudioContext(1, 1000, 44100);
17 // The online context cannot have oncomplete and startRendering
18 shouldBeUndefined("onlineContext.oncomplete");
19 shouldBeUndefined("onlineContext.startRendering");
21 // The offline context must have oncomplete and startRendering
22 shouldBeDefined("offlineContext.oncomplete");
23 shouldBeDefined("offlineContext.startRendering");
28 successfullyParsed
= true;