Index: LayoutTests/fast/canvas/canvas-from-image.html |
diff --git a/LayoutTests/fast/canvas/canvas-from-image.html b/LayoutTests/fast/canvas/canvas-from-image.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ce01729a5b1a5393051d92707b51b6b48d3d23aa |
--- /dev/null |
+++ b/LayoutTests/fast/canvas/canvas-from-image.html |
@@ -0,0 +1,27 @@ |
+<!DOCTYPE html> |
+<style> |
+ img { |
+ display: none; |
+ } |
+ canvas { |
+ width: 520px; |
+ height: 520px; |
+ } |
+</style> |
+<body> |
+ <img src="resources/html5.png"> |
+ <!-- Test that gpu accelerated canvases work with pixelated. --> |
+ <!-- Canvases should be overlaid at an offset. Only the middle one should be blurred. --> |
+ <canvas class="canvas0" width="260" height="260"></canvas> |
+</body> |
+<script> |
+ // Ignore the render tree. |
+ if (window.testRunner) |
+ window.testRunner.dumpAsTextWithPixelResults(); |
+ |
+ function draw() { |
+ var ctx = document.getElementsByTagName("canvas")[0].getContext("2d") |
+ ctx.drawImage(document.getElementsByTagName("img")[0], 10, 10); |
+ } |
+ window.onload = draw; |
+</script> |