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
3 // found in the LICENSE file.
6 * @fileoverview JSCompiler externs for QUnit.
17 QUnit
.Test = function() {};
19 /** @type {QUnit.Clock} */
20 QUnit
.Test
.prototype.clock
;
24 QUnit
.start = function() {};
29 QUnit
.stop = function() {};
33 * @param {string} name
34 * @param {function(this:QUnit.Test, !QUnit.Assert)} testFunction
36 QUnit
.test = function(name
, testFunction
) {};
43 QUnit
.Assert = function() {};
47 * @param {number} assertionCount
49 QUnit
.Assert
.prototype.expect = function(assertionCount
) {};
53 QUnit
.Clock = function() {};
56 /** @param {number} ticks */
57 QUnit
.Clock
.prototype.tick = function(ticks
) {};
63 * @param {string=} opt_desc
65 QUnit
.Assert
.prototype.notEqual = function(a
, b
, opt_desc
) {};
71 * @param {string=} opt_message
73 QUnit
.Assert
.prototype.strictEqual = function(a
, b
, opt_message
) {};
77 * @param {boolean} condition
78 * @param {string=} opt_message
80 QUnit
.Assert
.prototype.ok = function(condition
, opt_message
) {};
84 * @return {function():void}
86 QUnit
.Assert
.prototype.async = function() {};
92 * @param {string=} opt_message
94 QUnit
.Assert
.prototype.deepEqual = function(a
, b
, opt_message
) {};
98 * @param {function()} a
100 * @param {string=} opt_message
102 QUnit
.Assert
.prototype.throws = function(a
, opt_b
, opt_message
) {};
108 * @param {string=} opt_message
110 QUnit
.Assert
.prototype.equal = function(a
, b
, opt_message
) {};
113 /** @param {Function} f */
114 QUnit
.testStart = function(f
) {};
117 /** @param {Function} f */
118 QUnit
.testDone = function(f
) {};
123 * beforeEach: (function(!QUnit.Assert) | undefined),
124 * afterEach: (function(!QUnit.Assert) | undefined)
131 * @param {string} desc
132 * @param {QUnit.ModuleArgs=} opt_args=
134 QUnit
.module = function(desc
, opt_args
) {};