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

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

Issue 2659833002: [MD settings] Data driven content setting subtext (Closed)
Patch Set: unit tests Created 3 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/test/BUILD.gn ('k') | chrome/test/data/webui/settings/site_settings_page_browsertest.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/settings/category_default_setting_tests.js
diff --git a/chrome/test/data/webui/settings/category_default_setting_tests.js b/chrome/test/data/webui/settings/category_default_setting_tests.js
index 58a8b071e15ba92fc46b954de56a287a2b33190d..ecd69ce5f74bf8d27a271f8e60c237bce398ef13 100644
--- a/chrome/test/data/webui/settings/category_default_setting_tests.js
+++ b/chrome/test/data/webui/settings/category_default_setting_tests.js
@@ -135,49 +135,6 @@ cr.define('category_default_setting', function() {
return testCategoryEnabled(testElement, false);
});
- test('basic category tests', function() {
- for (var key in settings.ContentSettingsTypes) {
- var category = settings.ContentSettingsTypes[key];
-
- // A quick testing note on a few special categories...
-
- // The USB Devices category has no global toggle -- and therefore no
- // Category Desc (and has a special way of storing its data).
-
- // The Protocol Handlers is a special category in that is does not
- // store its data like the rest, but it has a global default toggle
- // and therefore can be tested like the rest below.
-
- // Test category text ids and descriptions for those categories that
- // have those.
- if (category != settings.ContentSettingsTypes.USB_DEVICES &&
- category != settings.ContentSettingsTypes.ZOOM_LEVELS) {
- assertNotEquals('', testElement.computeCategoryDesc(
- category, settings.PermissionValues.ALLOW, true));
- assertNotEquals('', testElement.computeCategoryDesc(
- category, settings.PermissionValues.ALLOW, false));
- assertNotEquals('', testElement.computeCategoryDesc(
- category, settings.PermissionValues.BLOCK, true));
- assertNotEquals('', testElement.computeCategoryDesc(
- category, settings.PermissionValues.BLOCK, false));
-
- // Test additional tri-state values:
- if (category == settings.ContentSettingsTypes.PLUGINS) {
- assertNotEquals('', testElement.computeCategoryDesc(
- category, settings.PermissionValues.IMPORTANT_CONTENT, true));
- assertNotEquals('', testElement.computeCategoryDesc(
- category, settings.PermissionValues.IMPORTANT_CONTENT,
- false));
- } else if (category == settings.ContentSettingsTypes.COOKIES) {
- assertNotEquals('', testElement.computeCategoryDesc(
- category, settings.PermissionValues.SESSION_ONLY, true));
- assertNotEquals('', testElement.computeCategoryDesc(
- category, settings.PermissionValues.SESSION_ONLY, false));
- }
- }
- }
- });
-
function testTristateCategory(prefs, category, thirdState,
secondaryToggleId) {
browserProxy.setPrefs(prefs);
« no previous file with comments | « chrome/test/BUILD.gn ('k') | chrome/test/data/webui/settings/site_settings_page_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698