Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / webgl / webgl-unprefixed-context-id.html
blob5c390b885010f5b38f863997fa053b3ccabac59d
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 <script src="resources/webgl-test.js"></script>
6 </head>
7 <body>
8 <canvas id="c"></canvas>
9 <script>
10 description("This test checks to ensure that a webgl context can be created with the 'webgl' context ID");
11 var c = document.getElementById("c");
12 var gl = c.getContext("webgl");
13 if (!gl)
14 testFailed("context does not exist");
15 else
16 testPassed("context exists");
17 </script>
18 </body>
19 </html>