blob: 6e5b07c51bc4c52860d053eccaea58e7c5636606 [file] [log] [blame]
Basic test of setting Oscillator node types.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS Oscillator correctly set to SINE type.
PASS Oscillator correctly set to SQUARE type.
PASS Oscillator correctly set to SAWTOOTH type.
PASS Oscillator correctly set to TRIANGLE type.
PASS Oscillator correctly set to SINE type using legacy integer value.
PASS Oscillator correctly set to SQUARE type using legacy integer value.
PASS Oscillator correctly set to SAWTOOTH type using legacy integer value.
PASS Oscillator correctly set to TRIANGLE type using legacy integer value.
PASS Oscillator correctly set to CUSTOM type using setPeriodicWave.
PASS Directly setting oscillator type to CUSTOM correctly throws exception.
PASS Setting oscillator to invalid type 5 correctly throws exception.
PASS Setting .type to illegal string value threw TypeError.
PASS Setting .type to illegal type of Float32Array threw TypeError.
PASS successfullyParsed is true
TEST COMPLETE