Harness status: OK

Found 54 tests

54 Pass
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: "WaveShaperNode() needs one argument".
Pass	  new WaveShaperNode(1) threw TypeError: "Not an object of type BaseAudioContext".
Pass	  new WaveShaperNode(context, 42) threw TypeError: "Not an object of type WaveShaperOptions".
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: "Invalid channel count".
Pass	  new WaveShaperNode(c, {channelCount: 99}) threw NotSupportedError: "Invalid channel count".
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: "Invalid value 'foobar' for enumeration type 'ChannelCountMode'".
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: "Invalid value 'foobar' for enumeration type 'ChannelInterpretation'".
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.