Revision 06f77f6bfaa86f3643a79f1ec2c49c6b6955cf18 authored by Rune Lillesveen on 27 March 2018, 00:22:42 UTC, committed by Blink WPT Bot on 27 March 2018, 00:31:06 UTC
Bug: 820299 Change-Id: I596113eeea7d4c13cf689364744bff7c261f93d3 Reviewed-on: https://chromium-review.googlesource.com/978247 Commit-Queue: Darren Shen <shend@chromium.org> Reviewed-by: Darren Shen <shend@chromium.org> Cr-Commit-Position: refs/heads/master@{#545896}
1 parent f497de8
texSubImage2D.html
<!doctype html>
<title>texSubImage2D</title>
<link rel=author href=mailto:Ms2ger@gmail.com title=Ms2ger>
<link rel=help href=https://www.khronos.org/registry/webgl/specs/latest/#5.14.8>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=common.js></script>
<div id=log></div>
<script>
test(function() {
var gl = getGl();
assert_throws(new TypeError(), function() {
gl.texSubImage2D(0, 0, 0, 0, 0, 0, window);
});
assert_throws(new TypeError(), function() {
gl.texSubImage2D(0, 0, 0, 0, 0, 0, { get width() { throw 7 }, get height() { throw 7 }, data: new Uint8ClampedArray(10) });
});
});
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...