Commit ec9e5d60 authored by Yi Xu's avatar Yi Xu Committed by Commit Bot

Remove test canvas-getImageData-large-crash.html

fix canvas-getImageData-large-crash.html always passes: it passes regardless
if any exception is thrown. Remove test.

Bug: 1073721

Change-Id: I5abde013194b45e3804ac2c215c5b2c79614c29a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2160346Reviewed-by: default avatarFernando Serboncini <fserb@chromium.org>
Commit-Queue: Yi Xu <yiyix@chromium.org>
Cr-Commit-Position: refs/heads/master@{#762038}
parent 0d3ef4b1
......@@ -3,8 +3,7 @@
<script>
test(function(t) {
var canvas = document.createElement("canvas");
try {
canvas.getContext("2d").getImageData(10, 0xffffffff, 2147483647, 10);
} catch(e) {}
}, 'Test that canvas does not crash when large image data is requested.');
assert_throws_js(TypeError, function() {
canvas.getContext("2d").getImageData(10, 0xffffffff, 2147483647, 10); });
}, 'Test that canvas crash when large image data cannot be allocated.');
</script>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment