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

Side by Side Diff: remoting/webapp/js_proto/sinon_proto.js

Issue 1015043002: Add optional scopes parameter to Identity.getToken(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var sinon = sinon || {}; 5 var sinon = sinon || {};
6 6
7 /** @type {Object} */ 7 /** @type {Object} */
8 sinon.assert = {}; 8 sinon.assert = {};
9 9
10 /** 10 /**
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 /** @type {number} */ 80 /** @type {number} */
81 sinon.Spy.prototype.callCount; 81 sinon.Spy.prototype.callCount;
82 82
83 /** @type {boolean} */ 83 /** @type {boolean} */
84 sinon.Spy.prototype.called = false; 84 sinon.Spy.prototype.called = false;
85 85
86 /** @type {boolean} */ 86 /** @type {boolean} */
87 sinon.Spy.prototype.calledOnce = false; 87 sinon.Spy.prototype.calledOnce = false;
88 88
89 /** @type {boolean} */
90 sinon.Spy.prototype.calledTwice = false;
91
89 /** @type {function(...):boolean} */ 92 /** @type {function(...):boolean} */
90 sinon.Spy.prototype.calledWith = function() {}; 93 sinon.Spy.prototype.calledWith = function() {};
91 94
92 /** @type {function(number):{args:Array}} */ 95 /** @type {function(number):{args:Array}} */
93 sinon.Spy.prototype.getCall = function(index) {}; 96 sinon.Spy.prototype.getCall = function(index) {};
94 97
95 sinon.Spy.prototype.reset = function() {}; 98 sinon.Spy.prototype.reset = function() {};
96 99
97 sinon.Spy.prototype.restore = function() {}; 100 sinon.Spy.prototype.restore = function() {};
98 101
(...skipping 17 matching lines...) Expand all
116 sinon.TestStub.prototype.returns = function(a) {}; 119 sinon.TestStub.prototype.returns = function(a) {};
117 120
118 /** @type {function(...):sinon.Expectation} */ 121 /** @type {function(...):sinon.Expectation} */
119 sinon.TestStub.prototype.withArgs = function() {}; 122 sinon.TestStub.prototype.withArgs = function() {};
120 123
121 /** @type {function(...):sinon.Expectation} */ 124 /** @type {function(...):sinon.Expectation} */
122 sinon.TestStub.prototype.onFirstCall = function() {}; 125 sinon.TestStub.prototype.onFirstCall = function() {};
123 126
124 /** @returns {Object} */ 127 /** @returns {Object} */
125 sinon.createStubInstance = function (/** * */ constructor) {}; 128 sinon.createStubInstance = function (/** * */ constructor) {};
OLDNEW
« remoting/webapp/crd/js/identity_unittest.js ('K') | « remoting/webapp/js_proto/chrome_mocks.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698