<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
-<link rel="stylesheet" href="../fast/js/resources/js-test-style.css"/>
<script src="resources/audio-testing.js"></script>
-<script src="../fast/js/resources/js-test-pre.js"></script>
+<script src="../resources/js-test.js"></script>
<script src="resources/biquad-testing.js"></script>
</head>
shouldNotThrow("source.buffer = buffer");
shouldNotThrow("source.start()");
shouldNotThrow("source.stop()");
- shouldThrow("source.stop()");
// Start/stop for OscillatorNodes
shouldNotThrow("osc1 = context.createOscillator()");
shouldNotThrow("osc1.start()");
shouldNotThrow("osc1.stop()");
- shouldThrow("osc1.stop()");
+ // exponentialRampToValue should throw on non-positive target values.
+ node = context.createGain();
+ node.connect(context.destination);
+ shouldThrow("node.gain.exponentialRampToValueAtTime(-1, 0.1)");
+ shouldThrow("node.gain.exponentialRampToValueAtTime(0, 0.1)");
}
runTest();