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.
7 /* Author: Mobica LTD */
10 * @typedef {function(*): boolean}
15 * @param {?string} msg
17 function description(msg
){};
19 function finishTest(){};
21 /** @type {string} */ var _currentTestName
;
23 * @param {?string} name
25 function setCurrentTestName(name
){};
30 function bufferedLogToConsole(msg
){};
34 * @param {string} message The error message.
36 var TestFailedException = function (message
) {};
39 * Shows a message in case expression test fails.
40 * @param {boolean} exp
41 * @param {string} message
43 function checkMessage(exp
, message
) {};
46 * @param {boolean} assertion
47 * @param {?string} msg
48 * @param {boolean} verbose
49 * @param {boolean} exthrow
51 function assertMsgOptions(assertion
, msg
, verbose
, exthrow
) {};
54 * @param {Object|string} msg
56 function debug(msg
){};
60 * @param {boolean} exthrow
62 function testFailedOptions(msg
, exthrow
){};
66 * @param {boolean} exthrow
68 function testPassedOptions(msg
, exthrow
){};
71 * @param {string=} msg
73 function testFailed(msg
){};
76 * @param {string=} msg
78 function testPassed(msg
){};
81 * Defines the exception type for a GL error.
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
;