| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file contains various hacks needed to inform JSCompiler of various | 5 // This file contains various hacks needed to inform JSCompiler of various |
| 6 // QUnit-specific properties and methods. It is used only with JSCompiler to | 6 // QUnit-specific properties and methods. It is used only with JSCompiler to |
| 7 // verify the type-correctness of our code. | 7 // verify the type-correctness of our code. |
| 8 | 8 |
| 9 | 9 |
| 10 /** @type {Object} */ | 10 /** @type {Object} */ |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 /** | 26 /** |
| 27 * @param {string} desc | 27 * @param {string} desc |
| 28 * @param {Function} f | 28 * @param {Function} f |
| 29 */ | 29 */ |
| 30 QUnit.asyncTest = function(desc, f) {}; | 30 QUnit.asyncTest = function(desc, f) {}; |
| 31 | 31 |
| 32 /** | 32 /** |
| 33 * @param {*} a | 33 * @param {*} a |
| 34 * @param {*} b | 34 * @param {*} b |
| 35 * @param {string=} opt_message |
| 35 */ | 36 */ |
| 36 QUnit.deepEqual = function(a, b) {}; | 37 QUnit.deepEqual = function(a, b, opt_message) {}; |
| 37 | 38 |
| 38 /** | 39 /** |
| 39 * @param {*} a | 40 * @param {*} a |
| 40 * @param {*} b | 41 * @param {*} b |
| 42 * @param {string=} opt_message |
| 41 */ | 43 */ |
| 42 QUnit.equal = function(a, b) {}; | 44 QUnit.equal = function(a, b, opt_message) {}; |
| 43 | 45 |
| 44 /** | 46 /** |
| 45 * @param {*} a | 47 * @param {*} a |
| 46 */ | 48 */ |
| 47 QUnit.expect = function(a) {}; | 49 QUnit.expect = function(a) {}; |
| 48 | 50 |
| 49 /** | 51 /** |
| 50 * @param {string} desc | 52 * @param {string} desc |
| 51 * @param {Object=} dict | 53 * @param {Object=} dict |
| 52 */ | 54 */ |
| (...skipping 25 matching lines...) Expand all Loading... |
| 78 QUnit.testStart = function(f) {}; | 80 QUnit.testStart = function(f) {}; |
| 79 | 81 |
| 80 | 82 |
| 81 var deepEqual = QUnit.deepEqual; | 83 var deepEqual = QUnit.deepEqual; |
| 82 var equal = QUnit.equal; | 84 var equal = QUnit.equal; |
| 83 var expect = QUnit.expect; | 85 var expect = QUnit.expect; |
| 84 var module = QUnit.module; | 86 var module = QUnit.module; |
| 85 var notEqual = QUnit.notEqual; | 87 var notEqual = QUnit.notEqual; |
| 86 var ok = QUnit.ok; | 88 var ok = QUnit.ok; |
| 87 var test = QUnit.test; | 89 var test = QUnit.test; |
| OLD | NEW |