4 <meta http-equiv='content-type' content='text/html; charset=utf-
8'
/>
6 <script src='/tests/SimpleTest/SimpleTest.js'
></script>
7 <link rel='stylesheet' href='/tests/SimpleTest/test.css'
>
8 <script src='webgl-util.js'
></script>
16 var c
= document
.createElement('canvas');
17 var gl
= c
.getContext('webgl');
19 ok(!gl
.getError(), 'No error before.');
21 var tex
= gl
.createTexture();
22 gl
.bindTexture(gl
.TEXTURE_CUBE_MAP
, tex
);
23 gl
.texImage2D(gl
.TEXTURE_CUBE_MAP_NEGATIVE_X
, 0, gl
.RGBA
, 4, 3, 0, gl
.RGBA
,
24 gl
.UNSIGNED_BYTE
, null);
26 var err
= gl
.getError();
27 ok(err
== gl
.INVALID_VALUE
,
28 'Should be INVALID_VALUE (0x501) after, was 0x' + err
.toString(16) + '.');
31 ok(true, 'Test complete.');