Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Side by Side Diff: remoting/webapp/js_proto/qunit_proto.js

Issue 959963002: [Chromoting] Enable jscompile for webapp unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename sinon.$testStub -> sinon.TestStub Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
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
7 // verify the type-correctness of our code.
8
9
10 /** @type {Object} */
11 var QUnit = QUnit || {};
12
13 /** @constructor */
14 QUnit.Test = function() {};
15
16 /** @type {QUnit.Clock} */
17 QUnit.Test.prototype.clock = new QUnit.Clock();
18
19 /** @constructor */
20 QUnit.Clock = function() {};
21
22 /** @param {number} ticks */
23 QUnit.Clock.prototype.tick = function(ticks) {};
24
25
26 /**
27 * @param {string} desc
28 * @param {Function} f
29 */
30 QUnit.asyncTest = function(desc, f) {};
31
32 /**
33 * @param {*} a
34 * @param {*} b
35 */
36 QUnit.deepEqual = function(a, b) {};
37
38 /**
39 * @param {*} a
40 * @param {*} b
41 */
42 QUnit.equal = function(a, b) {};
43
44 /**
45 * @param {*} a
46 */
47 QUnit.expect = function(a) {};
48
49 /**
50 * @param {string} desc
51 * @param {Object=} dict
52 */
53 QUnit.module = function(desc, dict) {};
54
55 /**
56 * @param {*} a
57 * @param {*} b
58 * @param {string} desc
59 */
60 QUnit.notEqual = function(a, b, desc) {};
61
62 /**
63 * @param {boolean} cond
64 * @param {string=} desc
65 * @return {boolean}
66 */
67 QUnit.ok = function(cond, desc) {};
68
69 QUnit.start = function() {};
70
71 /**
72 * @param {string} desc
73 * @param {Function} f
74 */
75 QUnit.test = function(desc, f) {};
76
77 /** @param {Function} f */
78 QUnit.testStart = function(f) {};
79
80
81 var deepEqual = QUnit.deepEqual;
82 var equal = QUnit.equal;
83 var expect = QUnit.expect;
84 var module = QUnit.module;
85 var notEqual = QUnit.notEqual;
86 var ok = QUnit.ok;
87 var test = QUnit.test;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698