Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / dom / canvas / test / reftest / webgl-clear-test.html
blob9be310c8accde0632c9e8777b62d16ccf040112f
1 <!DOCTYPE html>
2 <meta charset='UTF-8'>
3 <!--
4 Clear the canvas to green to test that we get pixels to the screen.
6 If this fails, something is seriously wrong.
7 -->
8 <html>
10 <head>
11 <script type='text/javascript' src='webgl-utils.js'></script>
12 <script type='text/javascript'>
13 'use strict';
15 function setStatus(text) {
16 var elem = document.getElementById('status');
17 elem.innerHTML = text;
20 function runTest() {
21 var canvas = document.getElementById('canvas');
23 var gl = initGL(canvas);
24 if (!gl) {
25 setStatus('WebGL context creation failed.');
26 return;
29 gl.clearColor(0.0, 1.0, 0.0, 1.0);
30 gl.clear(gl.COLOR_BUFFER_BIT);
32 </script>
33 </head>
35 <body onload='runTest();'>
36 <canvas id='canvas' width='256' height='256'></canvas>
37 <div id='status'></div>
38 </body>
40 </html>