tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

shader-with-error-directive.html (1413B)


      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 -->
      6 
      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="fshaderWithErrorDirective" type="text/something-not-javascript">
     22 #error testing123 testing123
     23 void main()
     24 {
     25    gl_FragColor = vec4(0,0,0,0);
     26 }
     27 </script>
     28 <script>
     29 "use strict";
     30 description("Checks shader with error directive");
     31 
     32 var wtu = WebGLTestUtils;
     33 GLSLConformanceTester.runTests([
     34 { vShaderId: undefined,
     35  vShaderSuccess: true,
     36  fShaderId: 'fshaderWithErrorDirective',
     37  fShaderSuccess: false,
     38  // We can't test for the actual error message as
     39  // GLSL 1.0.17 11 says the messages are implementation dependant.
     40  //fShaderTest: (function() {
     41  //  return wtu.getLastError().indexOf("testing123 testing123") >= 0; }),
     42  linkSuccess: false,
     43  passMsg: "error directive causes error",
     44 },
     45 ]);
     46 
     47 debug("");
     48 var successfullyParsed = true;
     49 </script>
     50 </body>
     51 </html>