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

Unified Diff: chrome/test/data/webui/settings/zoom_levels_tests.js

Issue 2757333003: MD Settings: Restore message shown when no "zoom" exceptions exist. (Closed)
Patch Set: Add test. Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/settings/site_settings/zoom_levels.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/settings/zoom_levels_tests.js
diff --git a/chrome/test/data/webui/settings/zoom_levels_tests.js b/chrome/test/data/webui/settings/zoom_levels_tests.js
index 82d79ff13f257abfcc75ce6f5b1de172e99e4c23..3ac5a41726cdc16f47c16eaf093a85615ccb3f3d 100644
--- a/chrome/test/data/webui/settings/zoom_levels_tests.js
+++ b/chrome/test/data/webui/settings/zoom_levels_tests.js
@@ -75,6 +75,9 @@ cr.define('zoom_levels', function() {
var list = testElement.$.list;
assertTrue(!!list);
assertEquals(0, list.items.length);
+ assertEquals(
+ 0, testElement.shadowRoot.querySelectorAll('.list-item').length);
+ assertTrue(!!testElement.$$('#empty'));
});
test('non-empty zoom state', function() {
@@ -84,6 +87,9 @@ cr.define('zoom_levels', function() {
var list = testElement.$.list;
assertTrue(!!list);
assertEquals(2, list.items.length);
+ assertFalse(!!testElement.$$('#empty'));
+ assertEquals(
+ 2, testElement.shadowRoot.querySelectorAll('.list-item').length);
var removeButton =
getRemoveButton(testElement.$.listContainer, 0);
« no previous file with comments | « chrome/browser/resources/settings/site_settings/zoom_levels.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698