tor-browser

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

compiler_additional_extern.js (1980B)


      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 /* Author: Mobica LTD */
      8 
      9 /**
     10 * @typedef {function(*): boolean}
     11 */
     12 ArrayBuffer.isView;
     13 
     14 /**
     15 * @param {?string} msg
     16 */
     17 function description(msg){};
     18 
     19 function finishTest(){};
     20 
     21 /** @type {string} */ var _currentTestName;
     22 /**
     23 * @param {?string} name
     24 */
     25 function setCurrentTestName(name){};
     26 
     27 /**
     28 * @param {string} msg
     29 */
     30 function bufferedLogToConsole(msg){};
     31 
     32 /**
     33 * @constructor
     34 * @param {string} message The error message.
     35 */
     36 var TestFailedException = function (message) {};
     37 
     38 /**
     39 * Shows a message in case expression test fails.
     40 * @param {boolean} exp
     41 * @param {string} message
     42 */
     43 function checkMessage(exp, message) {};
     44 
     45 /**
     46 * @param {boolean} assertion
     47 * @param {?string} msg
     48 * @param {boolean} verbose
     49 * @param {boolean} exthrow
     50 */
     51 function assertMsgOptions(assertion, msg, verbose, exthrow) {};
     52 
     53 /**
     54 * @param {Object|string} msg
     55 */
     56 function debug(msg){};
     57 
     58 /**
     59 * @param {string} msg
     60 * @param {boolean} exthrow
     61 */
     62 function testFailedOptions(msg, exthrow){};
     63 
     64 /**
     65 * @param {string} msg
     66 * @param {boolean} exthrow
     67 */
     68 function testPassedOptions(msg, exthrow){};
     69 
     70 /**
     71 * @param {string=} msg
     72 */
     73 function testFailed(msg){};
     74 
     75 /**
     76 * @param {string=} msg
     77 */
     78 function testPassed(msg){};
     79 
     80 /**
     81 * Defines the exception type for a GL error.
     82 * @constructor
     83 * @param {string} message The error message.
     84 * @param {number} error GL error code
     85 */
     86 WebGLTestUtils.GLErrorException = function(message, error){ /** @type {string} */ this.message; };
     87 
     88 /** @type {WebGL2RenderingContext} */ var gl;
     89 /** @type {HTMLElement} */ var canvas;
     90 /** @type {Object} */ var wtu;
     91 
     92 /** @type {{create3DContext: function(string):WebGL2RenderingContext,
     93            loadTextFileAsync: function(string, function(boolean, string)),
     94            glEnumToString: function(WebGL2RenderingContext, number):string }} */ var WebGLTestUtils;