4 <title>WebGL test: WebGL2RenderingContext only exposed when appropriate
</title>
5 <script src='/tests/SimpleTest/SimpleTest.js'
></script>
6 <link rel='stylesheet' href='/tests/SimpleTest/test.css'
>
11 function ShouldExpose() {
13 return SpecialPowers
.getBoolPref('webgl.enable-webgl2');
19 function DoesExpose() {
21 null instanceof WebGL2RenderingContext
;
28 var doesExpose
= DoesExpose();
30 ok(doesExpose
, 'WebGL2RenderingContext should be exposed.');
32 ok(!doesExpose
, 'WebGL2RenderingContext should not be exposed.');