Bug 1308436 - Remove test_audioParamSetCurveAtTimeZeroDuration.html. r=karlt
authorPaul Adenot <paul@paul.cx>
Tue, 04 Sep 2018 14:49:45 +0200
changeset 482922 8834636b7209f5ccaa95c7f2f3431796a4bf4073
parent 482921 b5a98b2f4fdc3d2ebf0e89f90e6b3a36452ae845
child 482923 eaf9bdaa1bfb34c9e8034860770725447a08e212
push id232
push userfmarier@mozilla.com
push dateWed, 05 Sep 2018 20:45:54 +0000
reviewerskarlt
bugs1308436
milestone63.0a1
Bug 1308436 - Remove test_audioParamSetCurveAtTimeZeroDuration.html. r=karlt
dom/media/webaudio/test/mochitest.ini
dom/media/webaudio/test/test_audioParamSetCurveAtTimeZeroDuration.html
--- a/dom/media/webaudio/test/mochitest.ini
+++ b/dom/media/webaudio/test/mochitest.ini
@@ -69,17 +69,16 @@ tags=capturestream
 [test_AudioNodeDevtoolsAPI.html]
 [test_audioParamChaining.html]
 [test_AudioParamDevtoolsAPI.html]
 [test_audioParamExponentialRamp.html]
 [test_audioParamGain.html]
 [test_audioParamLinearRamp.html]
 [test_audioParamSetCurveAtTime.html]
 [test_audioParamSetCurveAtTimeTwice.html]
-[test_audioParamSetCurveAtTimeZeroDuration.html]
 [test_audioParamSetTargetAtTime.html]
 [test_audioParamSetTargetAtTimeZeroTimeConstant.html]
 [test_audioParamSetValueAtTime.html]
 [test_audioParamTimelineDestinationOffset.html]
 [test_badConnect.html]
 [test_biquadFilterNode.html]
 [test_biquadFilterNodePassThrough.html]
 [test_biquadFilterNodeWithGain.html]
deleted file mode 100644
--- a/dom/media/webaudio/test/test_audioParamSetCurveAtTimeZeroDuration.html
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-  <title>Test AudioParam.linearRampToValue</title>
-  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
-  <script type="text/javascript" src="webaudio.js"></script>
-  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
-</head>
-<body>
-<pre id="test">
-<script class="testbody" type="text/javascript">
-
-var T0 = 0;
-
-var gTest = {
-  length: 2048,
-  numberOfChannels: 1,
-  createGraph: function(context) {
-    var sourceBuffer = context.createBuffer(1, 2048, context.sampleRate);
-    for (var i = 0; i < 2048; ++i) {
-      sourceBuffer.getChannelData(0)[i] = 1;
-    }
-
-    var source = context.createBufferSource();
-    source.buffer = sourceBuffer;
-
-    var gain = context.createGain();
-    gain.gain.setValueCurveAtTime(this.curve, this.T0, 0);
-
-    source.connect(gain);
-
-    source.start(0);
-    return gain;
-  },
-  createExpectedBuffers: function(context) {
-    this.T0 = 1024 / context.sampleRate;
-    this.curve = new Float32Array(100);
-    for (var i = 0; i < 100; ++i) {
-      this.curve[i] = Math.sin(440 * 2 * Math.PI * i / context.sampleRate);
-    }
-    var expectedBuffer = context.createBuffer(1, 2048, context.sampleRate);
-    for (var i = 0; i < 1024; ++i) {
-      expectedBuffer.getChannelData(0)[i] = 1;
-    }
-    for (var i = 1024; i < 2048; ++i) {
-      expectedBuffer.getChannelData(0)[i] = this.curve[99];
-    }
-    return expectedBuffer;
-  },
-};
-
-runTest();
-
-</script>
-</pre>
-</body>
-</html>