Roll src/third_party/skia d32087a:1052f51
[chromium-blink-merge.git] / remoting / webapp / externs / qunit.js
blob99462b38395012aaeb93bf00294b48d909f59587
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.
5 /**
6 * @fileoverview JSCompiler externs for QUnit.
7 * @externs
8 */
10 /**
11 * namespace
12 * @const
14 var QUnit = {};
16 /** @interface */
17 QUnit.Test = function() {};
19 /** @type {QUnit.Clock} */
20 QUnit.Test.prototype.clock;
22 /**
24 QUnit.start = function() {};
27 /**
29 QUnit.stop = function() {};
32 /**
33 * @param {string} name
34 * @param {function(this:QUnit.Test, !QUnit.Assert)} testFunction
36 QUnit.test = function(name, testFunction) {};
40 /**
41 * @constructor
43 QUnit.Assert = function() {};
46 /**
47 * @param {number} assertionCount
49 QUnit.Assert.prototype.expect = function(assertionCount) {};
52 /** @constructor */
53 QUnit.Clock = function() {};
56 /** @param {number} ticks */
57 QUnit.Clock.prototype.tick = function(ticks) {};
60 /**
61 * @param {*} a
62 * @param {*} b
63 * @param {string=} opt_desc
65 QUnit.Assert.prototype.notEqual = function(a, b, opt_desc) {};
68 /**
69 * @param {*} a
70 * @param {*} b
71 * @param {string=} opt_message
73 QUnit.Assert.prototype.strictEqual = function(a, b, opt_message) {};
76 /**
77 * @param {boolean} condition
78 * @param {string=} opt_message
80 QUnit.Assert.prototype.ok = function(condition, opt_message) {};
83 /**
84 * @return {function():void}
86 QUnit.Assert.prototype.async = function() {};
89 /**
90 * @param {*} a
91 * @param {*} b
92 * @param {string=} opt_message
94 QUnit.Assert.prototype.deepEqual = function(a, b, opt_message) {};
97 /**
98 * @param {function()} a
99 * @param {*=} opt_b
100 * @param {string=} opt_message
102 QUnit.Assert.prototype.throws = function(a, opt_b, opt_message) {};
106 * @param {*} a
107 * @param {*} b
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) {};
122 * @typedef {{
123 * beforeEach: (function(!QUnit.Assert) | undefined),
124 * afterEach: (function(!QUnit.Assert) | undefined)
125 * }}
127 QUnit.ModuleArgs;
131 * @param {string} desc
132 * @param {QUnit.ModuleArgs=} opt_args=
134 QUnit.module = function(desc, opt_args) {};