Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

'use strict';
test(() => {
const context = new OfflineAudioContext(1, 1, 44100);
const defaultValue = -1;
const gainNode = new GainNode(context, { gain: defaultValue });
assert_equals(gainNode.gain.defaultValue, defaultValue, "AudioParam's defaultValue is not correct.");
}, "AudioParam's defaultValue");