summaryrefslogtreecommitdiffstats
path: root/image/test/unit
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /image/test/unit
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-adbda400be353e676059e335c3c0aaf99e719475.tar.xz
firefox-adbda400be353e676059e335c3c0aaf99e719475.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'image/test/unit')
-rw-r--r--image/test/unit/async_load_tests.js10
-rw-r--r--image/test/unit/image_load_helpers.js6
2 files changed, 8 insertions, 8 deletions
diff --git a/image/test/unit/async_load_tests.js b/image/test/unit/async_load_tests.js
index f19e146314..1fdbe590e3 100644
--- a/image/test/unit/async_load_tests.js
+++ b/image/test/unit/async_load_tests.js
@@ -50,7 +50,7 @@ function checkClone(other_listener, aRequest) {
// For as long as clone notification is synchronous, we can't test the clone state reliably.
var listener = new ImageListener(
null,
- function (foo, bar) {
+ function () {
do_test_finished();
} /* getCloneStopCallback(other_listener)*/
);
@@ -63,7 +63,7 @@ function checkClone(other_listener, aRequest) {
}
// Ensure that all the callbacks were called on aRequest.
-function checkSizeAndLoad(listener, aRequest) {
+function checkSizeAndLoad(listener) {
Assert.notEqual(listener.state & SIZE_AVAILABLE, 0);
Assert.notEqual(listener.state & LOAD_COMPLETE, 0);
@@ -127,7 +127,7 @@ function checkSecondLoad() {
listener.synchronous = false;
}
-function firstLoadDone(oldlistener, aRequest) {
+function firstLoadDone() {
checkSecondLoad(uri);
do_test_finished();
@@ -136,7 +136,7 @@ function firstLoadDone(oldlistener, aRequest) {
// Return a closure that allows us to check the stream listener's status when the
// image finishes loading.
function getChannelLoadImageStopCallback(streamlistener, next) {
- return function channelLoadStop(imglistener, aRequest) {
+ return function channelLoadStop() {
next();
do_test_finished();
@@ -216,7 +216,7 @@ function startImageCallback(otherCb) {
return function (listener, request) {
// Make sure we can load the same image immediately out of the cache.
do_test_pending();
- var listener2 = new ImageListener(null, function (foo, bar) {
+ var listener2 = new ImageListener(null, function () {
do_test_finished();
});
var outer = Cc["@mozilla.org/image/tools;1"]
diff --git a/image/test/unit/image_load_helpers.js b/image/test/unit/image_load_helpers.js
index 6d1e605bf5..3a97db00ca 100644
--- a/image/test/unit/image_load_helpers.js
+++ b/image/test/unit/image_load_helpers.js
@@ -31,12 +31,12 @@ function ImageListener(start_callback, stop_callback) {
this.start_callback(this, aRequest);
}
};
- this.frameComplete = function onFrameComplete(aRequest) {
+ this.frameComplete = function onFrameComplete() {
Assert.ok(!this.synchronous);
this.state |= FRAME_COMPLETE;
};
- this.decodeComplete = function onDecodeComplete(aRequest) {
+ this.decodeComplete = function onDecodeComplete() {
Assert.ok(!this.synchronous);
this.state |= DECODE_COMPLETE;
@@ -50,7 +50,7 @@ function ImageListener(start_callback, stop_callback) {
this.stop_callback(this, aRequest);
}
};
- this.frameUpdate = function onFrameUpdate(aRequest) {};
+ this.frameUpdate = function onFrameUpdate() {};
this.isAnimated = function onIsAnimated() {};
// Initialize the synchronous flag to true to start. This must be set to