Chromium Code Reviews| 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 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 901 'settings_main_test.js', | 901 'settings_main_test.js', |
| 902 ]), | 902 ]), |
| 903 }; | 903 }; |
| 904 | 904 |
| 905 TEST_F('CrSettingsMainPageTest', 'MAYBE_MainPage_All', function() { | 905 TEST_F('CrSettingsMainPageTest', 'MAYBE_MainPage_All', function() { |
| 906 settings_main_page.registerTests(); | 906 settings_main_page.registerTests(); |
| 907 mocha.run(); | 907 mocha.run(); |
| 908 }); | 908 }); |
| 909 | 909 |
| 910 /** | 910 /** |
| 911 * Test fixture for chrome/browser/resources/settings/search_settings.js. | |
| 912 * @constructor | |
| 913 * @extends {CrSettingsBrowserTest} | |
| 914 */ | |
| 915 function CrSettingsSearchTest() {} | |
| 916 | |
| 917 CrSettingsSearchTest.prototype = { | |
| 918 __proto__: CrSettingsBrowserTest.prototype, | |
| 919 | |
| 920 /** @override */ | |
| 921 browsePreload: 'chrome://md-settings/settings_page/settings_section.html', | |
| 922 | |
| 923 /** @override */ | |
| 924 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | |
| 925 ROOT_PATH + 'chrome/browser/resources/settings/search_settings.js', | |
|
dpapad
2016/11/01 01:45:40
Even though this works locally, it fails on the bo
Dan Beam
2016/11/01 18:00:31
trying doing something like:
suiteSetup(function(
dpapad
2016/11/01 19:26:09
Added chrome/browser/resources/settings to the app
| |
| 926 'search_settings_test.js', | |
| 927 ]), | |
| 928 }; | |
| 929 | |
| 930 TEST_F('CrSettingsSearchTest', 'All', function() { | |
| 931 mocha.run(); | |
| 932 }); | |
| 933 | |
| 934 /** | |
| 911 * @constructor | 935 * @constructor |
| 912 * @extends {CrSettingsBrowserTest} | 936 * @extends {CrSettingsBrowserTest} |
| 913 */ | 937 */ |
| 914 function CrControlledButtonTest() {} | 938 function CrControlledButtonTest() {} |
| 915 | 939 |
| 916 CrControlledButtonTest.prototype = { | 940 CrControlledButtonTest.prototype = { |
| 917 __proto__: CrSettingsBrowserTest.prototype, | 941 __proto__: CrSettingsBrowserTest.prototype, |
| 918 | 942 |
| 919 /** @override */ | 943 /** @override */ |
| 920 browsePreload: 'chrome://md-settings/controls/controlled_button.html', | 944 browsePreload: 'chrome://md-settings/controls/controlled_button.html', |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1008 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1032 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 1009 'date_time_page_tests.js', | 1033 'date_time_page_tests.js', |
| 1010 ]), | 1034 ]), |
| 1011 }; | 1035 }; |
| 1012 | 1036 |
| 1013 TEST_F('CrSettingsDateTimePageTest', 'DateTimePageTest', function() { | 1037 TEST_F('CrSettingsDateTimePageTest', 'DateTimePageTest', function() { |
| 1014 mocha.run(); | 1038 mocha.run(); |
| 1015 }); | 1039 }); |
| 1016 | 1040 |
| 1017 GEN('#endif'); | 1041 GEN('#endif'); |
| OLD | NEW |