зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1354499. Don't record further successful results after finishing in test_discardAnimatedImage.html.
This commit is contained in:
Родитель
655729cc71
Коммит
ec4e60afa1
|
@ -111,6 +111,7 @@ function checkIfFinished() {
|
|||
(gNumSnapShotChanges[0] >= kNumFrameUpdatesToExpect) &&
|
||||
(gNumSnapShotChanges[1] >= kNumFrameUpdatesToExpect)) {
|
||||
ok(true, "got expected frame updates");
|
||||
gCountingFrameUpdates = false;
|
||||
gFinished = true;
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
@ -133,7 +134,7 @@ function addCallbacks(anImage, arrayIndex) {
|
|||
}
|
||||
};
|
||||
observer.frameUpdate = function () {
|
||||
if (!gCountingFrameUpdates) {
|
||||
if (!gCountingFrameUpdates || gFinished) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче