mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 852413 - Make test_image_layers.html wait for its image to load. r=mattwoodrow
--HG-- extra : rebase_source : 8be901e5932e8779bfcc4077de0108fd36acc6ec
This commit is contained in:
parent
878e85a5c8
commit
b7dd030514
@ -21,13 +21,15 @@ var image = document.getElementById("image");
|
||||
var lastPaintCount;
|
||||
|
||||
function changeImage() {
|
||||
lastPaintCount = window.mozPaintCount;
|
||||
|
||||
var utils = SpecialPowers.getDOMWindowUtils(window);
|
||||
utils.checkAndClearPaintedState(image);
|
||||
|
||||
image.src = "./image_rrgg-256x256.png";
|
||||
checkDone();
|
||||
image.onload = function() {
|
||||
lastPaintCount = window.mozPaintCount;
|
||||
document.body.style.background = "black";
|
||||
checkDone();
|
||||
}
|
||||
}
|
||||
|
||||
function checkDone() {
|
||||
|
Loading…
Reference in New Issue
Block a user