texSubImage2D.html (675B)
1 <!doctype html> 2 <title>texSubImage2D</title> 3 <link rel=author href=mailto:Ms2ger@gmail.com title=Ms2ger> 4 <link rel=help href=https://www.khronos.org/registry/webgl/specs/latest/#5.14.8> 5 <script src=/resources/testharness.js></script> 6 <script src=/resources/testharnessreport.js></script> 7 <script src=common.js></script> 8 9 <div id=log></div> 10 <script> 11 test(function() { 12 var gl = getGl(); 13 assert_throws_js(TypeError, function() { 14 gl.texSubImage2D(0, 0, 0, 0, 0, 0, window); 15 }); 16 assert_throws_js(TypeError, function() { 17 gl.texSubImage2D(0, 0, 0, 0, 0, 0, { get width() { throw 7 }, get height() { throw 7 }, data: new Uint8ClampedArray(10) }); 18 }); 19 }); 20 </script>