Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
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>
9 <div id=log></div>
10 <script>
11 test(function() {
12 var gl = getGl();
13 assert_throws(new TypeError(), function() {
14 gl.texSubImage2D(0, 0, 0, 0, 0, 0, window);
15 });
16 assert_throws(new 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>