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

Unified Diff: LayoutTests/svg/as-image/animated-use-as-image-crash.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/as-image/animated-use-as-image-crash.html
diff --git a/LayoutTests/svg/as-image/animated-use-as-image-crash.html b/LayoutTests/svg/as-image/animated-use-as-image-crash.html
index 1966c46b1eeddf74491637585b0d1f8a28a99d50..77d298aab3fe7e44fa35419aae3b5e2b555a8eeb 100644
--- a/LayoutTests/svg/as-image/animated-use-as-image-crash.html
+++ b/LayoutTests/svg/as-image/animated-use-as-image-crash.html
@@ -1,14 +1,19 @@
<!DOCTYPE html>
<html>
<p>Test passes if loaded into Chromium with Asan enabled and does not crash.</p>
- <img src='resources/animated-href-on-use.svg'></img>
+ <img id="image" src='resources/animated-href-on-use.svg'></img>
<script type="text/javascript">
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
}
- setTimeout(function() { if (window.testRunner) testRunner.notifyDone(); }, 500);
+ window.onload = function() {
+ window.internals.advanceImageAnimation(image);
+ window.requestAnimationFrame(function() {
+ testRunner.notifyDone()
+ });
+ }
</script>
</html>
« no previous file with comments | « LayoutTests/svg/as-image/animated-svg-as-image-same-image.html ('k') | LayoutTests/svg/repaint/image-animation-with-zoom.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698