mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 851785. Stop expecting the image to be decoded in async_load_tests.js because it never does anything that would require a decode to happen. r=joe
This commit is contained in:
parent
c46f71aebe
commit
cf51645b9f
@ -51,13 +51,10 @@ function checkClone(other_listener, aRequest)
|
||||
}
|
||||
|
||||
// Ensure that all the callbacks were called on aRequest.
|
||||
function checkAllCallbacks(listener, aRequest)
|
||||
function checkSizeAndLoad(listener, aRequest)
|
||||
{
|
||||
do_check_neq(listener.state & SIZE_AVAILABLE, 0);
|
||||
do_check_neq(listener.state & FRAME_COMPLETE, 0);
|
||||
do_check_neq(listener.state & DECODE_COMPLETE, 0);
|
||||
do_check_neq(listener.state & LOAD_COMPLETE, 0);
|
||||
do_check_eq(listener.state, ALL_BITS);
|
||||
|
||||
do_test_finished();
|
||||
}
|
||||
@ -71,7 +68,7 @@ function secondLoadDone(oldlistener, aRequest)
|
||||
|
||||
// For as long as clone notification is synchronous, we can't test the
|
||||
// clone state reliably.
|
||||
var listener = new ImageListener(null, checkAllCallbacks);
|
||||
var listener = new ImageListener(null, checkSizeAndLoad);
|
||||
listener.synchronous = false;
|
||||
var outer = Cc["@mozilla.org/image/tools;1"].getService(Ci.imgITools)
|
||||
.createScriptedObserver(listener);
|
||||
|
@ -15,7 +15,6 @@ const FRAME_UPDATE = 0x02;
|
||||
const FRAME_COMPLETE = 0x04;
|
||||
const LOAD_COMPLETE = 0x08;
|
||||
const DECODE_COMPLETE = 0x10;
|
||||
const ALL_BITS = SIZE_AVAILABLE | FRAME_COMPLETE | DECODE_COMPLETE | LOAD_COMPLETE;
|
||||
|
||||
// An implementation of imgIScriptedNotificationObserver with the ability to
|
||||
// call specified functions on onStartRequest and onStopRequest.
|
||||
|
Loading…
Reference in New Issue
Block a user