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

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

Issue 2193953002: MD Settings: Remove unused settings.main.rendered global variable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit. Created 4 years, 4 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
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cr.define('settings_privacy_page', function() { 5 cr.define('settings_privacy_page', function() {
6 /** 6 /**
7 * @constructor 7 * @constructor
8 * @extends {TestBrowserProxy} 8 * @extends {TestBrowserProxy}
9 * @implements {settings.PrivacyPageBrowserProxy} 9 * @implements {settings.PrivacyPageBrowserProxy}
10 */ 10 */
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 }; 65 };
66 66
67 function registerNativeCertificateManagerTests() { 67 function registerNativeCertificateManagerTests() {
68 suite('NativeCertificateManager', function() { 68 suite('NativeCertificateManager', function() {
69 /** @type {settings.TestPrivacyPageBrowserProxy} */ 69 /** @type {settings.TestPrivacyPageBrowserProxy} */
70 var testBrowserProxy; 70 var testBrowserProxy;
71 71
72 /** @type {SettingsPrivacyPageElement} */ 72 /** @type {SettingsPrivacyPageElement} */
73 var page; 73 var page;
74 74
75 suiteSetup(function() {
76 settings.main.rendered = Promise.resolve();
77 });
78
79 setup(function() { 75 setup(function() {
80 testBrowserProxy = new TestPrivacyPageBrowserProxy(); 76 testBrowserProxy = new TestPrivacyPageBrowserProxy();
81 settings.PrivacyPageBrowserProxyImpl.instance_ = testBrowserProxy; 77 settings.PrivacyPageBrowserProxyImpl.instance_ = testBrowserProxy;
82 PolymerTest.clearBody(); 78 PolymerTest.clearBody();
83 page = document.createElement('settings-privacy-page'); 79 page = document.createElement('settings-privacy-page');
84 document.body.appendChild(page); 80 document.body.appendChild(page);
85 }); 81 });
86 82
87 teardown(function() { page.remove(); }); 83 teardown(function() { page.remove(); });
88 84
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 227
232 return { 228 return {
233 registerTests: function() { 229 registerTests: function() {
234 if (cr.isMac || cr.isWin) 230 if (cr.isMac || cr.isWin)
235 registerNativeCertificateManagerTests(); 231 registerNativeCertificateManagerTests();
236 232
237 registerClearBrowsingDataTests(); 233 registerClearBrowsingDataTests();
238 }, 234 },
239 }; 235 };
240 }); 236 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698