Backed out changeset 8fc3326bce7f (bug 1943032) for causing failures at browser_tab_g...
[gecko.git] / dom / canvas / test / webgl-conf / checkout / conformance2 / misc / instanceof-test.html
blob4ecbd6e2d304d2c77fa3085916146ca92064fb0b
1 <!--
2 Copyright (c) 2019 The Khronos Group Inc.
3 Use of this source code is governed by an MIT-style license that can be
4 found in the LICENSE.txt file.
5 -->
7 <!DOCTYPE html>
8 <html>
9 <head>
10 <meta charset="utf-8">
11 <title>WebGL instanceof test.</title>
12 <link rel="stylesheet" href="../../resources/js-test-style.css"/>
13 <script src="../../js/js-test-pre.js"></script>
14 <script src="../../js/webgl-test-utils.js"> </script>
15 </head>
16 <body>
17 <canvas id="canvas" width="2" height="2" style="width: 40px; height: 40px;"></canvas>
18 <div id="description"></div>
19 <div id="console"></div>
20 <script id="vshader" type="x-shader/x-vertex">
21 attribute vec4 vPosition;
22 varying vec2 texCoord;
23 void main()
25 gl_Position = vPosition;
27 </script>
28 <script id="fshader" type="x-shader/x-fragment">
29 precision mediump float;
30 uniform vec4 color;
31 void main()
33 gl_FragColor = color;
35 </script>
37 <script>
38 var contextVersion = 2;
39 </script>
40 <script src="../../js/tests/instanceof-test.js"></script>
41 <script src="../../js/js-test-post.js"></script>
43 </body>
44 </html>