Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
|
Justin Novosad
2014/09/23 15:09:52
I suggest naming this test differently because the
| |
| 2 <canvas></canvas> | |
| 3 <script> | |
| 4 | |
| 5 if (window.testRunner) | |
| 6 testRunner.waitUntilDone(); | |
| 7 | |
| 8 var canvas = document.querySelector("canvas"); | |
| 9 var context = canvas.getContext("2d"); | |
| 10 | |
| 11 // first frame | |
| 12 | |
| 13 requestAnimationFrame(function() { | |
| 14 | |
| 15 // second frame which doesn't have a dirty | |
| 16 context.scale(2, 1); | |
| 17 | |
| 18 requestAnimationFrame(function() { | |
| 19 | |
| 20 // third frame which has a dirty | |
| 21 context.scale(2, 1); | |
| 22 context.fillRect(0, 0, 10, 10); | |
| 23 | |
| 24 if (window.testRunner) | |
| 25 testRunner.notifyDone(); | |
| 26 | |
| 27 }); | |
| 28 }); | |
| 29 | |
| 30 </script> | |
| OLD | NEW |