summaryrefslogtreecommitdiffstats
path: root/dom/media/webaudio/test
diff options
context:
space:
mode:
Diffstat (limited to 'dom/media/webaudio/test')
-rw-r--r--dom/media/webaudio/test/audioBufferSourceNodeDetached_worker.js2
-rw-r--r--dom/media/webaudio/test/test_OfflineAudioContext.html4
-rw-r--r--dom/media/webaudio/test/test_WebAudioMemoryReporting.html2
-rw-r--r--dom/media/webaudio/test/test_audioBufferSourceNodeOffset.html2
-rw-r--r--dom/media/webaudio/test/test_audioContextSuspendResumeClose.html8
-rw-r--r--dom/media/webaudio/test/test_bug1056032.html2
-rw-r--r--dom/media/webaudio/test/test_bug867174.html2
-rw-r--r--dom/media/webaudio/test/test_convolverNodeNormalization.html2
-rw-r--r--dom/media/webaudio/test/test_decodeAudioDataOnDetachedBuffer.html2
-rw-r--r--dom/media/webaudio/test/test_decodeAudioDataPromise.html2
-rw-r--r--dom/media/webaudio/test/test_decodeAudioError.html4
-rw-r--r--dom/media/webaudio/test/test_dynamicsCompressorNode.html2
-rw-r--r--dom/media/webaudio/test/test_event_listener_leaks.html2
-rw-r--r--dom/media/webaudio/test/test_mediaStreamAudioSourceNodeNoGC.html2
-rw-r--r--dom/media/webaudio/test/test_pannerNodeTail.html2
-rw-r--r--dom/media/webaudio/test/test_scriptProcessorNodeNotConnected.html2
-rw-r--r--dom/media/webaudio/test/webaudio.js2
17 files changed, 22 insertions, 22 deletions
diff --git a/dom/media/webaudio/test/audioBufferSourceNodeDetached_worker.js b/dom/media/webaudio/test/audioBufferSourceNodeDetached_worker.js
index 2a5a4bff89..439dbec0c4 100644
--- a/dom/media/webaudio/test/audioBufferSourceNodeDetached_worker.js
+++ b/dom/media/webaudio/test/audioBufferSourceNodeDetached_worker.js
@@ -1,3 +1,3 @@
-onmessage = function (event) {
+onmessage = function () {
postMessage("Pong");
};
diff --git a/dom/media/webaudio/test/test_OfflineAudioContext.html b/dom/media/webaudio/test/test_OfflineAudioContext.html
index d9403566ae..6d8a907542 100644
--- a/dom/media/webaudio/test/test_OfflineAudioContext.html
+++ b/dom/media/webaudio/test/test_OfflineAudioContext.html
@@ -92,7 +92,7 @@ addLoadEvent(function() {
ctx.startRendering().then(function() {
ok(false, "Promise should not resolve when startRendering is called a second time on an OfflineAudioContext")
finish();
- }).catch(function(err) {
+ }).catch(function() {
ok(true, "Promise should reject when startRendering is called a second time on an OfflineAudioContext")
finish();
});
@@ -106,7 +106,7 @@ addLoadEvent(function() {
ctx.startRendering().then(function(b) {
is(renderedBuffer, null, "The promise callback should be called first.");
setOrCompareRenderedBuffer(b);
- }).catch(function (error) {
+ }).catch(function () {
ok(false, "The promise from OfflineAudioContext.startRendering should never be rejected");
});
});
diff --git a/dom/media/webaudio/test/test_WebAudioMemoryReporting.html b/dom/media/webaudio/test/test_WebAudioMemoryReporting.html
index 693e558304..027e3bcc56 100644
--- a/dom/media/webaudio/test/test_WebAudioMemoryReporting.html
+++ b/dom/media/webaudio/test/test_WebAudioMemoryReporting.html
@@ -29,7 +29,7 @@ for (var i = 0; i < nodeTypes.length; ++i) {
}
}
-var handleReport = function(aProcess, aPath, aKind, aUnits, aAmount, aDesc) {
+var handleReport = function(aProcess, aPath, aKind, aUnits, aAmount) {
if (aPath in usages) {
usages[aPath] += aAmount;
}
diff --git a/dom/media/webaudio/test/test_audioBufferSourceNodeOffset.html b/dom/media/webaudio/test/test_audioBufferSourceNodeOffset.html
index 0411b74ce5..e8549af37d 100644
--- a/dom/media/webaudio/test/test_audioBufferSourceNodeOffset.html
+++ b/dom/media/webaudio/test/test_audioBufferSourceNodeOffset.html
@@ -34,7 +34,7 @@ addLoadEvent(function() {
var source = context.createBufferSource();
- source.onended = function(e) {
+ source.onended = function() {
// The timing at which the audioprocess and ended listeners are called can
// change, hence the fuzzy equal here.
var errorRatio = samplesFromSource / (0.5 * context.sampleRate);
diff --git a/dom/media/webaudio/test/test_audioContextSuspendResumeClose.html b/dom/media/webaudio/test/test_audioContextSuspendResumeClose.html
index 36cf8f720c..62bdd3fd54 100644
--- a/dom/media/webaudio/test/test_audioContextSuspendResumeClose.html
+++ b/dom/media/webaudio/test/test_audioContextSuspendResumeClose.html
@@ -72,10 +72,10 @@ function tryLegalOpeerationsOnClosedContext(ctx) {
});
});
loadFile("ting-44.1k-1ch.ogg", function(buf) {
- ctx.decodeAudioData(buf).then(function(decodedBuf) {
+ ctx.decodeAudioData(buf).then(function() {
ok(true, "decodeAudioData on a closed context should work, it did.")
finish();
- }).catch(function(e){
+ }).catch(function(){
ok(false, "decodeAudioData on a closed context should work, it did not");
finish();
});
@@ -103,7 +103,7 @@ function testMultiContextOutput() {
silentBuffersInARow = 0;
- sp2.onaudioprocess = function(e) {
+ sp2.onaudioprocess = function() {
ac1.suspend().then(function() {
is(ac1.state, "suspended", "ac1 is suspended");
sp2.onaudioprocess = checkSilence;
@@ -350,7 +350,7 @@ function testOfflineAudioContext() {
o.onstatechange = beforeStartRendering;
- o.startRendering().then(function(buffer) {
+ o.startRendering().then(function() {
finishedRendering = true;
});
}
diff --git a/dom/media/webaudio/test/test_bug1056032.html b/dom/media/webaudio/test/test_bug1056032.html
index ba38267e19..77427ee5f0 100644
--- a/dom/media/webaudio/test/test_bug1056032.html
+++ b/dom/media/webaudio/test/test_bug1056032.html
@@ -19,7 +19,7 @@ addLoadEvent(function() {
xhr.responseType = "arraybuffer";
xhr.onload = function() {
var context = new AudioContext();
- context.decodeAudioData(xhr.response, function(b) {
+ context.decodeAudioData(xhr.response, function() {
ok(true, "We can decode an mp3 using decodeAudioData");
SimpleTest.finish();
}, function() {
diff --git a/dom/media/webaudio/test/test_bug867174.html b/dom/media/webaudio/test/test_bug867174.html
index e949bcec41..dd66c77303 100644
--- a/dom/media/webaudio/test/test_bug867174.html
+++ b/dom/media/webaudio/test/test_bug867174.html
@@ -21,7 +21,7 @@ addLoadEvent(function() {
sp.connect(ctx.destination);
source.start(0);
- sp.onaudioprocess = function(e) {
+ sp.onaudioprocess = function() {
// Now set the buffer
source.buffer = buffer;
diff --git a/dom/media/webaudio/test/test_convolverNodeNormalization.html b/dom/media/webaudio/test/test_convolverNodeNormalization.html
index 24cb7d1670..b55dbba0c2 100644
--- a/dom/media/webaudio/test/test_convolverNodeNormalization.html
+++ b/dom/media/webaudio/test/test_convolverNodeNormalization.html
@@ -13,7 +13,7 @@ const LENGTH = 12800;
// tolerate 16-bit math.
const EPSILON = 1.0 / Math.pow(2, 15);
-function test_normalization_via_response_concat(delayIndex)
+function test_normalization_via_response_concat()
{
var context = new OfflineAudioContext(1, LENGTH, sampleRate);
diff --git a/dom/media/webaudio/test/test_decodeAudioDataOnDetachedBuffer.html b/dom/media/webaudio/test/test_decodeAudioDataOnDetachedBuffer.html
index e7c6d2db0c..cd86c0a1d3 100644
--- a/dom/media/webaudio/test/test_decodeAudioDataOnDetachedBuffer.html
+++ b/dom/media/webaudio/test/test_decodeAudioDataOnDetachedBuffer.html
@@ -19,7 +19,7 @@ var testDecodeAudioDataOnDetachedBuffer = function(buffer) {
is(buffer.byteLength, 0, "Buffer should be detached");
// call decodeAudioData on detached buffer
- context.decodeAudioData(buffer).then(function(b) {
+ context.decodeAudioData(buffer).then(function() {
ok(false, "We should not be able to decode the detached buffer but we do");
SimpleTest.finish();
}, function(r) {
diff --git a/dom/media/webaudio/test/test_decodeAudioDataPromise.html b/dom/media/webaudio/test/test_decodeAudioDataPromise.html
index 139a686db1..a686c275cd 100644
--- a/dom/media/webaudio/test/test_decodeAudioDataPromise.html
+++ b/dom/media/webaudio/test/test_decodeAudioDataPromise.html
@@ -27,7 +27,7 @@ var ac = new AudioContext();
expectNoException(function() {
var p = ac.decodeAudioData(" ");
ok(p instanceof Promise, "AudioContext.decodeAudioData should return a Promise");
- p.then(function(data) {
+ p.then(function() {
ok(false, "Promise should not resolve with an invalid source buffer.");
finish();
}).catch(function(e) {
diff --git a/dom/media/webaudio/test/test_decodeAudioError.html b/dom/media/webaudio/test/test_decodeAudioError.html
index f18b971ac4..b6dd6ff74b 100644
--- a/dom/media/webaudio/test/test_decodeAudioError.html
+++ b/dom/media/webaudio/test/test_decodeAudioError.html
@@ -34,11 +34,11 @@ function errorExpectedWithFile(file, errorMsg) {
xhr.open("GET", file, true);
xhr.responseType = "arraybuffer";
xhr.onload = function() {
- ctx.decodeAudioData(xhr.response, buffer => {
+ ctx.decodeAudioData(xhr.response, () => {
ok(false, "You should not be able to decode that");
finish();
}, e => test(e))
- .then(buffer => {
+ .then(() => {
ok(false, "You should not be able to decode that");
finish();
})
diff --git a/dom/media/webaudio/test/test_dynamicsCompressorNode.html b/dom/media/webaudio/test/test_dynamicsCompressorNode.html
index 05b6887a53..8f197aa32f 100644
--- a/dom/media/webaudio/test/test_dynamicsCompressorNode.html
+++ b/dom/media/webaudio/test/test_dynamicsCompressorNode.html
@@ -48,7 +48,7 @@ addLoadEvent(function() {
osc.start();
var iteration = 0;
- sp.onaudioprocess = function(e) {
+ sp.onaudioprocess = function() {
if (iteration > 10) {
ok(compressor.reduction < 0,
"Feeding a full-scale sine to a compressor should result in an db" +
diff --git a/dom/media/webaudio/test/test_event_listener_leaks.html b/dom/media/webaudio/test/test_event_listener_leaks.html
index a3bcc9259e..f76e1d3e55 100644
--- a/dom/media/webaudio/test/test_event_listener_leaks.html
+++ b/dom/media/webaudio/test/test_event_listener_leaks.html
@@ -18,7 +18,7 @@
// exercise the leak condition.
async function useAudioContext(contentWindow) {
let ctx = new contentWindow.AudioContext();
- ctx.onstatechange = e => {
+ ctx.onstatechange = () => {
contentWindow.stateChangeCount += 1;
};
diff --git a/dom/media/webaudio/test/test_mediaStreamAudioSourceNodeNoGC.html b/dom/media/webaudio/test/test_mediaStreamAudioSourceNodeNoGC.html
index 7920af9f7b..84d41df50e 100644
--- a/dom/media/webaudio/test/test_mediaStreamAudioSourceNodeNoGC.html
+++ b/dom/media/webaudio/test/test_mediaStreamAudioSourceNodeNoGC.html
@@ -50,7 +50,7 @@ function waitForAudio(analysisFunction, cancelPromise) {
});
}
-async function test(sourceNode) {
+async function test() {
try {
await analyser.connect(context.destination);
diff --git a/dom/media/webaudio/test/test_pannerNodeTail.html b/dom/media/webaudio/test/test_pannerNodeTail.html
index 7035780bf2..bb60fe05da 100644
--- a/dom/media/webaudio/test/test_pannerNodeTail.html
+++ b/dom/media/webaudio/test/test_pannerNodeTail.html
@@ -153,7 +153,7 @@ function startTest() {
}
source.buffer = buffer;
source.start(0);
- source.onended = function(e) {
+ source.onended = function() {
gotEnded = true;
};
diff --git a/dom/media/webaudio/test/test_scriptProcessorNodeNotConnected.html b/dom/media/webaudio/test/test_scriptProcessorNodeNotConnected.html
index fb45895380..0de8818d82 100644
--- a/dom/media/webaudio/test/test_scriptProcessorNodeNotConnected.html
+++ b/dom/media/webaudio/test/test_scriptProcessorNodeNotConnected.html
@@ -15,7 +15,7 @@ addLoadEvent(function() {
var context = new AudioContext();
var sp = context.createScriptProcessor(2048, 2, 2);
- sp.onaudioprocess = function(e) {
+ sp.onaudioprocess = function() {
ok(false, "Should not call onaudioprocess if the node is not connected.");
sp.onaudioprocess = null;
SimpleTest.finish();
diff --git a/dom/media/webaudio/test/webaudio.js b/dom/media/webaudio/test/webaudio.js
index 049e0e5af3..100c71f320 100644
--- a/dom/media/webaudio/test/webaudio.js
+++ b/dom/media/webaudio/test/webaudio.js
@@ -42,7 +42,7 @@ function expectRejectedPromise(that, func, exceptionName) {
ok(promise instanceof Promise, "Expect a Promise");
promise
- .then(function (res) {
+ .then(function () {
ok(false, "Promise resolved when it should have been rejected.");
})
.catch(function (err) {