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

Unified Diff: remoting/webapp/unittests/xmpp_stream_parser_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
« no previous file with comments | « remoting/webapp/unittests/xmpp_login_handler_unittest.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/unittests/xmpp_stream_parser_unittest.js
diff --git a/remoting/webapp/unittests/xmpp_stream_parser_unittest.js b/remoting/webapp/unittests/xmpp_stream_parser_unittest.js
index 21a972e9bd0ba7f90137005bb2e2723b33cdd089..ec6cc4530a7a9e2568bea9cc7ee12cc270e8de4b 100644
--- a/remoting/webapp/unittests/xmpp_stream_parser_unittest.js
+++ b/remoting/webapp/unittests/xmpp_stream_parser_unittest.js
@@ -6,14 +6,20 @@
'use strict';
+/** @type {Function} */
var onStanzaStr = null;
-var onError = null;
+
+/** @type {function(string):void} */
+var onError = function(msg) {};
+
+/** @type {remoting.XmppStreamParser} */
var parser = null;
module('XmppStreamParser', {
setup: function() {
onStanzaStr = sinon.spy();
- onError = sinon.spy();
+ onError = /** @type {function(string):void} */ (sinon.spy());
+ /** @param {Element} stanza */
function onStanza(stanza) {
onStanzaStr(new XMLSerializer().serializeToString(stanza));
}
« no previous file with comments | « remoting/webapp/unittests/xmpp_login_handler_unittest.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698