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

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

Issue 2927653002: WebUI: Move test_browser_proxy.js one level up. (Closed)
Patch Set: 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 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}
rbpotter 2017/06/07 00:32:01 Same here.
dpapad 2017/06/07 00:42:54 Done.
11 * @implements {settings.SystemPageBrowserProxy} 11 * @implements {settings.SystemPageBrowserProxy}
12 */ 12 */
13 function TestSystemPageBrowserProxy() { 13 function TestSystemPageBrowserProxy() {
14 settings.TestBrowserProxy.call(this, ['showProxySettings']); 14 test.TestBrowserProxy.call(this, ['showProxySettings']);
15 } 15 }
16 16
17 TestSystemPageBrowserProxy.prototype = { 17 TestSystemPageBrowserProxy.prototype = {
18 __proto__: settings.TestBrowserProxy.prototype, 18 __proto__: test.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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698