From ec4e60afa15a79258fa49d9dbcbea741096a5aa3 Mon Sep 17 00:00:00 2001 From: Timothy Nikkel Date: Fri, 7 Apr 2017 18:26:20 -0500 Subject: [PATCH] Bug 1354499. Don't record further successful results after finishing in test_discardAnimatedImage.html. --- image/test/mochitest/test_discardAnimatedImage.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/image/test/mochitest/test_discardAnimatedImage.html b/image/test/mochitest/test_discardAnimatedImage.html index c8bc3fd7e882..b5b38f8c256b 100644 --- a/image/test/mochitest/test_discardAnimatedImage.html +++ b/image/test/mochitest/test_discardAnimatedImage.html @@ -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; }