Bug 572520: step 2.3: make the bug 445810 tests not assume that finishing the load of one image implies that all images have finished loading. r=dbaron

This commit is contained in:
Joe Drew 2010-07-28 14:51:37 -07:00
Родитель b6bb96fd67
Коммит 7b8cd77a78
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -72,7 +72,7 @@ currImageElem.src = new_image_url();
p.style.MozBorderImage = "url( " + currImageElem.src + ") 2 2 2 2 / 7px 2px";
is(divcs.width, "11px", "border image not loaded yet");
is(divcs.height, "11px", "border image not loaded yet");
currImageElem.onload = step2;
currImageElem.onload = function() { setTimeout(step2, 0); }
function step2() {
// We got here through onload
@ -97,7 +97,7 @@ function step2() {
p.style.MozBorderImage = "url( " + currImageElem.src + ") 2 2 2 2 / 7px 2px";
is(divcs.width, "5px", "border image not loaded yet");
is(divcs.height, "5px", "border image not loaded yet");
currImageElem.onload = step3;
currImageElem.onload = function() { setTimeout(step3, 0); }
}
function step3() {
@ -115,7 +115,7 @@ function step3() {
p.style.MozBorderImage = "url( " + currImageElem.src + ") 2 2 2 2";
is(divcs.width, "5px", "border image not loaded yet");
is(divcs.height, "5px", "border image not loaded yet");
currImageElem.onload = step4;
currImageElem.onload = function() { setTimeout(step4, 0); }
}
function step4() {