Bug 1354499. Don't record further successful results after finishing in test_discardAnimatedImage.html.

This commit is contained in:
Timothy Nikkel 2017-04-07 18:26:20 -05:00
Родитель 655729cc71
Коммит ec4e60afa1
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -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;
}