| 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 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 951 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 951 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 952 'test_browser_proxy.js', | 952 'test_browser_proxy.js', |
| 953 'startup_urls_page_test.js', | 953 'startup_urls_page_test.js', |
| 954 ]), | 954 ]), |
| 955 }; | 955 }; |
| 956 | 956 |
| 957 TEST_F('CrSettingsStartupUrlsPageTest', 'StartupUrlsPage', function() { | 957 TEST_F('CrSettingsStartupUrlsPageTest', 'StartupUrlsPage', function() { |
| 958 mocha.run(); | 958 mocha.run(); |
| 959 }); | 959 }); |
| 960 | 960 |
| 961 GEN('#if !defined(OS_MACOSX)'); |
| 962 /** |
| 963 * @constructor |
| 964 * @extends {CrSettingsBrowserTest} |
| 965 */ |
| 966 function CrSettingsEditDictionaryPageTest() {} |
| 967 |
| 968 CrSettingsEditDictionaryPageTest.prototype = { |
| 969 __proto__: CrSettingsBrowserTest.prototype, |
| 970 |
| 971 /** @override */ |
| 972 browsePreload: |
| 973 'chrome://md-settings/languages_page/edit_dictionary_page.html', |
| 974 |
| 975 /** @override */ |
| 976 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 977 '../fake_chrome_event.js', |
| 978 'fake_settings_private.js', |
| 979 'test_browser_proxy.js', |
| 980 'fake_language_settings_private.js', |
| 981 'edit_dictionary_page_test.js', |
| 982 ]), |
| 983 }; |
| 984 |
| 985 TEST_F('CrSettingsEditDictionaryPageTest', 'EditDictionaryPage', function() { |
| 986 mocha.run(); |
| 987 }); |
| 988 GEN('#endif'); |
| 989 |
| 961 /** | 990 /** |
| 962 * @constructor | 991 * @constructor |
| 963 * @extends {CrSettingsBrowserTest} | 992 * @extends {CrSettingsBrowserTest} |
| 964 */ | 993 */ |
| 965 function CrSettingsLanguagesTest() {} | 994 function CrSettingsLanguagesTest() {} |
| 966 | 995 |
| 967 CrSettingsLanguagesTest.prototype = { | 996 CrSettingsLanguagesTest.prototype = { |
| 968 __proto__: CrSettingsBrowserTest.prototype, | 997 __proto__: CrSettingsBrowserTest.prototype, |
| 969 | 998 |
| 970 /** @override */ | 999 /** @override */ |
| 971 browsePreload: 'chrome://md-settings/languages_page/languages.html', | 1000 browsePreload: 'chrome://md-settings/languages_page/languages.html', |
| 972 | 1001 |
| 973 /** @override */ | 1002 /** @override */ |
| 974 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1003 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 975 '../fake_chrome_event.js', | 1004 '../fake_chrome_event.js', |
| 1005 'test_browser_proxy.js', |
| 976 'fake_language_settings_private.js', | 1006 'fake_language_settings_private.js', |
| 977 'fake_settings_private.js', | 1007 'fake_settings_private.js', |
| 978 'languages_tests.js', | 1008 'languages_tests.js', |
| 979 ]), | 1009 ]), |
| 980 }; | 1010 }; |
| 981 | 1011 |
| 982 // Flaky on Win and Linux, see http://crbug/692356. | 1012 // Flaky on Win and Linux, see http://crbug/692356. |
| 983 TEST_F('CrSettingsLanguagesTest', 'DISABLED_Languages', function() { | 1013 TEST_F('CrSettingsLanguagesTest', 'DISABLED_Languages', function() { |
| 984 mocha.run(); | 1014 mocha.run(); |
| 985 }); | 1015 }); |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1301 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1331 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 1302 'test_browser_proxy.js', | 1332 'test_browser_proxy.js', |
| 1303 'test_extension_control_browser_proxy.js', | 1333 'test_extension_control_browser_proxy.js', |
| 1304 'extension_controlled_indicator_tests.js', | 1334 'extension_controlled_indicator_tests.js', |
| 1305 ]), | 1335 ]), |
| 1306 }; | 1336 }; |
| 1307 | 1337 |
| 1308 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { | 1338 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { |
| 1309 mocha.run(); | 1339 mocha.run(); |
| 1310 }); | 1340 }); |
| OLD | NEW |