| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 * @param {string=} opt_message | 62 * @param {string=} opt_message |
| 63 */ | 63 */ |
| 64 QUnit.Assert.prototype.equal = function(a, b, opt_message) {}; | 64 QUnit.Assert.prototype.equal = function(a, b, opt_message) {}; |
| 65 | 65 |
| 66 /** | 66 /** |
| 67 * @param {number} assertionCount | 67 * @param {number} assertionCount |
| 68 */ | 68 */ |
| 69 QUnit.Assert.prototype.expect = function(assertionCount) {}; | 69 QUnit.Assert.prototype.expect = function(assertionCount) {}; |
| 70 | 70 |
| 71 /** | 71 /** |
| 72 * @param {*} a |
| 73 * @param {*} b |
| 74 * @param {string=} opt_message |
| 75 */ |
| 76 QUnit.Assert.prototype.strictEqual = function(a, b, opt_message) {}; |
| 77 |
| 78 /** |
| 79 * @param {function()} a |
| 80 * @param {*=} opt_b |
| 81 * @param {string=} opt_message |
| 82 */ |
| 83 QUnit.Assert.prototype.throws = function(a, opt_b, opt_message) {}; |
| 84 |
| 85 /** |
| 72 * @typedef {{ | 86 * @typedef {{ |
| 73 * beforeEach: (function(QUnit.Assert=) | undefined), | 87 * beforeEach: (function(QUnit.Assert=) | undefined), |
| 74 * afterEach: (function(QUnit.Assert=) | undefined) | 88 * afterEach: (function(QUnit.Assert=) | undefined) |
| 75 * }} | 89 * }} |
| 76 */ | 90 */ |
| 77 QUnit.ModuleArgs; | 91 QUnit.ModuleArgs; |
| 78 | 92 |
| 79 /** | 93 /** |
| 80 * @param {string} desc | 94 * @param {string} desc |
| 81 * @param {QUnit.ModuleArgs=} opt_args= | 95 * @param {QUnit.ModuleArgs=} opt_args= |
| 82 */ | 96 */ |
| 83 QUnit.module = function(desc, opt_args) {}; | 97 QUnit.module = function(desc, opt_args) {}; |
| 84 | 98 |
| 85 /** | 99 /** |
| 86 * @param {string} desc | 100 * @param {string} desc |
| 87 * @param {function(QUnit.Assert)} f | 101 * @param {function(QUnit.Assert)} f |
| 88 */ | 102 */ |
| 89 QUnit.test = function(desc, f) {}; | 103 QUnit.test = function(desc, f) {}; |
| OLD | NEW |