tor-browser

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

context-creation.html (1000B)


      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 <!DOCTYPE html>
      7 <html>
      8 <head>
      9 <meta charset="utf-8">
     10 <title>WebGL2 Context Creation Test</title>
     11 <link rel="stylesheet" href="../../resources/js-test-style.css"/>
     12 <script src="../../js/js-test-pre.js"></script>
     13 <script src="../../js/webgl-test-utils.js"></script>
     14 <script src="../../js/tests/canvas-tests-utils.js"></script>
     15 </head>
     16 <body>
     17 <div id="description"></div>
     18 <div id="console"></div>
     19 <script>
     20 description("This test ensures that the WebGL2 context can be created on an OffscreenCanvas.");
     21 
     22 if (!window.OffscreenCanvas) {
     23  testPassed("No OffscreenCanvas support");
     24 } else {
     25  if (contextCreation('webgl2')) {
     26    testPassed("WebGL2 context created correctly.");
     27  } else {
     28    testFailed("WebGL2 context creation failed");
     29  }
     30 }
     31 
     32 var successfullyParsed = true;
     33 </script>
     34 <script src="../../js/js-test-post.js"></script>
     35 </body>
     36 </html>