summaryrefslogtreecommitdiffstats
path: root/dom/canvas/test/webgl-mochitest/test_webgl_available.html
blob: f6817c9858228b0bbe787c72bd9dc9ed1d67605a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE HTML>
<html>
  <head>
    <meta charset='utf-8'/>
    <title>WebGL test: Check that WebGL works out-of-the-box.</title>
    <script src="/tests/SimpleTest/SimpleTest.js"></script>
    <link rel="stylesheet" href="/tests/SimpleTest/test.css">
  </head>
  <body>
    <script>

'use strict';
var c = document.createElement('canvas');
var gl = c.getContext('experimental-webgl');
ok(gl, 'Expected WebGL creation to succeed.');

    </script>
  </body>
</html>