| 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.
|
|
|