| OLD | NEW |
| 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 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 // TODO(dbeam): split these up. | 798 // TODO(dbeam): split these up. |
| 799 'category_default_setting_tests.js', | 799 'category_default_setting_tests.js', |
| 800 'category_setting_exceptions_tests.js', | 800 'category_setting_exceptions_tests.js', |
| 801 'site_details_tests.js', | 801 'site_details_tests.js', |
| 802 'site_details_permission_tests.js', | 802 'site_details_permission_tests.js', |
| 803 'site_list_tests.js', | 803 'site_list_tests.js', |
| 804 'test_browser_proxy.js', | 804 'test_browser_proxy.js', |
| 805 'test_site_settings_prefs_browser_proxy.js', | 805 'test_site_settings_prefs_browser_proxy.js', |
| 806 'zoom_levels_tests.js', | 806 'zoom_levels_tests.js', |
| 807 'usb_devices_tests.js', | 807 'usb_devices_tests.js', |
| 808 'protocol_handlers_tests.js', | |
| 809 'site_data_details_subpage_tests.js', | 808 'site_data_details_subpage_tests.js', |
| 810 ]), | 809 ]), |
| 811 }; | 810 }; |
| 812 | 811 |
| 813 TEST_F('CrSettingsSiteSettingsTest', 'SiteSettings', function() { | 812 TEST_F('CrSettingsSiteSettingsTest', 'SiteSettings', function() { |
| 814 category_default_setting.registerTests(); | 813 category_default_setting.registerTests(); |
| 815 category_setting_exceptions.registerTests(); | 814 category_setting_exceptions.registerTests(); |
| 816 site_details.registerTests(); | 815 site_details.registerTests(); |
| 817 site_details_permission.registerTests(); | 816 site_details_permission.registerTests(); |
| 818 site_list.registerTests(); | 817 site_list.registerTests(); |
| 819 zoom_levels.registerTests(); | 818 zoom_levels.registerTests(); |
| 820 usb_devices.registerTests(); | 819 usb_devices.registerTests(); |
| 821 protocol_handlers.registerTests(); | |
| 822 | 820 |
| 823 mocha.run(); | 821 mocha.run(); |
| 824 }); | 822 }); |
| 825 | 823 |
| 826 /** | 824 /** |
| 827 * @constructor | 825 * @constructor |
| 828 * @extends {CrSettingsBrowserTest} | 826 * @extends {CrSettingsBrowserTest} |
| 829 */ | 827 */ |
| 828 function CrSettingsProtocolHandlersTest() {} |
| 829 |
| 830 CrSettingsProtocolHandlersTest.prototype = { |
| 831 __proto__: CrSettingsBrowserTest.prototype, |
| 832 |
| 833 /** @override */ |
| 834 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
| 835 |
| 836 /** @override */ |
| 837 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 838 'test_browser_proxy.js', |
| 839 'test_site_settings_prefs_browser_proxy.js', |
| 840 'protocol_handlers_tests.js', |
| 841 ]), |
| 842 }; |
| 843 |
| 844 TEST_F('CrSettingsProtocolHandlersTest', 'ProtocolHandlers', function() { |
| 845 mocha.run(); |
| 846 }); |
| 847 |
| 848 /** |
| 849 * @constructor |
| 850 * @extends {CrSettingsBrowserTest} |
| 851 */ |
| 830 function CrSettingsSiteDataTest() {} | 852 function CrSettingsSiteDataTest() {} |
| 831 | 853 |
| 832 CrSettingsSiteDataTest.prototype = { | 854 CrSettingsSiteDataTest.prototype = { |
| 833 __proto__: CrSettingsBrowserTest.prototype, | 855 __proto__: CrSettingsBrowserTest.prototype, |
| 834 | 856 |
| 835 browsePreload: 'chrome://md-settings/site_settings/site_data.html', | 857 browsePreload: 'chrome://md-settings/site_settings/site_data.html', |
| 836 | 858 |
| 837 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 859 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 838 'test_browser_proxy.js', | 860 'test_browser_proxy.js', |
| 839 'test_site_settings_prefs_browser_proxy.js', | 861 'test_site_settings_prefs_browser_proxy.js', |
| (...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1422 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1444 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 1423 'test_browser_proxy.js', | 1445 'test_browser_proxy.js', |
| 1424 'test_extension_control_browser_proxy.js', | 1446 'test_extension_control_browser_proxy.js', |
| 1425 'extension_controlled_indicator_tests.js', | 1447 'extension_controlled_indicator_tests.js', |
| 1426 ]), | 1448 ]), |
| 1427 }; | 1449 }; |
| 1428 | 1450 |
| 1429 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { | 1451 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { |
| 1430 mocha.run(); | 1452 mocha.run(); |
| 1431 }); | 1453 }); |
| OLD | NEW |