Bug 1945965 – remove new tab April Fools logo. r=home-newtab-reviewers,reemhamz
[gecko.git] / dom / canvas / test / webgl-conf / checkout / conformance / glsl / misc / shader-with-while-loop.html
blob592f55541edc4968c804245a20259f48986fc1c2
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 GLSL Conformance Tests</title>
12 <link rel="stylesheet" href="../../../resources/js-test-style.css"/>
13 <link rel="stylesheet" href="../../../resources/glsl-feature-tests.css"/>
14 <script src="../../../js/js-test-pre.js"></script>
15 <script src="../../../js/webgl-test-utils.js"></script>
16 <script src="../../../js/glsl-conformance-test.js"></script>
17 </head>
18 <body>
19 <div id="description"></div>
20 <div id="console"></div>
21 <script id="fragmentShader" type="text/something-not-javascript">
22 // fragment shader with while loop should fail
23 precision mediump float;
24 void main() {
25 int k = 0;
26 while (k < 5) {
27 k++;
29 gl_FragColor = vec4(float(k));
31 </script>
32 <script>
33 "use strict";
34 GLSLConformanceTester.runTest();
35 var successfullyParsed = true;
36 </script>
37 </body>
38 </html>