OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <div id="target">This test passes if it does not crash.</div> | 2 <div id="target">This test passes if it does not crash.</div> |
3 <script> | 3 <script> |
4 target.animate([ | 4 target.animate([ |
5 {fontSize: 'large', fontWeight: 'normal'}, | 5 {fontSize: 'large', fontWeight: 'normal'}, |
6 {fontSize: 'small', fontWeight: 'bold'}, | 6 {fontSize: 'small', fontWeight: 'bold'}, |
7 ], 1); | 7 ], 1); |
8 if (window.testRunner) { | 8 if (window.testRunner) { |
9 testRunner.dumpAsText(); | 9 testRunner.dumpAsText(); |
10 testRunner.waitUntilDone(); | 10 testRunner.waitUntilDone(); |
11 } | 11 } |
12 requestAnimationFrame(function() { | 12 requestAnimationFrame(function() { |
13 testRunner.notifyDone(); | 13 if (window.testRunner) { |
| 14 testRunner.notifyDone(); |
| 15 } |
14 }); | 16 }); |
15 </script> | 17 </script> |
OLD | NEW |