5 <script src='/tests/SimpleTest/SimpleTest.js'
></script>
6 <link rel='stylesheet' href='/tests/SimpleTest/test.css'
>
8 <title>WebGL test: Framebuffer maximum size test. (Bug
1290333)
</title>
11 function TestSize(contextName
, testSize
) {
16 var canvas
= document
.createElement('canvas');
17 var gl
= canvas
.getContext(contextName
, attributes
);
20 todo(false, contextName
+ 'is unavailable.');
23 gl
.canvas
.width
= testSize
;
24 gl
.canvas
.height
= testSize
;
26 ok(true, contextName
+ 'test complete.');
30 TestSize('webgl', 16384);
31 TestSize('webgl2', 16384);
33 ok(true, 'Test complete.');
37 ////////////////////////////////////////
39 SimpleTest
.waitForExplicitFinish();
43 ['webgl.force-enabled', true],
45 var prefEnv
= {'set': prefPairList
};
46 SpecialPowers
.pushPrefEnv(prefEnv
, run
);
48 warning('No SpecialPowers, but trying WebGL2 anyway...');