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

Unified Diff: remoting/webapp/js_proto/qunit_proto.js

Issue 1017613002: Migrate Remoting Webapp Unittests to use QUnit 2.0 syntax. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Migrate to assert 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 side-by-side diff with in-line comments
Download patch
Index: remoting/webapp/js_proto/qunit_proto.js
diff --git a/remoting/webapp/js_proto/qunit_proto.js b/remoting/webapp/js_proto/qunit_proto.js
index 8eb96452f3a29176ff3393156f14a0fbad227fb6..2b2816c1896235ffd441b1fbcc166f14e9c52a34 100644
--- a/remoting/webapp/js_proto/qunit_proto.js
+++ b/remoting/webapp/js_proto/qunit_proto.js
@@ -22,77 +22,68 @@ QUnit.Clock = function() {};
/** @param {number} ticks */
QUnit.Clock.prototype.tick = function(ticks) {};
+/** @param {Function} f */
+QUnit.testStart = function(f) {};
/**
- * @param {string} desc
- * @param {Function} f
+ * @interface
*/
-QUnit.asyncTest = function(desc, f) {};
+QUnit.Assert = function() {};
/**
- * @param {*} a
- * @param {*} b
- * @param {string=} opt_message
+ * @return {function():void}
*/
-QUnit.deepEqual = function(a, b, opt_message) {};
+QUnit.Assert.prototype.async = function() {};
/**
* @param {*} a
* @param {*} b
- * @param {string=} opt_message
+ * @param {string=} opt_desc
*/
-QUnit.equal = function(a, b, opt_message) {};
+QUnit.Assert.prototype.notEqual = function(a, b, opt_desc) {};
/**
- * @param {*} a
+ * @param {boolean} cond
+ * @param {string=} desc
+ * @return {boolean}
*/
-QUnit.expect = function(a) {};
+QUnit.Assert.prototype.ok = function(cond, desc) {};
/**
- * @param {string} desc
- * @param {Object=} dict
+ * @param {*} a
+ * @param {*} b
+ * @param {string=} opt_message
*/
-QUnit.module = function(desc, dict) {};
+QUnit.Assert.prototype.deepEqual = function(a, b, opt_message) {};
/**
* @param {*} a
* @param {*} b
- * @param {string=} opt_desc
+ * @param {string=} opt_message
*/
-QUnit.notEqual = function(a, b, opt_desc) {};
+QUnit.Assert.prototype.equal = function(a, b, opt_message) {};
/**
- * @param {boolean} cond
- * @param {string=} desc
- * @return {boolean}
+ * @param {number} assertionCount
*/
-QUnit.ok = function(cond, desc) {};
-
-QUnit.start = function() {};
+QUnit.Assert.prototype.expect = function(assertionCount) {};
/**
- * @param {string} desc
- * @param {Function} f
+ * @typedef {{
+ * beforeEach: (function(QUnit.Assert=) | undefined),
+ * afterEach: (function(QUnit.Assert=) | undefined)
+ * }}
*/
-QUnit.test = function(desc, f) {};
-
-/** @param {Function} f */
-QUnit.testStart = function(f) {};
+QUnit.ModuleArgs;
/**
- * @interface
+ * @param {string} desc
+ * @param {QUnit.ModuleArgs=} opt_args=
*/
-QUnit.Assert = function() {};
+QUnit.module = function(desc, opt_args) {};
/**
- * @return {function():void}
+ * @param {string} desc
+ * @param {function(QUnit.Assert)} f
*/
-QUnit.Assert.prototype.async = function() {};
-
-var deepEqual = QUnit.deepEqual;
-var equal = QUnit.equal;
-var expect = QUnit.expect;
-var module = QUnit.module;
-var notEqual = QUnit.notEqual;
-var ok = QUnit.ok;
-var test = QUnit.test;
+QUnit.test = function(desc, f) {};
« no previous file with comments | « remoting/webapp/crd/js/xmpp_stream_parser_unittest.js ('k') | remoting/webapp/unittests/spy_promise_unittest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698