| 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 <link rel="stylesheet" href="../../js/resources/js-test-style.css"/> | |
| 6 <script src="../../js/resources/js-test-pre.js"></script> | 5 <script src="../../js/resources/js-test-pre.js"></script> |
| 7 <script src="resources/webgl-test.js"></script> | 6 <script src="resources/webgl-test.js"></script> |
| 8 <script src="resources/webgl-test-utils.js"></script> | 7 <script src="resources/webgl-test-utils.js"></script> |
| 9 </head> | 8 </head> |
| 10 <body> | 9 <body> |
| 11 <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> |
| 12 <div id="description"></div> | 11 <div id="description"></div> |
| 13 <div id="console"></div> | 12 <div id="console"></div> |
| 14 <script> | 13 <script> |
| 15 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."); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 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); |
| 82 // This generous range is still enough to catch the regression. | 81 // This generous range is still enough to catch the regression. |
| 83 checkPixelRange(buf, 0, 0, [163, 126, 94, 129], 20); | 82 checkPixelRange(buf, 0, 0, [163, 126, 94, 129], 20); |
| 84 | 83 |
| 85 debug(""); | 84 debug(""); |
| 86 isSuccessfullyParsed(); | 85 isSuccessfullyParsed(); |
| 87 } | 86 } |
| 88 </script> | 87 </script> |
| 89 </body> | 88 </body> |
| 90 </html> | 89 </html> |
| OLD | NEW |