OLD | NEW |
(Empty) | |
| 1 WebGL's tex(Sub)Image2D should throw a SecurityError exception when the ImageBit
map is not origin clean. |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 PASS gl.getError() is gl.NO_ERROR |
| 7 PASS gl.getError() is gl.NO_ERROR |
| 8 PASS gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, bitmap)
did not throw exception. |
| 9 PASS gl.getError() is gl.NO_ERROR |
| 10 PASS gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, gl.RGBA, gl.UNSIGNED_BYTE, bitmap)
did not throw exception. |
| 11 PASS gl.getError() is gl.NO_ERROR |
| 12 PASS gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, bitmap)
threw exception SecurityError: Failed to execute 'texImage2D' on 'WebGLRenderin
gContext': The ImageBitmap contains cross-origin data, and may not be loaded.. |
| 13 PASS gl.getError() is gl.NO_ERROR |
| 14 PASS gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, gl.RGBA, gl.UNSIGNED_BYTE, bitmap)
threw exception SecurityError: Failed to execute 'texSubImage2D' on 'WebGLRende
ringContext': The ImageBitmap contains cross-origin data, and may not be loaded.
. |
| 15 PASS gl.getError() is gl.NO_ERROR |
| 16 PASS successfullyParsed is true |
| 17 |
| 18 TEST COMPLETE |
| 19 |
OLD | NEW |