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

Side by Side Diff: chrome/test/data/webui/settings/fingerprint_browsertest_chromeos.js

Issue 2927653002: WebUI: Move test_browser_proxy.js one level up. (Closed)
Patch Set: Remove namespace Created 3 years, 6 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 /** 5 /**
6 * @constructor 6 * @constructor
7 * @implements {settings.FingerprintBrowserProxy} 7 * @implements {settings.FingerprintBrowserProxy}
8 * @extends {settings.TestBrowserProxy} 8 * @extends {TestBrowserProxy}
9 */ 9 */
10 var TestFingerprintBrowserProxy = function() { 10 var TestFingerprintBrowserProxy = function() {
11 settings.TestBrowserProxy.call(this, [ 11 TestBrowserProxy.call(this, [
12 'getFingerprintsList', 12 'getFingerprintsList',
13 'getNumFingerprints', 13 'getNumFingerprints',
14 'startEnroll', 14 'startEnroll',
15 'cancelCurrentEnroll', 15 'cancelCurrentEnroll',
16 'getEnrollmentLabel', 16 'getEnrollmentLabel',
17 'removeEnrollment', 17 'removeEnrollment',
18 'changeEnrollmentLabel', 18 'changeEnrollmentLabel',
19 'startAuthentication', 19 'startAuthentication',
20 'endCurrentAuthentication', 20 'endCurrentAuthentication',
21 ]); 21 ]);
22 22
23 /** @private {!Array<string>} */ 23 /** @private {!Array<string>} */
24 this.fingerprintsList_ = []; 24 this.fingerprintsList_ = [];
25 }; 25 };
26 26
27 TestFingerprintBrowserProxy.prototype = { 27 TestFingerprintBrowserProxy.prototype = {
28 __proto__: settings.TestBrowserProxy.prototype, 28 __proto__: TestBrowserProxy.prototype,
29 29
30 /** @ param {!Array<string>} fingerprints */ 30 /** @ param {!Array<string>} fingerprints */
31 setFingerprints: function(fingerprints) { 31 setFingerprints: function(fingerprints) {
32 this.fingerprintsList_ = fingerprints.slice(); 32 this.fingerprintsList_ = fingerprints.slice();
33 }, 33 },
34 34
35 /** 35 /**
36 * @param {settings.FingerprintResultType} result 36 * @param {settings.FingerprintResultType} result
37 * @param {boolean} complete 37 * @param {boolean} complete
38 */ 38 */
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 return Promise.all([ 301 return Promise.all([
302 browserProxy.whenCalled('removeEnrollment'), 302 browserProxy.whenCalled('removeEnrollment'),
303 browserProxy.whenCalled('getFingerprintsList')]); 303 browserProxy.whenCalled('getFingerprintsList')]);
304 }).then(function() { 304 }).then(function() {
305 assertEquals(4, fingerprintList.fingerprints_.length); 305 assertEquals(4, fingerprintList.fingerprints_.length);
306 assertFalse( 306 assertFalse(
307 fingerprintList.$$('.action-button').disabled); 307 fingerprintList.$$('.action-button').disabled);
308 }); 308 });
309 }); 309 });
310 }); 310 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698