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

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: Created 5 years, 10 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() {};
kelvinp 2015/02/26 00:31:30 Upper case for Types and drop $
garykac 2015/02/28 02:33:33 Done.
15
16 /** @type {QUnit.$clock} */
17 QUnit.$test.prototype.clock = new QUnit.$clock();
18
19 /** @constructor */
20 QUnit.$clock = function() {};
kelvinp 2015/02/26 00:31:30 upper case for types and no need to use $ as proto
garykac 2015/02/28 02:33:33 Done.
21
22 /** @param {number} ticks */
23 QUnit.$clock.prototype.tick = function(ticks) {};
24
25 /**
26 * @param {string} desc
27 * @param {Function} f
28 */
29 QUnit.asyncTest = function(desc, f) {};
30
31 /**
32 * @param {*} a
33 * @param {*} b
34 */
35 QUnit.deepEqual = function(a, b) {};
36
37 /**
38 * @param {*} a
39 * @param {*} b
40 */
41 QUnit.equal = function(a, b) {};
42
43 /**
44 * @param {*} a
45 */
46 QUnit.expect = function(a) {};
47
48 /**
49 * @param {string} desc
50 * @param {Object=} dict
51 */
52 QUnit.module = function(desc, dict) {};
53
54 /**
55 * @param {*} a
56 * @param {*} b
57 * @param {string} desc
58 */
59 QUnit.notEqual = function(a, b, desc) {};
60
61 /**
62 * @param {boolean} cond
63 * @param {string=} desc
64 * @return {boolean}
65 */
66 QUnit.ok = function(cond, desc) {};
67
68 QUnit.start = function() {};
69
70 /**
71 * @param {string} desc
72 * @param {Function} f
73 */
74 QUnit.test = function(desc, f) {};
75
76 /** @param {Function} f */
77 QUnit.testStart = function(f) {};
78
79
80 var deepEqual = QUnit.deepEqual;
81 var equal = QUnit.equal;
82 var expect = QUnit.expect;
83 var module = QUnit.module;
84 var notEqual = QUnit.notEqual;
85 var ok = QUnit.ok;
86 var test = QUnit.test;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698