| 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 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 function CrSettingsSiteSettingsTest() {} | 673 function CrSettingsSiteSettingsTest() {} |
| 674 | 674 |
| 675 CrSettingsSiteSettingsTest.prototype = { | 675 CrSettingsSiteSettingsTest.prototype = { |
| 676 __proto__: CrSettingsBrowserTest.prototype, | 676 __proto__: CrSettingsBrowserTest.prototype, |
| 677 | 677 |
| 678 /** @override */ | 678 /** @override */ |
| 679 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', | 679 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
| 680 | 680 |
| 681 /** @override */ | 681 /** @override */ |
| 682 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 682 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 683 // TODO(dbeam): split these up. |
| 683 'category_default_setting_tests.js', | 684 'category_default_setting_tests.js', |
| 684 'category_setting_exceptions_tests.js', | 685 'category_setting_exceptions_tests.js', |
| 685 'site_details_tests.js', | 686 'site_details_tests.js', |
| 686 'site_details_permission_tests.js', | 687 'site_details_permission_tests.js', |
| 687 'site_list_tests.js', | 688 'site_list_tests.js', |
| 688 'test_browser_proxy.js', | 689 'test_browser_proxy.js', |
| 689 'test_site_settings_prefs_browser_proxy.js', | 690 'test_site_settings_prefs_browser_proxy.js', |
| 690 'zoom_levels_tests.js', | 691 'zoom_levels_tests.js', |
| 691 'usb_devices_tests.js', | 692 'usb_devices_tests.js', |
| 692 'protocol_handlers_tests.js' | 693 'protocol_handlers_tests.js' |
| 693 ]), | 694 ]), |
| 694 }; | 695 }; |
| 695 | 696 |
| 696 TEST_F('CrSettingsSiteSettingsTest', 'SiteSettings', function() { | 697 TEST_F('CrSettingsSiteSettingsTest', 'SiteSettings', function() { |
| 697 category_default_setting.registerTests(); | 698 category_default_setting.registerTests(); |
| 698 category_setting_exceptions.registerTests(); | 699 category_setting_exceptions.registerTests(); |
| 699 site_details.registerTests(); | 700 site_details.registerTests(); |
| 700 site_details_permission.registerTests(); | 701 site_details_permission.registerTests(); |
| 701 site_list.registerTests(); | 702 site_list.registerTests(); |
| 702 zoom_levels.registerTests(); | 703 zoom_levels.registerTests(); |
| 703 usb_devices.registerTests(); | 704 usb_devices.registerTests(); |
| 704 protocol_handlers.registerTests(); | 705 protocol_handlers.registerTests(); |
| 705 | 706 |
| 706 mocha.run(); | 707 mocha.run(); |
| 707 }); | 708 }); |
| 708 | 709 |
| 710 /** |
| 711 * @constructor |
| 712 * @extends {CrSettingsBrowserTest} |
| 713 */ |
| 714 function CrSettingsSiteDataTest() {} |
| 715 |
| 716 CrSettingsSiteDataTest.prototype = { |
| 717 __proto__: CrSettingsBrowserTest.prototype, |
| 718 |
| 719 browsePreload: 'chrome://md-settings/site_settings/site_data.html', |
| 720 |
| 721 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 722 'test_browser_proxy.js', |
| 723 'test_site_settings_prefs_browser_proxy.js', |
| 724 'site_data_test.js', |
| 725 ]), |
| 726 }; |
| 727 |
| 728 TEST_F('CrSettingsSiteDataTest', 'All', function() { |
| 729 mocha.run(); |
| 730 }); |
| 731 |
| 709 GEN('#if defined(OS_CHROMEOS)'); | 732 GEN('#if defined(OS_CHROMEOS)'); |
| 710 /** | 733 /** |
| 711 * Test fixture for device-page. | 734 * Test fixture for device-page. |
| 712 * @constructor | 735 * @constructor |
| 713 * @extends {CrSettingsBrowserTest} | 736 * @extends {CrSettingsBrowserTest} |
| 714 */ | 737 */ |
| 715 function CrSettingsDevicePageTest() {} | 738 function CrSettingsDevicePageTest() {} |
| 716 | 739 |
| 717 CrSettingsDevicePageTest.prototype = { | 740 CrSettingsDevicePageTest.prototype = { |
| 718 __proto__: CrSettingsBrowserTest.prototype, | 741 __proto__: CrSettingsBrowserTest.prototype, |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1227 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1250 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 1228 'test_browser_proxy.js', | 1251 'test_browser_proxy.js', |
| 1229 'test_extension_control_browser_proxy.js', | 1252 'test_extension_control_browser_proxy.js', |
| 1230 'extension_controlled_indicator_tests.js', | 1253 'extension_controlled_indicator_tests.js', |
| 1231 ]), | 1254 ]), |
| 1232 }; | 1255 }; |
| 1233 | 1256 |
| 1234 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { | 1257 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { |
| 1235 mocha.run(); | 1258 mocha.run(); |
| 1236 }); | 1259 }); |
| OLD | NEW |