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

Side by Side Diff: chrome/test/data/webui/settings/cr_settings_browsertest.js

Issue 2686063004: MD Settings: make blowing away per-origin data (i.e. cookies) easier (Closed)
Patch Set: dschuyler@ review Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** @fileoverview Runs the Polymer Settings tests. */ 5 /** @fileoverview Runs the Polymer Settings tests. */
6 6
7 /** @const {string} Path to source root. */ 7 /** @const {string} Path to source root. */
8 var ROOT_PATH = '../../../../../'; 8 var ROOT_PATH = '../../../../../';
9 9
10 // Polymer BrowserTest fixture. 10 // Polymer BrowserTest fixture.
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 function CrSettingsSiteSettingsTest() {} 702 function CrSettingsSiteSettingsTest() {}
703 703
704 CrSettingsSiteSettingsTest.prototype = { 704 CrSettingsSiteSettingsTest.prototype = {
705 __proto__: CrSettingsBrowserTest.prototype, 705 __proto__: CrSettingsBrowserTest.prototype,
706 706
707 /** @override */ 707 /** @override */
708 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', 708 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html',
709 709
710 /** @override */ 710 /** @override */
711 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ 711 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([
712 // TODO(dbeam): split these up.
712 'category_default_setting_tests.js', 713 'category_default_setting_tests.js',
713 'category_setting_exceptions_tests.js', 714 'category_setting_exceptions_tests.js',
714 'site_details_tests.js', 715 'site_details_tests.js',
715 'site_details_permission_tests.js', 716 'site_details_permission_tests.js',
716 'site_list_tests.js', 717 'site_list_tests.js',
717 'test_browser_proxy.js', 718 'test_browser_proxy.js',
718 'test_site_settings_prefs_browser_proxy.js', 719 'test_site_settings_prefs_browser_proxy.js',
719 'zoom_levels_tests.js', 720 'zoom_levels_tests.js',
720 'usb_devices_tests.js', 721 'usb_devices_tests.js',
721 'protocol_handlers_tests.js', 722 'protocol_handlers_tests.js',
722 'site_data_details_subpage_tests.js', 723 'site_data_details_subpage_tests.js',
723 ]), 724 ]),
724 }; 725 };
725 726
726 TEST_F('CrSettingsSiteSettingsTest', 'SiteSettings', function() { 727 TEST_F('CrSettingsSiteSettingsTest', 'SiteSettings', function() {
727 category_default_setting.registerTests(); 728 category_default_setting.registerTests();
728 category_setting_exceptions.registerTests(); 729 category_setting_exceptions.registerTests();
729 site_details.registerTests(); 730 site_details.registerTests();
730 site_details_permission.registerTests(); 731 site_details_permission.registerTests();
731 site_list.registerTests(); 732 site_list.registerTests();
732 zoom_levels.registerTests(); 733 zoom_levels.registerTests();
733 usb_devices.registerTests(); 734 usb_devices.registerTests();
734 protocol_handlers.registerTests(); 735 protocol_handlers.registerTests();
735 736
736 mocha.run(); 737 mocha.run();
737 }); 738 });
738 739
740 /**
741 * @constructor
742 * @extends {CrSettingsBrowserTest}
743 */
744 function CrSettingsSiteDataTest() {}
745
746 CrSettingsSiteDataTest.prototype = {
747 __proto__: CrSettingsBrowserTest.prototype,
748
749 browsePreload: 'chrome://md-settings/site_settings/site_data.html',
750
751 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([
752 'test_browser_proxy.js',
753 'test_site_settings_prefs_browser_proxy.js',
754 'site_data_test.js',
755 ]),
756 };
757
758 TEST_F('CrSettingsSiteDataTest', 'All', function() {
759 mocha.run();
760 });
761
739 GEN('#if defined(OS_CHROMEOS)'); 762 GEN('#if defined(OS_CHROMEOS)');
740 /** 763 /**
741 * Test fixture for device-page. 764 * Test fixture for device-page.
742 * @constructor 765 * @constructor
743 * @extends {CrSettingsBrowserTest} 766 * @extends {CrSettingsBrowserTest}
744 */ 767 */
745 function CrSettingsDevicePageTest() {} 768 function CrSettingsDevicePageTest() {}
746 769
747 CrSettingsDevicePageTest.prototype = { 770 CrSettingsDevicePageTest.prototype = {
748 __proto__: CrSettingsBrowserTest.prototype, 771 __proto__: CrSettingsBrowserTest.prototype,
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
1257 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ 1280 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([
1258 'test_browser_proxy.js', 1281 'test_browser_proxy.js',
1259 'test_extension_control_browser_proxy.js', 1282 'test_extension_control_browser_proxy.js',
1260 'extension_controlled_indicator_tests.js', 1283 'extension_controlled_indicator_tests.js',
1261 ]), 1284 ]),
1262 }; 1285 };
1263 1286
1264 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { 1287 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() {
1265 mocha.run(); 1288 mocha.run();
1266 }); 1289 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/site_settings/site_data.js ('k') | chrome/test/data/webui/settings/site_data_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698