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

Side by Side Diff: LayoutTests/svg/as-background-image/animated-svg-animation-control.html

Issue 644093003: NOP refactor to make various layout tests use setTimeout 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>SVG-in-&lt;img&gt;: Animation resets when all references are removed.</ti tle> 2 <title>SVG-in-&lt;img&gt;: Animation resets when all references are removed.</ti tle>
3 <div style="width: 100px; height: 100px;"></div> 3 <div style="width: 100px; height: 100px;"></div>
4 <script> 4 <script>
5 if (window.testRunner) 5 if (window.testRunner)
6 testRunner.waitUntilDone(); 6 testRunner.waitUntilDone();
7 var div = document.querySelector('div'); 7 var div = document.querySelector('div');
8 var imgurl = "url('../as-image/resources/animated-rect-color.svg')"; 8 var imgurl = "url('../as-image/resources/animated-rect-color.svg')";
9 div.style.background = imgurl; 9 div.style.background = imgurl;
10 setTimeout(function() { 10 setTimeout(function() {
11 div.style.background = ""; 11 div.style.background = "";
12 // FIXME: we need a better way of waiting for chromium events to happen
12 setTimeout(function() { 13 setTimeout(function() {
13 div.style.background = imgurl; 14 div.style.background = imgurl;
14 setTimeout(function() { 15 setTimeout(function() {
15 if (window.testRunner) 16 if (window.testRunner)
16 testRunner.notifyDone(); 17 testRunner.notifyDone();
17 }, 10); 18 }, 10);
18 }, 0); 19 }, 1);
19 }, 100); 20 }, 100);
20 </script> 21 </script>
21 22
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698