OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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.AndroidAppsBrowserProxy} | 7 * @implements {settings.AndroidAppsBrowserProxy} |
8 * @extends {settings.TestBrowserProxy} | 8 * @extends {test.TestBrowserProxy} |
9 */ | 9 */ |
10 function TestAndroidAppsBrowserProxy() { | 10 function TestAndroidAppsBrowserProxy() { |
11 settings.TestBrowserProxy.call(this, [ | 11 test.TestBrowserProxy.call(this, [ |
12 'requestAndroidAppsInfo', | 12 'requestAndroidAppsInfo', |
13 'showAndroidAppsSettings', | 13 'showAndroidAppsSettings', |
14 ]); | 14 ]); |
15 } | 15 } |
16 | 16 |
17 TestAndroidAppsBrowserProxy.prototype = { | 17 TestAndroidAppsBrowserProxy.prototype = { |
18 __proto__: settings.TestBrowserProxy.prototype, | 18 __proto__: test.TestBrowserProxy.prototype, |
19 | 19 |
20 /** @override */ | 20 /** @override */ |
21 requestAndroidAppsInfo: function() { | 21 requestAndroidAppsInfo: function() { |
22 this.methodCalled('requestAndroidAppsInfo'); | 22 this.methodCalled('requestAndroidAppsInfo'); |
23 this.setAndroidAppsState(false, false); | 23 this.setAndroidAppsState(false, false); |
24 }, | 24 }, |
25 | 25 |
26 /** override */ | 26 /** override */ |
27 showAndroidAppsSettings: function(keyboardAction) { | 27 showAndroidAppsSettings: function(keyboardAction) { |
28 this.methodCalled('showAndroidAppsSettings'); | 28 this.methodCalled('showAndroidAppsSettings'); |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 }); | 178 }); |
179 }); | 179 }); |
180 | 180 |
181 test('Sanity', function() { | 181 test('Sanity', function() { |
182 Polymer.dom.flush(); | 182 Polymer.dom.flush(); |
183 assertTrue(!!subpage.$$('#manageApps')); | 183 assertTrue(!!subpage.$$('#manageApps')); |
184 assertFalse(!!subpage.$$('#remove')); | 184 assertFalse(!!subpage.$$('#remove')); |
185 }); | 185 }); |
186 }); | 186 }); |
187 }); | 187 }); |
OLD | NEW |