Closed Bug 475853 Opened 15 years ago Closed 15 years ago

Needs for a waitForImageLoaded function to wait until an image has been loaded

Categories

(Testing Graveyard :: Mozmill, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: whimboo, Unassigned)

References

Details

For now there is no way to easily call a function which waits until an image has been completely loaded. For now I do that in following way:

// Image has to be loaded first
controller.waitForEval("subject.complete === true", 1000, 100, img.getNode());
controller.assertImageLoaded(img);

It would be nice to have a wait function to simplify the code, like:

controller.waitForImageLoaded(img);
To maintain syntactical cleanliness I have called the method controller.waitForImage (waitForEval,waitForElement) and it is now available in trunk and 1.0.x, Committed revision 327.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Blocks: 476171
Blocks: 475719
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.