Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / dom / canvas / test / webgl-mochitest / test_privileged_exts.html
blob37d4b0deb30054dc197e37e89a7bbed6c99d72d5
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>WebGL test: Check for privileged ext access.</title>
5 <script src="/tests/SimpleTest/SimpleTest.js"></script>
6 <link rel="stylesheet" href="/tests/SimpleTest/test.css">
7 <script src="driver-info.js"></script>
8 </head>
9 <body>
10 <canvas id="c"></canvas>
11 <script>
13 function TestExt(gl, name) {
14 var ext = gl.getExtension(name);
15 ok(!ext, 'Should not have access to \'' + name + '\'.');
18 (function() {
19 var gl = c.getContext('webgl');
20 if (!gl) {
21 todo(gl, 'Get GL working here first.');
22 return;
25 // Privileged extensions:
26 TestExt(gl, 'MOZ_debug');
27 })();
29 </script>
30 </body>
31 </html>