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. | |
799 'category_default_setting_tests.js', | |
800 'category_setting_exceptions_tests.js', | |
801 'site_details_tests.js', | |
802 'site_details_permission_tests.js', | |
803 'site_list_tests.js', | |
804 'test_browser_proxy.js', | 797 'test_browser_proxy.js', |
805 'test_site_settings_prefs_browser_proxy.js', | 798 'test_site_settings_prefs_browser_proxy.js', |
806 'zoom_levels_tests.js', | |
807 'usb_devices_tests.js', | |
808 'site_data_details_subpage_tests.js', | 799 'site_data_details_subpage_tests.js', |
809 ]), | 800 ]), |
810 }; | 801 }; |
811 | 802 |
812 TEST_F('CrSettingsSiteSettingsTest', 'SiteSettings', function() { | 803 TEST_F('CrSettingsSiteDataDetailsTest', 'SiteSettings', function() { |
Dan Beam
2017/05/04 19:27:17
is there a purpose to any of the second names? th
dschuyler
2017/05/04 22:31:47
Afaik they are a sub-label for the test: they can
| |
813 category_default_setting.registerTests(); | |
814 category_setting_exceptions.registerTests(); | |
815 site_details.registerTests(); | |
816 site_details_permission.registerTests(); | |
817 site_list.registerTests(); | |
818 zoom_levels.registerTests(); | |
819 usb_devices.registerTests(); | |
820 | |
821 mocha.run(); | 804 mocha.run(); |
822 }); | 805 }); |
823 | 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', | |
823 'category_default_setting_tests.js', | |
824 ]), | |
825 }; | |
826 | |
827 TEST_F( | |
828 'CrSettingsCategoryDefaultSettingTest', 'CategoryDefaultSetting', | |
829 function() { | |
830 mocha.run(); | |
831 }); | |
832 | |
833 /** | |
834 * @constructor | |
835 * @extends {CrSettingsBrowserTest} | |
836 */ | |
837 function CrSettingsCategorySettingExceptionsTest() {} | |
838 | |
839 CrSettingsCategorySettingExceptionsTest.prototype = { | |
840 __proto__: CrSettingsBrowserTest.prototype, | |
841 | |
842 /** @override */ | |
843 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', | |
844 | |
845 /** @override */ | |
846 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | |
847 'test_browser_proxy.js', | |
848 'test_site_settings_prefs_browser_proxy.js', | |
849 'category_setting_exceptions_tests.js', | |
850 ]), | |
851 }; | |
852 | |
853 TEST_F( | |
854 'CrSettingsCategorySettingExceptionsTest', 'CategorySettingExceptions', | |
855 function() { | |
856 mocha.run(); | |
857 }); | |
858 | |
859 /** | |
860 * @constructor | |
861 * @extends {CrSettingsBrowserTest} | |
862 */ | |
863 function CrSettingsSiteDetailsTest() {} | |
864 | |
865 CrSettingsSiteDetailsTest.prototype = { | |
866 __proto__: CrSettingsBrowserTest.prototype, | |
867 | |
868 /** @override */ | |
869 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', | |
870 | |
871 /** @override */ | |
872 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | |
873 'test_browser_proxy.js', | |
874 'test_site_settings_prefs_browser_proxy.js', | |
875 'site_details_tests.js', | |
876 ]), | |
877 }; | |
878 | |
879 TEST_F('CrSettingsSiteDetailsTest', 'SiteDetails', function() { | |
880 mocha.run(); | |
881 }); | |
882 | |
883 /** | |
884 * @constructor | |
885 * @extends {CrSettingsBrowserTest} | |
886 */ | |
887 function CrSettingsSiteDetailsPermissionTest() {} | |
888 | |
889 CrSettingsSiteDetailsPermissionTest.prototype = { | |
890 __proto__: CrSettingsBrowserTest.prototype, | |
891 | |
892 /** @override */ | |
893 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', | |
894 | |
895 /** @override */ | |
896 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | |
897 'test_browser_proxy.js', | |
898 'test_site_settings_prefs_browser_proxy.js', | |
899 'site_details_permission_tests.js', | |
900 ]), | |
901 }; | |
902 | |
903 TEST_F( | |
904 'CrSettingsSiteDetailsPermissionTest', 'SiteDetailsPermission', function() { | |
905 mocha.run(); | |
906 }); | |
907 | |
908 /** | |
909 * @constructor | |
910 * @extends {CrSettingsBrowserTest} | |
911 */ | |
912 function CrSettingsSiteListTest() {} | |
913 | |
914 CrSettingsSiteListTest.prototype = { | |
915 __proto__: CrSettingsBrowserTest.prototype, | |
916 | |
917 /** @override */ | |
918 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', | |
919 | |
920 /** @override */ | |
921 commandLineSwitches: [{ | |
922 switchName: 'enable-site-settings', | |
923 }], | |
924 | |
925 /** @override */ | |
926 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | |
927 'test_browser_proxy.js', | |
928 'test_site_settings_prefs_browser_proxy.js', | |
929 'site_list_tests.js', | |
930 ]), | |
931 }; | |
932 | |
933 TEST_F('CrSettingsSiteListTest', 'SiteList', function() { | |
934 mocha.run(); | |
935 }); | |
936 | |
937 TEST_F('CrSettingsSiteListTest', 'EditExceptionDialog', function() { | |
938 mocha.run(); | |
939 }); | |
940 | |
941 TEST_F('CrSettingsSiteListTest', 'AddExceptionDialog', function() { | |
942 mocha.run(); | |
943 }); | |
Dan Beam
2017/05/04 19:27:17
uhhhhh, wait, what? i think this just running the
dschuyler
2017/05/04 22:31:47
Yep thanks! forgot to change that.
Done.
| |
944 | |
945 /** | |
946 * @constructor | |
947 * @extends {CrSettingsBrowserTest} | |
948 */ | |
949 function CrSettingsZoomLevelsTest() {} | |
950 | |
951 CrSettingsZoomLevelsTest.prototype = { | |
952 __proto__: CrSettingsBrowserTest.prototype, | |
953 | |
954 /** @override */ | |
955 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', | |
956 | |
957 /** @override */ | |
958 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | |
959 'test_browser_proxy.js', | |
960 'test_site_settings_prefs_browser_proxy.js', | |
961 'zoom_levels_tests.js', | |
962 ]), | |
963 }; | |
964 | |
965 TEST_F('CrSettingsZoomLevelsTest', 'UsbDevices', function() { | |
966 mocha.run(); | |
967 }); | |
968 | |
969 /** | |
970 * @constructor | |
971 * @extends {CrSettingsBrowserTest} | |
972 */ | |
973 function CrSettingsUsbDevicesTest() {} | |
974 | |
975 CrSettingsUsbDevicesTest.prototype = { | |
976 __proto__: CrSettingsBrowserTest.prototype, | |
977 | |
978 /** @override */ | |
979 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', | |
980 | |
981 /** @override */ | |
982 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | |
983 'test_browser_proxy.js', | |
984 'test_site_settings_prefs_browser_proxy.js', | |
985 'usb_devices_tests.js', | |
986 ]), | |
987 }; | |
988 | |
989 TEST_F('CrSettingsUsbDevicesTest', 'UsbDevices', function() { | |
990 mocha.run(); | |
991 }); | |
992 | |
824 /** | 993 /** |
825 * @constructor | 994 * @constructor |
826 * @extends {CrSettingsBrowserTest} | 995 * @extends {CrSettingsBrowserTest} |
827 */ | 996 */ |
828 function CrSettingsProtocolHandlersTest() {} | 997 function CrSettingsProtocolHandlersTest() {} |
829 | 998 |
830 CrSettingsProtocolHandlersTest.prototype = { | 999 CrSettingsProtocolHandlersTest.prototype = { |
831 __proto__: CrSettingsBrowserTest.prototype, | 1000 __proto__: CrSettingsBrowserTest.prototype, |
832 | 1001 |
833 /** @override */ | 1002 /** @override */ |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1444 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1613 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
1445 'test_browser_proxy.js', | 1614 'test_browser_proxy.js', |
1446 'test_extension_control_browser_proxy.js', | 1615 'test_extension_control_browser_proxy.js', |
1447 'extension_controlled_indicator_tests.js', | 1616 'extension_controlled_indicator_tests.js', |
1448 ]), | 1617 ]), |
1449 }; | 1618 }; |
1450 | 1619 |
1451 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { | 1620 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { |
1452 mocha.run(); | 1621 mocha.run(); |
1453 }); | 1622 }); |
OLD | NEW |