Index: LayoutTests/fast/canvas/canvas-state-persistence-no-dirty.html |
diff --git a/LayoutTests/fast/canvas/canvas-state-persistence-no-dirty.html b/LayoutTests/fast/canvas/canvas-state-persistence-no-dirty.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..26b39cc8265faeaf82d90cd035c5f94d35962306 |
--- /dev/null |
+++ b/LayoutTests/fast/canvas/canvas-state-persistence-no-dirty.html |
@@ -0,0 +1,30 @@ |
+<!DOCTYPE html> |
+<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> |