| Index: third_party/WebKit/LayoutTests/webaudio/audioparam-exceptional-values.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/audioparam-exceptional-values.html b/third_party/WebKit/LayoutTests/webaudio/audioparam-exceptional-values.html
|
| deleted file mode 100644
|
| index cf50a45dd7e39fc29ef4b90b5ad8341168d3147b..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/webaudio/audioparam-exceptional-values.html
|
| +++ /dev/null
|
| @@ -1,81 +0,0 @@
|
| -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
| -<html>
|
| - <head>
|
| - <script src="resources/compatibility.js"></script>
|
| - <script src="../resources/js-test.js"></script>
|
| - </head>
|
| -
|
| - <body>
|
| - <script>
|
| - description("Test exceptional arguments for AudioParam timeline events");
|
| -
|
| - var context;
|
| - var gain;
|
| -
|
| - // For these values, AudioParam methods should throw an error because they are invalid; only
|
| - // finite values are allowed.
|
| - var targetValues = [Infinity, -Infinity, NaN];
|
| -
|
| - // For these time values, AudioParam methods should throw an error because they are
|
| - // invalid. Only finite non-negative values are allowed for any time or time-like parameter.
|
| - var timeValues = [-1, Infinity, -Infinity, NaN];
|
| -
|
| - // For these duration values, AudioParam methods should throw an error because they are
|
| - // invalid. Only finite values are allowed for any duration parameter.
|
| - var durationValues = [-1, Infinity, -Infinity, NaN, 0];
|
| -
|
| - // For these timeConstant values for setTargetAtTime an error must be thrown because they are
|
| - // invalid.
|
| - var timeConstantValues = [-1, Infinity, -Infinity, NaN];
|
| -
|
| - // Just an array for use by setValueCurveAtTime. The length and contents of the array are not
|
| - // important.
|
| - var curve = new Float32Array(10);
|
| -
|
| - function runTest() {
|
| - if (window.testRunner) {
|
| - testRunner.dumpAsText();
|
| - testRunner.waitUntilDone();
|
| - }
|
| - window.jsTestIsAsync = true;
|
| -
|
| - context = new AudioContext();
|
| - gain = context.createGain();
|
| -
|
| - // Test the value parameter
|
| - for (value of targetValues) {
|
| - shouldThrow("gain.gain.setValueAtTime(" + value + ", 1)");
|
| - shouldThrow("gain.gain.linearRampToValueAtTime(" + value + ", 1)");
|
| - shouldThrow("gain.gain.exponentialRampToValueAtTime(" + value + ", 1)");
|
| - shouldThrow("gain.gain.setTargetAtTime(" + value + ", 1, 1)");
|
| - }
|
| -
|
| - // Test the time parameter
|
| - for (startTime of timeValues) {
|
| - shouldThrow("gain.gain.setValueAtTime(1, " + startTime + ")");
|
| - shouldThrow("gain.gain.linearRampToValueAtTime(1, " + startTime + ")");
|
| - shouldThrow("gain.gain.exponentialRampToValueAtTime(1, " + startTime + ")");
|
| - shouldThrow("gain.gain.setTargetAtTime(1, " + startTime + ", 1)");
|
| - }
|
| -
|
| - // Test time constant
|
| - for (value of timeConstantValues) {
|
| - shouldThrow("gain.gain.setTargetAtTime(1, 1, " + value + ")");
|
| - }
|
| -
|
| - // Test startTime and duration for setValueCurveAtTime
|
| - for (startTime of timeValues) {
|
| - shouldThrow("gain.gain.setValueCurveAtTime(curve, " + startTime + ", 1)");
|
| - }
|
| - for (duration of durationValues) {
|
| - shouldThrow("gain.gain.setValueCurveAtTime(curve, 1, " + duration + ")");
|
| - }
|
| -
|
| - finishJSTest();
|
| - }
|
| -
|
| - runTest();
|
| - successfullyParsed = true;
|
| - </script>
|
| - </body>
|
| -</html>
|
|
|