From 7be4202c98d629b7eab64c251eb3ae3914e584e7 Mon Sep 17 00:00:00 2001 From: xidachen Date: Tue, 8 Mar 2016 11:12:51 -0800 Subject: Add layout tests for tex(Sub)Image2D for ImageBitmap At this moment, there is an extensive coverage of this testing hosted on KhronosGroup/WebGL. However, the problem is that we cannot have coverage of the case for ImageBitmap constructor to take a "default" value for some of the constructor options such as premultiplyAlpha. The reason is that the option "default" is implementation-specific, and the results could vary for different browsers. In here, we add layout tests in chromium code base to have more test cases than the ones hosted on KhronosGroup/WebGL. Also, the KhronosGroup/WebGL testing suite tests tex(Sub)Image2D for 38 different kinds of pixel formats such as RGBA + UNSIGNED_SHORT_4444. Here we test the basic one which is RGBA + UNSIGNED_BYTE, we can always extend that in the future. Review URL: https://codereview.chromium.org/1767113003 Cr-Commit-Position: refs/heads/master@{#379879} --- ...ge-and-sub-image-2d-image-bitmap-from-blob.html | 88 ++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 third_party/WebKit/LayoutTests/fast/canvas/webgl/tex-image-and-sub-image-2d-image-bitmap-from-blob.html (limited to 'third_party/WebKit/LayoutTests/fast/canvas/webgl/tex-image-and-sub-image-2d-image-bitmap-from-blob.html') diff --git a/third_party/WebKit/LayoutTests/fast/canvas/webgl/tex-image-and-sub-image-2d-image-bitmap-from-blob.html b/third_party/WebKit/LayoutTests/fast/canvas/webgl/tex-image-and-sub-image-2d-image-bitmap-from-blob.html new file mode 100644 index 0000000..a3b109c --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/canvas/webgl/tex-image-and-sub-image-2d-image-bitmap-from-blob.html @@ -0,0 +1,88 @@ + + + + + + + + + + + + +
Test FAILED
+ + -- cgit v1.1