Chromium Code Reviews| Index: content/test/data/gpu/pixel_canvas_display_linear-rgb.html |
| diff --git a/content/test/data/gpu/pixel_canvas_display_linear-rgb.html b/content/test/data/gpu/pixel_canvas_display_linear-rgb.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5ed44617732ad5d24d9a749220847898fb219391 |
| --- /dev/null |
| +++ b/content/test/data/gpu/pixel_canvas_display_linear-rgb.html |
| @@ -0,0 +1,13 @@ |
| +<!DOCTYPE html> |
|
xidachen
2016/10/24 20:30:18
Please use one of the "pixel_offscreenCanvas" test
zakerinasab
2016/10/24 20:53:41
Done.
|
| +<canvas id="cnv" width=100 height=100></canvas> |
| + |
| +<script> |
| + // This layout test checks if the 2D canvas is properly displayed |
| + // when the color space is set to linear-rgb. |
| + var ctx = document.getElementById("cnv").getContext("2d", {colorSpace:'linear-rgb'}); |
| + ctx.fillStyle = 'blue'; |
|
xidachen
2016/10/24 20:30:18
Fill the entire canvas could hide bugs sometimes.
zakerinasab
2016/10/24 20:53:41
Done.
|
| + ctx.fillRect(0,0,100,100); |
| + ctx.stroke(); |
| +</script> |
| + |
| + |