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.
19 QUnit.start = function() {};
24 QUnit.stop = function() {};
28 * @param {string} name
29 * @param {function(!QUnit.Assert)} testFunction
31 QUnit.test = function(name, testFunction) {};
38 QUnit.Assert = function() {};
42 * @param {number} assertionCount
44 QUnit.Assert.prototype.expect = function(assertionCount) {};
48 QUnit.Clock = function() {};
51 /** @param {number} ticks */
52 QUnit.Clock.prototype.tick = function(ticks) {};
58 * @param {string=} opt_desc
60 QUnit.Assert.prototype.notEqual = function(a, b, opt_desc) {};
66 * @param {string=} opt_message
68 QUnit.Assert.prototype.strictEqual = function(a, b, opt_message) {};
72 * @param {boolean} condition
73 * @param {string=} opt_message
75 QUnit.Assert.prototype.ok = function(condition, opt_message) {};
79 * @return {function():void}
81 QUnit.Assert.prototype.async = function() {};
87 * @param {string=} opt_message
89 QUnit.Assert.prototype.deepEqual = function(a, b, opt_message) {};
93 * @param {function()} a
95 * @param {string=} opt_message
97 QUnit.Assert.prototype.throws = function(a, opt_b, opt_message) {};
103 * @param {string=} opt_message
105 QUnit.Assert.prototype.equal = function(a, b, opt_message) {};
108 /** @param {Function} f */
109 QUnit.testStart = function(f) {};
112 /** @param {Function} f */
113 QUnit.testDone = function(f) {};
118 * beforeEach: (function(!QUnit.Assert) | undefined),
119 * afterEach: (function(!QUnit.Assert) | undefined)
126 * @param {string} desc
127 * @param {QUnit.ModuleArgs=} opt_args=
129 QUnit.module = function(desc, opt_args) {};