Index: third_party/WebKit/LayoutTests/http/tests/security/webgl-cross-origin-ImageBitmap-blocked-expected.txt |
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/webgl-cross-origin-ImageBitmap-blocked-expected.txt b/third_party/WebKit/LayoutTests/http/tests/security/webgl-cross-origin-ImageBitmap-blocked-expected.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..33f111dbbd5cb798ca4be0f2e2c6bebfd14b5336 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/security/webgl-cross-origin-ImageBitmap-blocked-expected.txt |
@@ -0,0 +1,19 @@ |
+WebGL's tex(Sub)Image2D should throw a SecurityError exception when the ImageBitmap is not origin clean. |
+ |
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
+ |
+ |
+PASS gl.getError() is gl.NO_ERROR |
+PASS gl.getError() is gl.NO_ERROR |
+PASS gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, bitmap) did not throw exception. |
+PASS gl.getError() is gl.NO_ERROR |
+PASS gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, gl.RGBA, gl.UNSIGNED_BYTE, bitmap) did not throw exception. |
+PASS gl.getError() is gl.NO_ERROR |
+PASS gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, bitmap) threw exception SecurityError: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The ImageBitmap contains cross-origin data, and may not be loaded.. |
+PASS gl.getError() is gl.NO_ERROR |
+PASS gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, gl.RGBA, gl.UNSIGNED_BYTE, bitmap) threw exception SecurityError: Failed to execute 'texSubImage2D' on 'WebGLRenderingContext': The ImageBitmap contains cross-origin data, and may not be loaded.. |
+PASS gl.getError() is gl.NO_ERROR |
+PASS successfullyParsed is true |
+ |
+TEST COMPLETE |
+ |