| OLD | NEW |
| 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 Loading... |
| 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 // FIXME: we need a better way of waiting for chromium events to happen |
| 63 setTimeout(cleanup, 1); |
| 63 } | 64 } |
| 64 | 65 |
| 65 function load() { | 66 function load() { |
| 66 if (window.testRunner && window.GCController && window.internals) { | 67 if (window.testRunner && window.GCController && window.internals) { |
| 67 testRunner.dumpAsText(); | 68 testRunner.dumpAsText(); |
| 68 testRunner.waitUntilDone(); | 69 testRunner.waitUntilDone(); |
| 69 } else { | 70 } else { |
| 70 log("This test only works when run with the testRunner, GCController, an
d internals available."); | 71 log("This test only works when run with the testRunner, GCController, an
d internals available."); |
| 71 return; | 72 return; |
| 72 } | 73 } |
| 73 | 74 |
| 74 setTimeout(startTest, 0); | 75 // FIXME: we need a better way of waiting for chromium events to happen |
| 76 setTimeout(startTest, 1); |
| 75 } | 77 } |
| 76 ]]> | 78 ]]> |
| 77 </script> | 79 </script> |
| 78 </svg> | 80 </svg> |
| OLD | NEW |