summaryrefslogtreecommitdiffstats
path: root/image/test/browser/browser_offscreen_image_in_out_of_process_iframe.js
diff options
context:
space:
mode:
Diffstat (limited to 'image/test/browser/browser_offscreen_image_in_out_of_process_iframe.js')
-rw-r--r--image/test/browser/browser_offscreen_image_in_out_of_process_iframe.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/image/test/browser/browser_offscreen_image_in_out_of_process_iframe.js b/image/test/browser/browser_offscreen_image_in_out_of_process_iframe.js
index b431902eb7..346413b602 100644
--- a/image/test/browser/browser_offscreen_image_in_out_of_process_iframe.js
+++ b/image/test/browser/browser_offscreen_image_in_out_of_process_iframe.js
@@ -75,14 +75,14 @@ add_task(async function () {
// Returns the count of frameUpdate during |time| (in ms) period.
async function observeFrameUpdate(time) {
function ImageDecoderObserverStub() {
- this.sizeAvailable = function sizeAvailable(aRequest) {};
- this.frameComplete = function frameComplete(aRequest) {};
- this.decodeComplete = function decodeComplete(aRequest) {};
- this.loadComplete = function loadComplete(aRequest) {};
- this.frameUpdate = function frameUpdate(aRequest) {};
- this.discard = function discard(aRequest) {};
- this.isAnimated = function isAnimated(aRequest) {};
- this.hasTransparency = function hasTransparency(aRequest) {};
+ this.sizeAvailable = function sizeAvailable() {};
+ this.frameComplete = function frameComplete() {};
+ this.decodeComplete = function decodeComplete() {};
+ this.loadComplete = function loadComplete() {};
+ this.frameUpdate = function frameUpdate() {};
+ this.discard = function discard() {};
+ this.isAnimated = function isAnimated() {};
+ this.hasTransparency = function hasTransparency() {};
}
// Start from the callback of setTimeout.
@@ -140,7 +140,7 @@ add_task(async function () {
await new Promise(resolve => requestAnimationFrame(resolve));
frameCount = await SpecialPowers.spawn(iframe, [1000], observeFrameUpdate);
- ok(frameCount > 0, "There should be frameUpdate(s)");
+ Assert.greater(frameCount, 0, "There should be frameUpdate(s)");
await new Promise(resolve => requestAnimationFrame(resolve));