Bug 786331 - WebGL tests that use a video can loop indefinitely. r=bjacob

This commit is contained in:
Paul Adenot 2012-11-13 16:47:59 -08:00
parent 5ef0efd4a6
commit 0122321eae
2 changed files with 2 additions and 0 deletions

View File

@ -107,6 +107,7 @@ function runTest(videoElement)
runOneIteration(videoElement, true, false, green, red);
glErrorShouldBe(gl, gl.NO_ERROR, "should be no errors");
videoElement.removeEventListener("playing", runTest);
finishTest();
}
</script>

View File

@ -139,6 +139,7 @@ function runTest(videoElement)
runOneIteration(videoElement, true, false, red, green, false, false, false);
glErrorShouldBe(gl, gl.NO_ERROR, "should be no errors");
videoElement.removeEventListener("playing", runTest);
finishTest();
}
</script>