| |
| PASS # AUDIT TASK RUNNER STARTED. |
| PASS Executing "initialize" |
| PASS Executing "invalid constructor" |
| PASS Executing "default constructor" |
| PASS Executing "test AudioNodeOptions" |
| PASS Executing "constructor options" |
| PASS Executing "functionality" |
| PASS Audit report |
| PASS > [initialize] |
| PASS context = new OfflineAudioContext(...) did not throw an exception. |
| PASS < [initialize] All assertions passed. (total 1 assertions) |
| PASS > [invalid constructor] |
| PASS new IIRFilterNode() threw TypeError: "Not enough arguments". |
| PASS new IIRFilterNode(1) threw TypeError: "Not enough arguments". |
| PASS new IIRFilterNode(context, 42) threw TypeError: "Type error". |
| PASS < [invalid constructor] All assertions passed. (total 3 assertions) |
| PASS > [default constructor] |
| PASS node0 = new IIRFilterNode(context, {"feedforward":[1],"feedback":[1,-0.9]}) did not throw an exception. |
| PASS node0 instanceof IIRFilterNode is equal to true. |
| PASS node0.numberOfInputs is equal to 1. |
| PASS node0.numberOfOutputs is equal to 1. |
| PASS node0.channelCount is equal to 2. |
| PASS node0.channelCountMode is equal to max. |
| PASS node0.channelInterpretation is equal to speakers. |
| PASS < [default constructor] All assertions passed. (total 7 assertions) |
| PASS > [test AudioNodeOptions] |
| PASS new IIRFilterNode(c, {channelCount: 17}) did not throw an exception. |
| PASS node.channelCount is equal to 17. |
| PASS new IIRFilterNode(c, {channelCount: 0}) threw NotSupportedError: "Channel count cannot be 0". |
| PASS new IIRFilterNode(c, {channelCount: 99}) threw NotSupportedError: "Channel count exceeds maximum limit". |
| PASS new IIRFilterNode(c, {channelCountMode: "max"} did not throw an exception. |
| PASS node.channelCountMode is equal to max. |
| PASS new IIRFilterNode(c, {channelCountMode: "max"}) did not throw an exception. |
| PASS node.channelCountMode after valid setter is equal to max. |
| PASS new IIRFilterNode(c, {channelCountMode: "clamped-max"}) did not throw an exception. |
| PASS node.channelCountMode after valid setter is equal to clamped-max. |
| PASS new IIRFilterNode(c, {channelCountMode: "explicit"}) did not throw an exception. |
| PASS node.channelCountMode after valid setter is equal to explicit. |
| PASS new IIRFilterNode(c, {channelCountMode: "foobar"} threw TypeError: "Type error". |
| PASS node.channelCountMode after invalid setter is equal to explicit. |
| PASS new IIRFilterNode(c, {channelInterpretation: "speakers"}) did not throw an exception. |
| PASS node.channelInterpretation is equal to speakers. |
| PASS new IIRFilterNode(c, {channelInterpretation: "discrete"}) did not throw an exception. |
| PASS node.channelInterpretation is equal to discrete. |
| PASS new IIRFilterNode(c, {channelInterpretation: "foobar"}) threw TypeError: "Type error". |
| PASS node.channelInterpretation after invalid setter is equal to discrete. |
| PASS < [test AudioNodeOptions] All assertions passed. (total 20 assertions) |
| PASS > [constructor options] |
| PASS node = new IIRFilterNode(, {"feedback":[1,0.5]}) threw TypeError: "Member IIRFilterOptions.feedforward is required and must be an instance of sequence". |
| PASS node = new IIRFilterNode(c, {"feedforward":[1,0.5]}) threw TypeError: "Member IIRFilterOptions.feedback is required and must be an instance of sequence". |
| PASS < [constructor options] All assertions passed. (total 2 assertions) |
| PASS > [functionality] |
| PASS Output of filter using new IIRFilter(...) is identical to the array [expected array]. |
| PASS < [functionality] All assertions passed. (total 1 assertions) |
| PASS # AUDIT TASK RUNNER FINISHED: 6 tasks ran successfully. |
| |