| 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>
|
|
|
|
|