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
| Chrome | Firefox | Safari | Ladybird | Servo | Blitz | |
|---|---|---|---|---|---|---|
| Total | 24/24 | 24/24 | 24/24 | 24/24 | 24/24 | NOT RUN |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| # AUDIT TASK RUNNER STARTED. | PASS | PASS | PASS | PASS | PASS | — |
| Executing "initialize" | PASS | PASS | PASS | PASS | PASS | — |
| Executing "invalid constructor" | PASS | PASS | PASS | PASS | PASS | — |
| Executing "default constructor" | PASS | PASS | PASS | PASS | PASS | — |
| Audit report | PASS | PASS | PASS | PASS | PASS | — |
| > [initialize] | PASS | PASS | PASS | PASS | PASS | — |
| context = new OfflineAudioContext(...) did not throw an exception. | PASS | PASS | PASS | PASS | PASS | — |
| < [initialize] All assertions passed. (total 1 assertions) | PASS | PASS | PASS | PASS | PASS | — |
| > [invalid constructor] | PASS | PASS | PASS | PASS | PASS | — |
| 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) | PASS | PASS | PASS | PASS | PASS | — |
| > [default constructor] | PASS | PASS | PASS | PASS | PASS | — |
| node0 = new ConstantSourceNode(context) did not throw an exception. | PASS | PASS | PASS | PASS | PASS | — |
| node0 instanceof ConstantSourceNode is equal to true. | PASS | PASS | PASS | PASS | PASS | — |
| node0.numberOfInputs is equal to 0. | PASS | PASS | PASS | PASS | PASS | — |
| node0.numberOfOutputs is equal to 1. | PASS | PASS | PASS | PASS | PASS | — |
| node0.channelCount is equal to 2. | PASS | PASS | PASS | PASS | PASS | — |
| node0.channelCountMode is equal to max. | PASS | PASS | PASS | PASS | PASS | — |
| node0.channelInterpretation is equal to speakers. | PASS | PASS | PASS | PASS | PASS | — |
| node0.offset.value is equal to 1. | PASS | PASS | PASS | PASS | PASS | — |
| < [default constructor] All assertions passed. (total 8 assertions) | PASS | PASS | PASS | PASS | PASS | — |
| # AUDIT TASK RUNNER FINISHED: 3 tasks ran successfully. | PASS | PASS | PASS | PASS | PASS | — |
| 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 | — | — |