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

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

Issue 2682423002: [MD settings] change menu and domain icons (Closed)
Patch Set: updated comment Created 3 years, 10 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 cr.define('settings_about_page', function() { 5 cr.define('settings_about_page', function() {
6 /** 6 /**
7 * @constructor 7 * @constructor
8 * @implements {settings.AboutPageBrowserProxy} 8 * @implements {settings.AboutPageBrowserProxy}
9 * @extends {settings.TestBrowserProxy} 9 * @extends {settings.TestBrowserProxy}
10 */ 10 */
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 previousMessageText = statusMessageEl.textContent; 234 previousMessageText = statusMessageEl.textContent;
235 235
236 fireStatusChanged(UpdateStatus.NEARLY_UPDATED); 236 fireStatusChanged(UpdateStatus.NEARLY_UPDATED);
237 assertEquals(null, icon.src); 237 assertEquals(null, icon.src);
238 assertEquals('settings:check-circle', icon.icon); 238 assertEquals('settings:check-circle', icon.icon);
239 assertNotEquals(previousMessageText, statusMessageEl.textContent); 239 assertNotEquals(previousMessageText, statusMessageEl.textContent);
240 previousMessageText = statusMessageEl.textContent; 240 previousMessageText = statusMessageEl.textContent;
241 241
242 fireStatusChanged(UpdateStatus.DISABLED_BY_ADMIN); 242 fireStatusChanged(UpdateStatus.DISABLED_BY_ADMIN);
243 assertEquals(null, icon.src); 243 assertEquals(null, icon.src);
244 assertEquals('cr:domain', icon.icon); 244 assertEquals('cr20:domain', icon.icon);
245 assertEquals(0, statusMessageEl.textContent.trim().length); 245 assertEquals(0, statusMessageEl.textContent.trim().length);
246 246
247 fireStatusChanged(UpdateStatus.FAILED); 247 fireStatusChanged(UpdateStatus.FAILED);
248 assertEquals(null, icon.src); 248 assertEquals(null, icon.src);
249 assertEquals('settings:error', icon.icon); 249 assertEquals('settings:error', icon.icon);
250 assertEquals(0, statusMessageEl.textContent.trim().length); 250 assertEquals(0, statusMessageEl.textContent.trim().length);
251 251
252 fireStatusChanged(UpdateStatus.DISABLED); 252 fireStatusChanged(UpdateStatus.DISABLED);
253 assertEquals(null, icon.src); 253 assertEquals(null, icon.src);
254 assertEquals(null, icon.getAttribute('icon')); 254 assertEquals(null, icon.getAttribute('icon'));
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 registerTests: function() { 851 registerTests: function() {
852 if (cr.isChromeOS) { 852 if (cr.isChromeOS) {
853 registerDetailedBuildInfoTests(); 853 registerDetailedBuildInfoTests();
854 registerChannelSwitcherDialogTests(); 854 registerChannelSwitcherDialogTests();
855 } 855 }
856 registerAboutPageTests(); 856 registerAboutPageTests();
857 }, 857 },
858 registerOfficialBuildTests: registerOfficialBuildTests, 858 registerOfficialBuildTests: registerOfficialBuildTests,
859 }; 859 };
860 }); 860 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698