OLD | NEW |
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 cr.define('settings_people_page_change_picture', function() { | 5 cr.define('settings_people_page_change_picture', function() { |
6 /** | 6 /** |
7 * @constructor | 7 * @constructor |
8 * @implements {settings.ChangePictureBrowserProxy} | 8 * @implements {settings.ChangePictureBrowserProxy} |
9 * @extends {settings.TestBrowserProxy} | 9 * @extends {test.TestBrowserProxy} |
10 */ | 10 */ |
11 var TestChangePictureBrowserProxy = function() { | 11 var TestChangePictureBrowserProxy = function() { |
12 settings.TestBrowserProxy.call(this, [ | 12 test.TestBrowserProxy.call(this, [ |
13 'initialize', | 13 'initialize', |
14 'selectDefaultImage', | 14 'selectDefaultImage', |
15 'selectOldImage', | 15 'selectOldImage', |
16 'selectProfileImage', | 16 'selectProfileImage', |
17 'photoTaken', | 17 'photoTaken', |
18 'chooseFile', | 18 'chooseFile', |
19 ]); | 19 ]); |
20 }; | 20 }; |
21 | 21 |
22 TestChangePictureBrowserProxy.prototype = { | 22 TestChangePictureBrowserProxy.prototype = { |
23 __proto__: settings.TestBrowserProxy.prototype, | 23 __proto__: test.TestBrowserProxy.prototype, |
24 | 24 |
25 /** @override */ | 25 /** @override */ |
26 initialize: function() { | 26 initialize: function() { |
27 cr.webUIListenerCallback('profile-image-changed', | 27 cr.webUIListenerCallback('profile-image-changed', |
28 'fake-profile-image-url', | 28 'fake-profile-image-url', |
29 false /* selected */); | 29 false /* selected */); |
30 | 30 |
31 var fakeDefaultImages = [ | 31 var fakeDefaultImages = [ |
32 { | 32 { |
33 author: 'Author1', | 33 author: 'Author1', |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 }); | 238 }); |
239 }); | 239 }); |
240 } | 240 } |
241 | 241 |
242 return { | 242 return { |
243 registerTests: function() { | 243 registerTests: function() { |
244 registerChangePictureTests(); | 244 registerChangePictureTests(); |
245 }, | 245 }, |
246 }; | 246 }; |
247 }); | 247 }); |
OLD | NEW |