blob: edc54006dc64a2cfd1f802922aa9b4e5f06ccab5 [file] [log] [blame]
PASS # AUDIT TASK RUNNER STARTED.
PASS Executing "initialize"
PASS Executing "incorrect construction"
PASS Executing "valid default construction"
PASS Executing "test AudioNodeOptions"
PASS Executing "valid non-default"
PASS Audit report
PASS > [initialize]
PASS context = new OfflineAudioContext(...) did not throw an exception.
PASS < [initialize] All assertions passed. (total 1 assertions)
PASS > [incorrect construction]
PASS new WaveShaperNode() threw TypeError: "Not enough arguments".
PASS new WaveShaperNode(1) threw TypeError: "Argument 1 ('context') to the WaveShaperNode constructor must be an instance of BaseAudioContext".
PASS new WaveShaperNode(context, 42) threw TypeError: "Type error".
PASS < [incorrect construction] All assertions passed. (total 3 assertions)
PASS > [valid default construction]
PASS node0 = new WaveShaperNode(context) did not throw an exception.
PASS node0 instanceof WaveShaperNode 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 node0.curve is equal to null.
PASS node0.oversample is equal to none.
PASS < [valid default construction] All assertions passed. (total 9 assertions)
PASS > [test AudioNodeOptions]
PASS new WaveShaperNode(c, {channelCount: 17}) did not throw an exception.
PASS node.channelCount is equal to 17.
PASS new WaveShaperNode(c, {channelCount: 0}) threw NotSupportedError: "Channel count cannot be 0".
PASS new WaveShaperNode(c, {channelCount: 99}) threw NotSupportedError: "Channel count exceeds maximum limit".
PASS new WaveShaperNode(c, {channelCountMode: "max"} did not throw an exception.
PASS node.channelCountMode is equal to max.
PASS new WaveShaperNode(c, {channelCountMode: "max"}) did not throw an exception.
PASS node.channelCountMode after valid setter is equal to max.
PASS new WaveShaperNode(c, {channelCountMode: "clamped-max"}) did not throw an exception.
PASS node.channelCountMode after valid setter is equal to clamped-max.
PASS new WaveShaperNode(c, {channelCountMode: "explicit"}) did not throw an exception.
PASS node.channelCountMode after valid setter is equal to explicit.
PASS new WaveShaperNode(c, {channelCountMode: "foobar"} threw TypeError: "Type error".
PASS node.channelCountMode after invalid setter is equal to explicit.
PASS new WaveShaperNode(c, {channelInterpretation: "speakers"}) did not throw an exception.
PASS node.channelInterpretation is equal to speakers.
PASS new WaveShaperNode(c, {channelInterpretation: "discrete"}) did not throw an exception.
PASS node.channelInterpretation is equal to discrete.
PASS new WaveShaperNode(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 > [valid non-default]
PASS node1 = new WaveShaperNode(, {"curve":{"0":1,"1":2,"2":3},"oversample":"4x"}) did not throw an exception.
PASS node1.curve is identical to the array [1,2,3].
PASS node1.oversample is equal to 4x.
PASS < [valid non-default] All assertions passed. (total 3 assertions)
PASS # AUDIT TASK RUNNER FINISHED: 5 tasks ran successfully.