Chromium Code Reviews| Index: LayoutTests/svg/as-background-image/animated-svg-animation-control.html |
| diff --git a/LayoutTests/svg/as-background-image/animated-svg-animation-control.html b/LayoutTests/svg/as-background-image/animated-svg-animation-control.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b0128b615ec743f055665cbab7a64fce3f2c2055 |
| --- /dev/null |
| +++ b/LayoutTests/svg/as-background-image/animated-svg-animation-control.html |
| @@ -0,0 +1,21 @@ |
| +<!DOCTYPE html> |
| +<title>SVG-in-<img>: Animation resets when all references are removed.</title> |
| +<div style="width: 100px; height: 100px;"></div> |
| +<script> |
| +if (window.testRunner) |
| + testRunner.waitUntilDone(); |
| +var div = document.querySelector('div'); |
| +var imgurl = "url('../as-image/resources/animated-rect-color.svg')"; |
| +div.style.background = imgurl; |
| +setTimeout(function() { |
| + div.style.background = ""; |
| + setTimeout(function() { |
| + div.style.background = imgurl; |
| + setTimeout(function() { |
| + if (window.testRunner) |
| + testRunner.notifyDone(); |
| + }, 10); |
| + }, 0); |
| +}, 150); |
|
pdr.
2014/03/20 18:02:35
Both 150 and 10 are suspicious to me.
For 150: ca
|
| +</script> |
| + |