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

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

Issue 1546993003: Site Settings: Give each category its own route. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback Created 4 years, 11 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/ui/webui/settings/md_settings_localized_strings_provider.cc ('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/site_settings_category_tests.js
diff --git a/chrome/test/data/webui/settings/site_settings_category_tests.js b/chrome/test/data/webui/settings/site_settings_category_tests.js
index 26a3c7b699f78b266bc1b76ffb26e6530d82f5a3..2aeee58d674d5bc2e946d3d567eabaf5714230e6 100644
--- a/chrome/test/data/webui/settings/site_settings_category_tests.js
+++ b/chrome/test/data/webui/settings/site_settings_category_tests.js
@@ -64,6 +64,32 @@ cr.define('site_settings_category', function() {
MockInteractions.tap(testElement.$.toggle);
assertTrue(testElement.categoryEnabled);
});
+
+ test('basic category tests', function() {
+ for (var key in settings.ContentSettingsTypes) {
+ var category = settings.ContentSettingsTypes[key];
+
+ // All categories have a textId, an icon, a title, and pref names.
+ assertNotEquals('', testElement.computeCategoryTextId(category));
+ assertNotEquals(
+ '', testElement.computeIconForContentCategory(category));
+ assertNotEquals(
+ '', testElement.computeTitleForContentCategory(category));
+ assertNotEquals(
+ '', testElement.computeCategoryPrefName(category));
+ assertNotEquals(
+ '', testElement.computeCategoryExceptionsPrefName(category));
+
+ assertNotEquals(
+ '', testElement.computeCategoryDesc(category, true, true));
+ assertNotEquals(
+ '', testElement.computeCategoryDesc(category, true, false));
+ assertNotEquals(
+ '', testElement.computeCategoryDesc(category, false, true));
+ assertNotEquals(
+ '', testElement.computeCategoryDesc(category, false, false));
+ }
+ });
});
}
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698