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

Side by Side Diff: remoting/webapp/unittests/sinon_helpers.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, 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
(Empty)
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
3 // found in the LICENSE file.
4
5 var sinonHelpers = {};
6
7 sinonHelpers.reset = function() {
8
9 /**
10 * @param {Object} obj
11 * @param {string} method
12 * @return {sinon.TestStub}
13 * @suppress {reportUnknownTypes}
14 */
15 sinon.$setupStub = function(obj, method) {
16 sinon.stub(obj, method);
17 obj[method].$testStub = /** @type {sinon.TestStub} */ (obj[method]);
18 return obj[method].$testStub;
19 };
20
21 };
OLDNEW
« no previous file with comments | « remoting/webapp/unittests/mock_signal_strategy.js ('k') | remoting/webapp/unittests/test_start.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698