OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Texture upload with color profile</title> | 4 <title>Texture upload with color profile</title> |
5 <script src="../../js/resources/js-test-pre.js"></script> | 5 <script src="../../../resources/js-test.js"></script> |
6 <script src="resources/webgl-test.js"></script> | 6 <script src="resources/webgl-test.js"></script> |
7 <script src="resources/webgl-test-utils.js"></script> | 7 <script src="resources/webgl-test-utils.js"></script> |
8 </head> | 8 </head> |
9 <body> | 9 <body> |
10 <canvas id="example" width="16" height="16" style="width: 16px; height: 16px;"><
/canvas> | 10 <canvas id="example" width="16" height="16" style="width: 16px; height: 16px;"><
/canvas> |
11 <div id="description"></div> | 11 <div id="description"></div> |
12 <div id="console"></div> | 12 <div id="console"></div> |
13 <script> | 13 <script> |
14 description("Test that applying a color profile to a texture with separate alpha
doesn't destroy the texture."); | 14 description("Test that applying a color profile to a texture with separate alpha
doesn't destroy the texture."); |
15 debug("") | 15 debug("") |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 gl.readPixels(0, 0, width, height, gl.RGBA, gl.UNSIGNED_BYTE, buf); | 80 gl.readPixels(0, 0, width, height, gl.RGBA, gl.UNSIGNED_BYTE, buf); |
81 // This generous range is still enough to catch the regression. | 81 // This generous range is still enough to catch the regression. |
82 checkPixelRange(buf, 0, 0, [163, 126, 94, 129], 20); | 82 checkPixelRange(buf, 0, 0, [163, 126, 94, 129], 20); |
83 | 83 |
84 debug(""); | 84 debug(""); |
85 isSuccessfullyParsed(); | 85 isSuccessfullyParsed(); |
86 } | 86 } |
87 </script> | 87 </script> |
88 </body> | 88 </body> |
89 </html> | 89 </html> |
OLD | NEW |