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

Side by Side Diff: LayoutTests/svg/animations/smil-leak-element-instances-noBaseValRef.svg

Issue 615033002: Refactor of various layout tests to use RAF (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix use-detatch.svg 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 <svg id="svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/ 1999/xlink" onload="load()"> 1 <svg id="svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/ 1999/xlink" onload="load()">
2 <defs> 2 <defs>
3 <rect id="rect" width="100" height="100" /> 3 <rect id="rect" width="100" height="100" />
4 </defs> 4 </defs>
5 <g id="g"/> 5 <g id="g"/>
6 <text x="50" y="50" id="log"/> 6 <text x="50" y="50" id="log"/>
7 <script xlink:href="../../resources/js-test.js"></script> 7 <script xlink:href="../../resources/js-test.js"></script>
8 <script id="script"> 8 <script id="script">
9 <![CDATA[ 9 <![CDATA[
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 testRunner.notifyDone(); 53 testRunner.notifyDone();
54 }); 54 });
55 }); 55 });
56 } 56 }
57 57
58 function startTest() { 58 function startTest() {
59 for (var i = 0; i < 100; i++) 59 for (var i = 0; i < 100; i++)
60 g.appendChild(createAnimatedRectInstance()); 60 g.appendChild(createAnimatedRectInstance());
61 61
62 setTimeout(cleanup, 0); 62 requestAnimationFrame(cleanup);
63 } 63 }
64 64
65 function load() { 65 function load() {
66 if (window.testRunner && window.GCController && window.internals) { 66 if (window.testRunner && window.GCController && window.internals) {
67 testRunner.dumpAsText(); 67 testRunner.dumpAsText();
68 testRunner.waitUntilDone(); 68 testRunner.waitUntilDone();
69 } else { 69 } else {
70 log("This test only works when run with the testRunner, GCController, an d internals available."); 70 log("This test only works when run with the testRunner, GCController, an d internals available.");
71 return; 71 return;
72 } 72 }
73 73
74 setTimeout(startTest, 0); 74 requestAnimationFrame(startTest);
75 } 75 }
76 ]]> 76 ]]>
77 </script> 77 </script>
78 </svg> 78 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698