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

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

Issue 2912253003: MD Settings: Show all content settings in Site Details. (Closed)
Patch Set: Review comments. Created 3 years, 7 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/data/webui/settings/site_details_permission_tests.js ('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_details_tests.js
diff --git a/chrome/test/data/webui/settings/site_details_tests.js b/chrome/test/data/webui/settings/site_details_tests.js
index db9e3dec1ffafa0d7826f5181ecddedd7c2e34e4..f3afd9b65af2c6c53ec3c47c755e413606501961 100644
--- a/chrome/test/data/webui/settings/site_details_tests.js
+++ b/chrome/test/data/webui/settings/site_details_tests.js
@@ -115,55 +115,6 @@ suite('SiteDetails', function() {
document.body.appendChild(testElement);
});
- test('empty state', function() {
- var category = settings.ContentSettingsTypes.NOTIFICATIONS;
- var site = {
- origin: 'http://www.google.com',
- displayName: 'http://www.google.com',
- embeddingOrigin: '',
- };
- browserProxy.setPrefs(prefsEmpty);
- testElement.category = category;
- testElement.site = site
-
- // expect usage to not be rendered
- assertFalse(!!testElement.$$('#usage'));
-
- // TODO(finnur): Check for the Permission heading hiding when no
- // permissions are showing.
-
- var msg = 'No category should be showing, height';
- assertEquals(0, testElement.$.camera.offsetHeight, msg);
- assertEquals(0, testElement.$.cookies.offsetHeight, msg);
- assertEquals(0, testElement.$.geolocation.offsetHeight, msg);
- assertEquals(0, testElement.$.javascript.offsetHeight, msg);
- assertEquals(0, testElement.$.mic.offsetHeight, msg);
- assertEquals(0, testElement.$.notification.offsetHeight, msg);
- assertEquals(0, testElement.$.popups.offsetHeight, msg);
- });
-
- test('all categories visible', function() {
- var category = settings.ContentSettingsTypes.NOTIFICATIONS;
- var site = {
- origin: 'https://foo-allow.com:443',
- displayName: 'https://foo-allow.com:443',
- embeddingOrigin: '',
- };
-
- browserProxy.setPrefs(prefs);
- testElement.category = category;
- testElement.site = site;
-
- var msg = 'All categories should be showing';
- assertFalse(testElement.$.camera.hidden, msg);
- assertFalse(testElement.$.cookies.hidden, msg);
- assertFalse(testElement.$.geolocation.hidden, msg);
- assertFalse(testElement.$.javascript.hidden, msg);
- assertFalse(testElement.$.mic.hidden, msg);
- assertFalse(testElement.$.notification.hidden, msg);
- assertFalse(testElement.$.popups.hidden, msg);
- });
-
test('usage heading shows on storage available', function() {
// Remove the current website-usage-private-api element.
var parent = testElement.$.usageApi.parentNode;
« no previous file with comments | « chrome/test/data/webui/settings/site_details_permission_tests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698