Index: remoting/webapp/unittests/spy_promise_unittest.js |
diff --git a/remoting/webapp/unittests/spy_promise_unittest.js b/remoting/webapp/unittests/spy_promise_unittest.js |
index 099ba09c78c2779dda43733d3ca98e084dfc3f6a..8071248a2042a6e114cc2b1975ed8b9fcf31b63c 100644 |
--- a/remoting/webapp/unittests/spy_promise_unittest.js |
+++ b/remoting/webapp/unittests/spy_promise_unittest.js |
@@ -30,9 +30,10 @@ function assertInitialState(/** QUnit.Assert */ assert) { |
} |
/** |
+ * @param {!QUnit.Assert} assert |
* @return {!Promise} |
*/ |
-function finish(/** QUnit.Assert */ assert) { |
+function finish(assert) { |
return base.SpyPromise.settleAll().then(function() { |
assert.equal( |
base.SpyPromise.unsettledCount, 0, |
@@ -143,11 +144,13 @@ QUnit.test('reject/catch', function(assert) { |
QUnit.test('all', function(assert) { |
var done = assert.async(); |
base.SpyPromise.all([Promise.resolve(1), Promise.resolve(2)]). |
- then(function(/**string*/ value) { |
- assert.equal(base.SpyPromise.unsettledCount, 0); |
- assert.deepEqual(value, [1, 2]); |
- done(); |
- }); |
+ then( |
+ /** @param {string} value */ |
+ function(value) { |
+ assert.equal(base.SpyPromise.unsettledCount, 0); |
+ assert.deepEqual(value, [1, 2]); |
+ done(); |
+ }); |
assert.equal(base.SpyPromise.unsettledCount, 1); |
return finish(assert); |
}); |