Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / canvas-state-persistence-no-dirty.html
blob26b39cc8265faeaf82d90cd035c5f94d35962306
1 <!DOCTYPE html>
2 <canvas></canvas>
3 <script>
5 if (window.testRunner)
6 testRunner.waitUntilDone();
8 var canvas = document.querySelector("canvas");
9 var context = canvas.getContext("2d");
11 // first frame
13 requestAnimationFrame(function() {
15 // second frame which doesn't have a dirty
16 context.scale(2, 1);
18 requestAnimationFrame(function() {
20 // third frame which has a dirty
21 context.scale(2, 1);
22 context.fillRect(0, 0, 10, 10);
24 if (window.testRunner)
25 testRunner.notifyDone();
27 });
28 });
30 </script>