Chromium Code Reviews| Index: LayoutTests/svg/animations/animate-restart-never.html |
| diff --git a/LayoutTests/svg/animations/animate-restart-never.html b/LayoutTests/svg/animations/animate-restart-never.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..19942da64dfd69b75b05b5d1e1e36390ca319fbe |
| --- /dev/null |
| +++ b/LayoutTests/svg/animations/animate-restart-never.html |
| @@ -0,0 +1,25 @@ |
| +<!DOCTYPE html> |
| +<script> |
| +if (window.testRunner) |
| + testRunner.waitUntilDone(); |
| + |
| +function animationEnded() { |
| + var anim = document.getElementById('anim'); |
| + anim.beginElement(); |
| + testRunner.displayAsyncThen(function() { |
|
fs
2015/05/05 14:39:20
Always good to be able to run the test without the
|
| + testRunner.notifyDone(); |
|
fs
2015/05/05 14:39:20
This still feels like it will be flaky - beginElem
|
| + }); |
| +} |
| +</script> |
| +<svg> |
| + <rect id="rect" width="100px" height="100px" fill="red"> |
| + <animate id="anim" |
| + begin="0s" |
| + dur="0.2s" |
|
fs
2015/05/05 14:39:19
Now this test takes 200+ms...
|
| + attributeName="fill" |
| + from="red" to="green" |
| + fill="freeze" |
| + restart="never" |
| + onend="animationEnded()"/> |
| + </rect> |
| +</svg> |