tor-browser

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

template.html (1146B)


      1 <html>
      2 <head>
      3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      4 <title>WebGL Shader Conformance Tests</title>
      5 <link rel="stylesheet" href="../../../../resources/js-test-style.css"/>
      6 <script src="../../../../js/js-test-pre.js"></script>
      7 <script src="../../../../js/webgl-test-utils.js"></script>
      8 
      9 <script src="../../../../closure-library/closure/goog/base.js"></script>
     10 <script src="../../../deqp-deps.js"></script>
     11 <script>goog.require('modules.shared.glsShaderLibrary');</script>
     12 </head>
     13 <body>
     14 <div id="description"></div>
     15 <div id="console"></div>
     16 <canvas id="canvas" width="200" height="100"> </canvas>
     17 <script>
     18 testName = ___TEST_NAME___;
     19 description("Shader test: " + testName + ".");
     20 WebGLTestUtils.setDefault3DContextVersion(2);
     21 
     22 var getFilter = function() {
     23    var queryVars = window.location.search.substring(1).split('&');
     24 
     25    for (var i = 0; i < queryVars.length; i++) {
     26        var value = queryVars[i].split('=');
     27        if (decodeURIComponent(value[0]) === 'filter')
     28            return decodeURIComponent(value[1]);
     29    }
     30 }
     31 
     32 modules.shared.glsShaderLibrary.run(testName, getFilter())
     33 
     34 </script>
     35 </body>
     36 </html>