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 /** @const {boolean} */ | 5 /** @const {boolean} */ |
6 var HARDWARE_ACCELERATION_AT_STARTUP = true; | 6 var HARDWARE_ACCELERATION_AT_STARTUP = true; |
7 | 7 |
8 /** | 8 /** |
9 * @constructor | 9 * @constructor |
10 * @extends {TestBrowserProxy} | 10 * @extends {TestBrowserProxy} |
11 * @implements {settings.SystemPageBrowserProxy} | 11 * @implements {settings.SystemPageBrowserProxy} |
12 */ | 12 */ |
13 function TestSystemPageBrowserProxy() { | 13 function TestSystemPageBrowserProxy() { |
14 settings.TestBrowserProxy.call(this, ['showProxySettings']); | 14 TestBrowserProxy.call(this, ['showProxySettings']); |
15 } | 15 } |
16 | 16 |
17 TestSystemPageBrowserProxy.prototype = { | 17 TestSystemPageBrowserProxy.prototype = { |
18 __proto__: settings.TestBrowserProxy.prototype, | 18 __proto__: TestBrowserProxy.prototype, |
19 | 19 |
20 /** @override */ | 20 /** @override */ |
21 showProxySettings: function() { | 21 showProxySettings: function() { |
22 this.methodCalled('showProxySettings'); | 22 this.methodCalled('showProxySettings'); |
23 }, | 23 }, |
24 | 24 |
25 /** @override */ | 25 /** @override */ |
26 wasHardwareAccelerationEnabledAtStartup: function() { | 26 wasHardwareAccelerationEnabledAtStartup: function() { |
27 return HARDWARE_ACCELERATION_AT_STARTUP; | 27 return HARDWARE_ACCELERATION_AT_STARTUP; |
28 }, | 28 }, |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 }); | 131 }); |
132 Polymer.dom.flush(); | 132 Polymer.dom.flush(); |
133 | 133 |
134 // When managed by policy directly, we disable the ability to show proxy | 134 // When managed by policy directly, we disable the ability to show proxy |
135 // settings. | 135 // settings. |
136 expectFalse(control.hasAttribute('actionable')); | 136 expectFalse(control.hasAttribute('actionable')); |
137 expectNotEquals(null, control.querySelector('cr-policy-pref-indicator')); | 137 expectNotEquals(null, control.querySelector('cr-policy-pref-indicator')); |
138 expectTrue(showProxyButton.hidden); | 138 expectTrue(showProxyButton.hidden); |
139 }); | 139 }); |
140 }); | 140 }); |
OLD | NEW |