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

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

Issue 2854753002: [MD settings] clear incognito only checkbox (Closed)
Patch Set: review changes Created 3 years, 8 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
Index: chrome/test/data/webui/settings/site_list_tests.js
diff --git a/chrome/test/data/webui/settings/site_list_tests.js b/chrome/test/data/webui/settings/site_list_tests.js
index 76c91c9c8320d49e57c0800e67ef2e69b5461a16..179879f46acdd4b0c3ad6394c9e9695aaae92417 100644
--- a/chrome/test/data/webui/settings/site_list_tests.js
+++ b/chrome/test/data/webui/settings/site_list_tests.js
@@ -1161,12 +1161,26 @@ cr.define('site_list', function() {
dialog.category = settings.ContentSettingsTypes.GEOLOCATION;
dialog.contentSetting = settings.PermissionValues.ALLOW;
document.body.appendChild(dialog);
+ dialog.open();
});
teardown(function() {
dialog.remove();
});
+ test('incognito', function() {
+ cr.webUIListenerCallback(
+ 'onIncognitoStatusChanged',
+ /*hasIncognito=*/true);
+ assertFalse(dialog.$.incognito.checked);
+ dialog.$.incognito.checked = true;
+ // Changing the incognito status will reset the checkbox.
+ cr.webUIListenerCallback(
+ 'onIncognitoStatusChanged',
+ /*hasIncognito=*/false);
+ assertFalse(dialog.$.incognito.checked);
+ });
+
test('invalid input', function() {
// Initially the action button should be disabled, but the error warning
// should not be shown for an empty input.

Powered by Google App Engine
This is Rietveld 408576698