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

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

Issue 1015553003: Added more typechecking functions and unit tests for existing code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file contains various hacks needed to inform JSCompiler of various 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 6 // QUnit-specific properties and methods. It is used only with JSCompiler to
7 // verify the type-correctness of our code. 7 // verify the type-correctness of our code.
8 8
9 9
10 /** @type {Object} */ 10 /** @type {Object} */
(...skipping 27 matching lines...) Expand all
38 38
39 /** 39 /**
40 * @param {*} a 40 * @param {*} a
41 * @param {*} b 41 * @param {*} b
42 * @param {string=} opt_message 42 * @param {string=} opt_message
43 */ 43 */
44 QUnit.equal = function(a, b, opt_message) {}; 44 QUnit.equal = function(a, b, opt_message) {};
45 45
46 /** 46 /**
47 * @param {*} a 47 * @param {*} a
48 * @param {*} b
49 * @param {string=} opt_message
50 */
51 QUnit.strictEqual = function(a, b, opt_message) {};
52
53 /**
54 * @param {Function} func
55 * @param {*=} opt_error
56 * @param {string=} opt_message
57 */
58 QUnit.throws = function(func, opt_error, opt_message) {};
59
60 /**
61 * @param {*} a
48 */ 62 */
49 QUnit.expect = function(a) {}; 63 QUnit.expect = function(a) {};
50 64
51 /** 65 /**
52 * @param {string} desc 66 * @param {string} desc
53 * @param {Object=} dict 67 * @param {Object=} dict
54 */ 68 */
55 QUnit.module = function(desc, dict) {}; 69 QUnit.module = function(desc, dict) {};
56 70
57 /** 71 /**
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 */ 103 */
90 QUnit.Assert.prototype.async = function() {}; 104 QUnit.Assert.prototype.async = function() {};
91 105
92 var deepEqual = QUnit.deepEqual; 106 var deepEqual = QUnit.deepEqual;
93 var equal = QUnit.equal; 107 var equal = QUnit.equal;
94 var expect = QUnit.expect; 108 var expect = QUnit.expect;
95 var module = QUnit.module; 109 var module = QUnit.module;
96 var notEqual = QUnit.notEqual; 110 var notEqual = QUnit.notEqual;
97 var ok = QUnit.ok; 111 var ok = QUnit.ok;
98 var test = QUnit.test; 112 var test = QUnit.test;
OLDNEW
« remoting/webapp/crd/js/typecheck_unittest.js ('K') | « remoting/webapp/crd/js/typecheck_unittest.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698