tor-browser

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

non-ascii.vert.html (1446B)


      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="vertexShader" type="text/plain">
     22 Loading...
     23 </script>
     24 <script>
     25 "use strict";
     26 
     27 // Via `[].map.call(str, x => x.codePointAt(0));`
     28 let a = [12371,12428,12399,65313,65331,65315,65321,65321,12391,12399,12394,12356,12391,12377,12290];
     29 let b = [65332,65352,65353,65363,12288,65321,65363,12288,65326,65359,65364,12288,65313,65331,65315,65321,65321];
     30 let c = [65326,65359,65364,65313,65331,65315,65321,65321];
     31 a = String.fromCodePoint(...a);
     32 b = String.fromCodePoint(...b);
     33 c = String.fromCodePoint(...c);
     34 
     35 // -
     36 
     37 vertexShader.textContent = `
     38 // Non ascii data in source should fail
     39 // See GLSL ES Spec 1.0.17 section 3.1 and 3.2
     40 // ${a}
     41 // ${b}
     42 uniform mat4 ${c};
     43 void main() {
     44  gl_Position = vec4(1,1,1,1);
     45 }
     46 `;
     47 
     48 // -
     49 
     50 GLSLConformanceTester.runTest();
     51 var successfullyParsed = true;
     52 </script>
     53 </body>
     54 </html>