Backed out changeset 8fc3326bce7f (bug 1943032) for causing failures at browser_tab_g...
[gecko.git] / dom / canvas / test / webgl-conf / checkout / deqp / compiler_additional_extern.js
blob9f761192293b88b58fcafde18ae0fec28e98d08e
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 */
7 /* Author: Mobica LTD */
9 /**
10 * @typedef {function(*): boolean}
12 ArrayBuffer.isView;
14 /**
15 * @param {?string} msg
17 function description(msg){};
19 function finishTest(){};
21 /** @type {string} */ var _currentTestName;
22 /**
23 * @param {?string} name
25 function setCurrentTestName(name){};
27 /**
28 * @param {string} msg
30 function bufferedLogToConsole(msg){};
32 /**
33 * @constructor
34 * @param {string} message The error message.
36 var TestFailedException = function (message) {};
38 /**
39 * Shows a message in case expression test fails.
40 * @param {boolean} exp
41 * @param {string} message
43 function checkMessage(exp, message) {};
45 /**
46 * @param {boolean} assertion
47 * @param {?string} msg
48 * @param {boolean} verbose
49 * @param {boolean} exthrow
51 function assertMsgOptions(assertion, msg, verbose, exthrow) {};
53 /**
54 * @param {Object|string} msg
56 function debug(msg){};
58 /**
59 * @param {string} msg
60 * @param {boolean} exthrow
62 function testFailedOptions(msg, exthrow){};
64 /**
65 * @param {string} msg
66 * @param {boolean} exthrow
68 function testPassedOptions(msg, exthrow){};
70 /**
71 * @param {string=} msg
73 function testFailed(msg){};
75 /**
76 * @param {string=} msg
78 function testPassed(msg){};
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
86 WebGLTestUtils.GLErrorException = function(message, error){ /** @type {string} */ this.message; };
88 /** @type {WebGL2RenderingContext} */ var gl;
89 /** @type {HTMLElement} */ var canvas;
90 /** @type {Object} */ var wtu;
92 /** @type {{create3DContext: function(string):WebGL2RenderingContext,
93 loadTextFileAsync: function(string, function(boolean, string)),
94 glEnumToString: function(WebGL2RenderingContext, number):string }} */ var WebGLTestUtils;