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 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 'privacy_page_test.js', | 769 'privacy_page_test.js', |
770 ]), | 770 ]), |
771 }; | 771 }; |
772 | 772 |
773 TEST_F('CrSettingsPrivacyPageTest', 'PrivacyPage', function() { | 773 TEST_F('CrSettingsPrivacyPageTest', 'PrivacyPage', function() { |
774 settings_privacy_page.registerTests(); | 774 settings_privacy_page.registerTests(); |
775 mocha.run(); | 775 mocha.run(); |
776 }); | 776 }); |
777 | 777 |
778 /** | 778 /** |
779 * Test fixture for chrome/browser/resources/settings/site_settings/. | |
780 * @constructor | 779 * @constructor |
781 * @extends {CrSettingsBrowserTest} | 780 * @extends {CrSettingsBrowserTest} |
782 */ | 781 */ |
783 function CrSettingsSiteSettingsTest() {} | 782 function CrSettingsSiteDataDetailsTest() {} |
784 | 783 |
785 CrSettingsSiteSettingsTest.prototype = { | 784 CrSettingsSiteDataDetailsTest.prototype = { |
786 __proto__: CrSettingsBrowserTest.prototype, | 785 __proto__: CrSettingsBrowserTest.prototype, |
787 | 786 |
788 /** @override */ | 787 /** @override */ |
789 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', | 788 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
790 | 789 |
791 /** @override */ | 790 /** @override */ |
792 commandLineSwitches: [{ | 791 commandLineSwitches: [{ |
793 switchName: 'enable-site-settings', | 792 switchName: 'enable-site-settings', |
794 }], | 793 }], |
795 | 794 |
796 /** @override */ | 795 /** @override */ |
797 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 796 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
798 // TODO(dbeam): split these up. | 797 'test_browser_proxy.js', |
| 798 'test_site_settings_prefs_browser_proxy.js', |
| 799 'site_data_details_subpage_tests.js', |
| 800 ]), |
| 801 }; |
| 802 |
| 803 TEST_F('CrSettingsSiteDataDetailsTest', 'SiteSettings', function() { |
| 804 mocha.run(); |
| 805 }); |
| 806 |
| 807 /** |
| 808 * @constructor |
| 809 * @extends {CrSettingsBrowserTest} |
| 810 */ |
| 811 function CrSettingsCategoryDefaultSettingTest() {} |
| 812 |
| 813 CrSettingsCategoryDefaultSettingTest.prototype = { |
| 814 __proto__: CrSettingsBrowserTest.prototype, |
| 815 |
| 816 /** @override */ |
| 817 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
| 818 |
| 819 /** @override */ |
| 820 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 821 'test_browser_proxy.js', |
| 822 'test_site_settings_prefs_browser_proxy.js', |
799 'category_default_setting_tests.js', | 823 'category_default_setting_tests.js', |
| 824 ]), |
| 825 }; |
| 826 |
| 827 TEST_F('CrSettingsCategoryDefaultSettingTest', 'CategorySetting', function() { |
| 828 mocha.run(); |
| 829 }); |
| 830 |
| 831 /** |
| 832 * @constructor |
| 833 * @extends {CrSettingsBrowserTest} |
| 834 */ |
| 835 function CrSettingsCategorySettingExceptionsTest() {} |
| 836 |
| 837 CrSettingsCategorySettingExceptionsTest.prototype = { |
| 838 __proto__: CrSettingsBrowserTest.prototype, |
| 839 |
| 840 /** @override */ |
| 841 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
| 842 |
| 843 /** @override */ |
| 844 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 845 'test_browser_proxy.js', |
| 846 'test_site_settings_prefs_browser_proxy.js', |
800 'category_setting_exceptions_tests.js', | 847 'category_setting_exceptions_tests.js', |
| 848 ]), |
| 849 }; |
| 850 |
| 851 TEST_F( |
| 852 'CrSettingsCategorySettingExceptionsTest', 'CategorySettingExceptions', |
| 853 function() { |
| 854 mocha.run(); |
| 855 }); |
| 856 |
| 857 /** |
| 858 * @constructor |
| 859 * @extends {CrSettingsBrowserTest} |
| 860 */ |
| 861 function CrSettingsSiteDetailsTest() {} |
| 862 |
| 863 CrSettingsSiteDetailsTest.prototype = { |
| 864 __proto__: CrSettingsBrowserTest.prototype, |
| 865 |
| 866 /** @override */ |
| 867 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
| 868 |
| 869 /** @override */ |
| 870 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 871 'test_browser_proxy.js', |
| 872 'test_site_settings_prefs_browser_proxy.js', |
801 'site_details_tests.js', | 873 'site_details_tests.js', |
| 874 ]), |
| 875 }; |
| 876 |
| 877 TEST_F('CrSettingsSiteDetailsTest', 'SiteDetails', function() { |
| 878 mocha.run(); |
| 879 }); |
| 880 |
| 881 /** |
| 882 * @constructor |
| 883 * @extends {CrSettingsBrowserTest} |
| 884 */ |
| 885 function CrSettingsSiteDetailsPermissionTest() {} |
| 886 |
| 887 CrSettingsSiteDetailsPermissionTest.prototype = { |
| 888 __proto__: CrSettingsBrowserTest.prototype, |
| 889 |
| 890 /** @override */ |
| 891 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
| 892 |
| 893 /** @override */ |
| 894 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 895 'test_browser_proxy.js', |
| 896 'test_site_settings_prefs_browser_proxy.js', |
802 'site_details_permission_tests.js', | 897 'site_details_permission_tests.js', |
| 898 ]), |
| 899 }; |
| 900 |
| 901 TEST_F( |
| 902 'CrSettingsSiteDetailsPermissionTest', 'SiteDetailsPermission', function() { |
| 903 mocha.run(); |
| 904 }); |
| 905 |
| 906 /** |
| 907 * @constructor |
| 908 * @extends {CrSettingsBrowserTest} |
| 909 */ |
| 910 function CrSettingsSiteListTest() {} |
| 911 |
| 912 CrSettingsSiteListTest.prototype = { |
| 913 __proto__: CrSettingsBrowserTest.prototype, |
| 914 |
| 915 /** @override */ |
| 916 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
| 917 |
| 918 /** @override */ |
| 919 commandLineSwitches: [{ |
| 920 switchName: 'enable-site-settings', |
| 921 }], |
| 922 |
| 923 /** @override */ |
| 924 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 925 'test_browser_proxy.js', |
| 926 'test_site_settings_prefs_browser_proxy.js', |
803 'site_list_tests.js', | 927 'site_list_tests.js', |
| 928 ]), |
| 929 }; |
| 930 |
| 931 TEST_F('CrSettingsSiteListTest', 'SiteList', function() { |
| 932 mocha.run(); |
| 933 }); |
| 934 |
| 935 TEST_F('CrSettingsSiteListTest', 'EditExceptionDialog', function() { |
| 936 mocha.run(); |
| 937 }); |
| 938 |
| 939 TEST_F('CrSettingsSiteListTest', 'AddExceptionDialog', function() { |
| 940 mocha.run(); |
| 941 }); |
| 942 |
| 943 /** |
| 944 * @constructor |
| 945 * @extends {CrSettingsBrowserTest} |
| 946 */ |
| 947 function CrSettingsZoomLevelsTest() {} |
| 948 |
| 949 CrSettingsZoomLevelsTest.prototype = { |
| 950 __proto__: CrSettingsBrowserTest.prototype, |
| 951 |
| 952 /** @override */ |
| 953 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
| 954 |
| 955 /** @override */ |
| 956 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
804 'test_browser_proxy.js', | 957 'test_browser_proxy.js', |
805 'test_site_settings_prefs_browser_proxy.js', | 958 'test_site_settings_prefs_browser_proxy.js', |
806 'zoom_levels_tests.js', | 959 'zoom_levels_tests.js', |
| 960 ]), |
| 961 }; |
| 962 |
| 963 TEST_F('CrSettingsZoomLevelsTest', 'UsbDevices', function() { |
| 964 mocha.run(); |
| 965 }); |
| 966 |
| 967 /** |
| 968 * @constructor |
| 969 * @extends {CrSettingsBrowserTest} |
| 970 */ |
| 971 function CrSettingsUsbDevicesTest() {} |
| 972 |
| 973 CrSettingsUsbDevicesTest.prototype = { |
| 974 __proto__: CrSettingsBrowserTest.prototype, |
| 975 |
| 976 /** @override */ |
| 977 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
| 978 |
| 979 /** @override */ |
| 980 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 981 'test_browser_proxy.js', |
| 982 'test_site_settings_prefs_browser_proxy.js', |
807 'usb_devices_tests.js', | 983 'usb_devices_tests.js', |
808 'site_data_details_subpage_tests.js', | 984 ]), |
809 ]), | 985 }; |
810 }; | 986 |
811 | 987 TEST_F('CrSettingsUsbDevicesTest', 'UsbDevices', function() { |
812 TEST_F('CrSettingsSiteSettingsTest', 'SiteSettings', function() { | 988 mocha.run(); |
813 category_default_setting.registerTests(); | 989 }); |
814 category_setting_exceptions.registerTests(); | 990 |
815 site_details.registerTests(); | 991 /** |
816 site_details_permission.registerTests(); | 992 * @constructor |
817 site_list.registerTests(); | 993 * @extends {CrSettingsBrowserTest} |
818 zoom_levels.registerTests(); | 994 */ |
819 usb_devices.registerTests(); | 995 function CrSettingsProtocolHandlersTest() {} |
820 | 996 |
821 mocha.run(); | 997 CrSettingsProtocolHandlersTest.prototype = { |
822 }); | 998 __proto__: CrSettingsBrowserTest.prototype, |
823 | 999 |
| 1000 /** @override */ |
| 1001 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
| 1002 |
| 1003 /** @override */ |
| 1004 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 1005 'test_browser_proxy.js', |
| 1006 'test_site_settings_prefs_browser_proxy.js', |
| 1007 'protocol_handlers_tests.js', |
| 1008 ]), |
| 1009 }; |
| 1010 |
| 1011 TEST_F('CrSettingsProtocolHandlersTest', 'ProtocolHandlers', function() { |
| 1012 mocha.run(); |
| 1013 }); |
| 1014 |
824 /** | 1015 /** |
825 * @constructor | 1016 * @constructor |
826 * @extends {CrSettingsBrowserTest} | 1017 * @extends {CrSettingsBrowserTest} |
827 */ | 1018 */ |
828 function CrSettingsProtocolHandlersTest() {} | 1019 function CrSettingsProtocolHandlersTest() {} |
829 | 1020 |
830 CrSettingsProtocolHandlersTest.prototype = { | 1021 CrSettingsProtocolHandlersTest.prototype = { |
831 __proto__: CrSettingsBrowserTest.prototype, | 1022 __proto__: CrSettingsBrowserTest.prototype, |
832 | 1023 |
833 /** @override */ | 1024 /** @override */ |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1444 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1635 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
1445 'test_browser_proxy.js', | 1636 'test_browser_proxy.js', |
1446 'test_extension_control_browser_proxy.js', | 1637 'test_extension_control_browser_proxy.js', |
1447 'extension_controlled_indicator_tests.js', | 1638 'extension_controlled_indicator_tests.js', |
1448 ]), | 1639 ]), |
1449 }; | 1640 }; |
1450 | 1641 |
1451 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { | 1642 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { |
1452 mocha.run(); | 1643 mocha.run(); |
1453 }); | 1644 }); |
OLD | NEW |