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

Unified Diff: remoting/webapp/unittests/ipc_unittest.js

Issue 959963002: [Chromoting] Enable jscompile for webapp unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix key tester 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 side-by-side diff with in-line comments
Download patch
Index: remoting/webapp/unittests/ipc_unittest.js
diff --git a/remoting/webapp/unittests/ipc_unittest.js b/remoting/webapp/unittests/ipc_unittest.js
index 9434cabe97c3adcc2aa5dfaf37aac2c54f6b9173..e786147e50933e2f64e4e70155cbb72b0d6f3644 100644
--- a/remoting/webapp/unittests/ipc_unittest.js
+++ b/remoting/webapp/unittests/ipc_unittest.js
@@ -6,6 +6,7 @@
'use strict';
+/** @type {base.Ipc} */
var ipc_;
function pass() {
@@ -62,7 +63,7 @@ QUnit.asyncTest(
function() {
var handler = sinon.spy();
ipc_.register('foo', handler);
- ipc_.unregister('foo', handler);
+ ipc_.unregister('foo');
base.Ipc.invoke('foo', 'hello', 'world').then(fail, function(error) {
sinon.assert.notCalled(handler);
QUnit.equal(error, base.Ipc.Error.UNSUPPORTED_REQUEST_TYPE);

Powered by Google App Engine
This is Rietveld 408576698