Chromium Code Reviews| 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(); |
|
dpapad
2017/05/02 00:36:34
add-site-dialog#open method expects a |type| param
dschuyler
2017/05/02 01:05:22
Done.
|
| }); |
| teardown(function() { |
| dialog.remove(); |
| }); |
| + test('incognito', function() { |
| + cr.webUIListenerCallback( |
| + 'onIncognitoStatusChanged', |
| + /*hasIncognito=*/true); |
|
dpapad
2017/05/02 00:36:34
Can we remove the "=" part of the comment? "=" is
dschuyler
2017/05/02 01:05:22
It's part of the C++ style guide (and I find it re
|
| + 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. |