Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Unified Diff: LayoutTests/svg/repaint/image-animation-with-zoom.html

Issue 1304093006: Add a new API for testing animated images (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase harder Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/svg/repaint/image-animation-with-zoom.html
diff --git a/LayoutTests/svg/repaint/image-animation-with-zoom.html b/LayoutTests/svg/repaint/image-animation-with-zoom.html
index a813d531a4f91dcdb4c29f83c3ab285ad136874f..ac333685ad31c45116a7a817d444095d1293e84f 100644
--- a/LayoutTests/svg/repaint/image-animation-with-zoom.html
+++ b/LayoutTests/svg/repaint/image-animation-with-zoom.html
@@ -15,10 +15,10 @@ window.testIsAsync = true;
window.onload = runRepaintTest;
function repaintTest() {
- setTimeout(function() {
- if (window.testRunner)
- finishRepaintTest();
- }, 220);
+ window.internals.advanceImageAnimation(targetImage);
+ window.requestAnimationFrame(function() {
+ finishRepaintTest();
+ });
};
</script>
-<img src="resources/animate-center.svg" width="10px" height="10px">
+<img id="targetImage" src="resources/animate-center.svg" width="10px" height="10px">

Powered by Google App Engine
This is Rietveld 408576698