1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
4 <title>Test Connecting
0-output channel ScriptProcessor to Another Node
</title>
5 <script src=
"../resources/js-test.js"></script>
6 <script src=
"resources/compatibility.js"></script>
7 <script src=
"resources/audio-testing.js"></script>
12 description("Test Connecting 0-output channel ScriptProcessor to Another Node");
13 window
.jsTestIsAsync
= true;
15 var audit
= Audit
.createTaskRunner();
21 audit
.defineTask("initialize", function (done
) {
22 Should("context = new OfflineAudioContext(1, 1024, 44100)", function () {
23 context
= new OfflineAudioContext(1, 1024, 44100);
25 Should("analyzer = context.createAnalyser()", function () {
26 analyzer
= context
.createAnalyser();
28 Should("scriptNode1 = context.createScriptProcessor(1024, 11, 0)", function () {
29 scriptNode1
= context
.createScriptProcessor(1024, 11, 0);
31 Should("scriptNode2 = context.createScriptProcessor(1024, 1, 1)", function () {
32 scriptNode2
= context
.createScriptProcessor(1024, 1, 1);
37 audit
.defineTask("test", function (done
) {
38 Should("scriptNode1.connect(analyzer)", function () {
39 scriptNode1
.connect(analyzer
);
40 }).throw("InvalidAccessError");
41 Should("scriptNode2.connect(analyzer)", function () {
42 scriptNode2
.connect(analyzer
);
47 audit
.defineTask("finish", function (done
) {