Chromium Code Reviews| Index: LayoutTests/fast/canvas/canvas-display-list-state-stack-no-dirty.html |
| diff --git a/LayoutTests/fast/canvas/canvas-display-list-state-stack-no-dirty.html b/LayoutTests/fast/canvas/canvas-display-list-state-stack-no-dirty.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..26b39cc8265faeaf82d90cd035c5f94d35962306 |
| --- /dev/null |
| +++ b/LayoutTests/fast/canvas/canvas-display-list-state-stack-no-dirty.html |
| @@ -0,0 +1,30 @@ |
| +<!DOCTYPE html> |
|
Justin Novosad
2014/09/23 15:09:52
I suggest naming this test differently because the
|
| +<canvas></canvas> |
| +<script> |
| + |
| +if (window.testRunner) |
| + testRunner.waitUntilDone(); |
| + |
| +var canvas = document.querySelector("canvas"); |
| +var context = canvas.getContext("2d"); |
| + |
| +// first frame |
| + |
| +requestAnimationFrame(function() { |
| + |
| + // second frame which doesn't have a dirty |
| + context.scale(2, 1); |
| + |
| + requestAnimationFrame(function() { |
| + |
| + // third frame which has a dirty |
| + context.scale(2, 1); |
| + context.fillRect(0, 0, 10, 10); |
| + |
| + if (window.testRunner) |
| + testRunner.notifyDone(); |
| + |
| + }); |
| +}); |
| + |
| +</script> |