Click here to download the Blitz Browser!

WPT

wpt / webaudio / the-audio-api / the-constantsourcenode-interface / ctor-constantsource.html

Spec: Web Audio API ↗

Runs: Chrome 155.0.8041.0 (wpt@4a01b83e3, 2026-09-04) | Firefox 157.0a1 (wpt@e7122b73f, 2026-09-04) | Safari 251 preview (wpt@2c385f65e, 2026-09-04) | Ladybird 1.0-70fb3 (wpt@4a01b83e3, 2026-09-04) | Servo Servo 0.6 (wpt@7e3d005d7, 2026-09-03) | Blitz a50cb8971 (wpt@a95401e4e, 2026-09-03)

View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi

ChromeFirefoxSafariLadybirdServoBlitz
Total24/2424/2424/2424/2424/24NOT RUN
SubtestChromeFirefoxSafariLadybirdServoBlitz
# AUDIT TASK RUNNER STARTED.PASSPASSPASSPASSPASS
Executing "initialize"PASSPASSPASSPASSPASS
Executing "invalid constructor"PASSPASSPASSPASSPASS
Executing "default constructor"PASSPASSPASSPASSPASS
Audit reportPASSPASSPASSPASSPASS
> [initialize] PASSPASSPASSPASSPASS
context = new OfflineAudioContext(...) did not throw an exception.PASSPASSPASSPASSPASS
< [initialize] All assertions passed. (total 1 assertions)PASSPASSPASSPASSPASS
> [invalid constructor] PASSPASSPASSPASSPASS
new ConstantSourceNode() threw TypeError: "Failed to construct 'ConstantSourceNode': 1 argument required, but only 0 present.".PASS
new ConstantSourceNode(1) threw TypeError: "Failed to construct 'ConstantSourceNode': parameter 1 is not of type 'BaseAudioContext'.".PASS
new ConstantSourceNode(context, 42) threw TypeError: "Failed to construct 'ConstantSourceNode': The provided value is not of type 'ConstantSourceOptions'.".PASS
< [invalid constructor] All assertions passed. (total 3 assertions)PASSPASSPASSPASSPASS
> [default constructor] PASSPASSPASSPASSPASS
node0 = new ConstantSourceNode(context) did not throw an exception.PASSPASSPASSPASSPASS
node0 instanceof ConstantSourceNode is equal to true.PASSPASSPASSPASSPASS
node0.numberOfInputs is equal to 0.PASSPASSPASSPASSPASS
node0.numberOfOutputs is equal to 1.PASSPASSPASSPASSPASS
node0.channelCount is equal to 2.PASSPASSPASSPASSPASS
node0.channelCountMode is equal to max.PASSPASSPASSPASSPASS
node0.channelInterpretation is equal to speakers.PASSPASSPASSPASSPASS
node0.offset.value is equal to 1.PASSPASSPASSPASSPASS
< [default constructor] All assertions passed. (total 8 assertions)PASSPASSPASSPASSPASS
# AUDIT TASK RUNNER FINISHED: 3 tasks ran successfully.PASSPASSPASSPASSPASS
new ConstantSourceNode() threw TypeError: "ConstantSourceNode constructor: At least 1 argument required, but only 0 passed".PASS
new ConstantSourceNode(1) threw TypeError: "ConstantSourceNode constructor: Argument 1 is not an object.".PASS
new ConstantSourceNode(context, 42) threw TypeError: "ConstantSourceNode constructor: Argument 2 can't be converted to a dictionary.".PASS
new ConstantSourceNode() threw TypeError: "Not enough arguments".PASS
new ConstantSourceNode(1) threw TypeError: "Argument 1 ('context') to the ConstantSourceNode constructor must be an instance of BaseAudioContext".PASS
new ConstantSourceNode(context, 42) threw TypeError: "Type error".PASS
new ConstantSourceNode() threw TypeError: "Not enough arguments to "ConstantSourceNode.constructor".".PASS
new ConstantSourceNode(1) threw TypeError: "Value is not an object.".PASS
new ConstantSourceNode(context, 42) threw TypeError: "Value is not an object.".PASS
new ConstantSourceNode() threw TypeError: "ConstantSourceNode() needs one argument".PASS
new ConstantSourceNode(1) threw TypeError: "Not an object of type BaseAudioContext".PASS
new ConstantSourceNode(context, 42) threw TypeError: "Not an object of type ConstantSourceOptions".PASS