| 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 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 /** | 39 /** |
| 40 * @param {*} a | 40 * @param {*} a |
| 41 * @param {*} b | 41 * @param {*} b |
| 42 * @param {string=} opt_message | 42 * @param {string=} opt_message |
| 43 */ | 43 */ |
| 44 QUnit.equal = function(a, b, opt_message) {}; | 44 QUnit.equal = function(a, b, opt_message) {}; |
| 45 | 45 |
| 46 /** | 46 /** |
| 47 * @param {*} a | 47 * @param {*} a |
| 48 * @param {*} b |
| 49 * @param {string=} opt_message |
| 50 */ |
| 51 QUnit.strictEqual = function(a, b, opt_message) {}; |
| 52 |
| 53 /** |
| 54 * @param {Function} func |
| 55 * @param {*=} opt_error |
| 56 * @param {string=} opt_message |
| 57 */ |
| 58 QUnit.throws = function(func, opt_error, opt_message) {}; |
| 59 |
| 60 /** |
| 61 * @param {*} a |
| 48 */ | 62 */ |
| 49 QUnit.expect = function(a) {}; | 63 QUnit.expect = function(a) {}; |
| 50 | 64 |
| 51 /** | 65 /** |
| 52 * @param {string} desc | 66 * @param {string} desc |
| 53 * @param {Object=} dict | 67 * @param {Object=} dict |
| 54 */ | 68 */ |
| 55 QUnit.module = function(desc, dict) {}; | 69 QUnit.module = function(desc, dict) {}; |
| 56 | 70 |
| 57 /** | 71 /** |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 */ | 116 */ |
| 103 QUnit.assert; | 117 QUnit.assert; |
| 104 | 118 |
| 105 var deepEqual = QUnit.deepEqual; | 119 var deepEqual = QUnit.deepEqual; |
| 106 var equal = QUnit.equal; | 120 var equal = QUnit.equal; |
| 107 var expect = QUnit.expect; | 121 var expect = QUnit.expect; |
| 108 var module = QUnit.module; | 122 var module = QUnit.module; |
| 109 var notEqual = QUnit.notEqual; | 123 var notEqual = QUnit.notEqual; |
| 110 var ok = QUnit.ok; | 124 var ok = QUnit.ok; |
| 111 var test = QUnit.test; | 125 var test = QUnit.test; |
| OLD | NEW |