| 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 * This is ChromeOS only. | 244 * This is ChromeOS only. |
| 245 * @constructor | 245 * @constructor |
| 246 * @extends {CrSettingsBrowserTest} | 246 * @extends {CrSettingsBrowserTest} |
| 247 */ | 247 */ |
| 248 function CrSettingsPeoplePageLockScreenTest() {} | 248 function CrSettingsPeoplePageLockScreenTest() {} |
| 249 | 249 |
| 250 CrSettingsPeoplePageLockScreenTest.prototype = { | 250 CrSettingsPeoplePageLockScreenTest.prototype = { |
| 251 __proto__: CrSettingsBrowserTest.prototype, | 251 __proto__: CrSettingsBrowserTest.prototype, |
| 252 | 252 |
| 253 /** @override */ | 253 /** @override */ |
| 254 //browsePreload: 'chrome://md-settings/settings_main/settings_main.html', | |
| 255 browsePreload: 'chrome://md-settings/people_page/lock_screen.html', | 254 browsePreload: 'chrome://md-settings/people_page/lock_screen.html', |
| 256 | 255 |
| 257 /** @override */ | 256 /** @override */ |
| 258 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 257 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 259 '../fake_chrome_event.js', | 258 '../fake_chrome_event.js', |
| 260 'fake_quick_unlock_private.js', | 259 'fake_quick_unlock_private.js', |
| 261 'fake_settings_private.js', | 260 'fake_settings_private.js', |
| 262 'fake_quick_unlock_uma.js', | 261 'fake_quick_unlock_uma.js', |
| 263 'quick_unlock_authenticate_browsertest_chromeos.js' | 262 'quick_unlock_authenticate_browsertest_chromeos.js' |
| 264 ]), | 263 ]), |
| (...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1421 done(); | 1420 done(); |
| 1422 }); | 1421 }); |
| 1423 window.history.back(); | 1422 window.history.back(); |
| 1424 }); | 1423 }); |
| 1425 }); | 1424 }); |
| 1426 mocha.run(); | 1425 mocha.run(); |
| 1427 }); | 1426 }); |
| 1428 | 1427 |
| 1429 // Times out on Windows Tests (dbg). See https://crbug.com/651296. | 1428 // Times out on Windows Tests (dbg). See https://crbug.com/651296. |
| 1430 // Times out / crashes on chromium.linux/Linux Tests (dbg) crbug.com/667882 | 1429 // Times out / crashes on chromium.linux/Linux Tests (dbg) crbug.com/667882 |
| 1431 GEN('#if defined(OS_WIN) || defined(OS_CHROMEOS) || defined(OS_LINUX)' + | 1430 GEN('#if !defined(NDEBUG)') |
| 1432 ' || defined(OS_MACOSX)'); | 1431 GEN('#define MAYBE_MainPage_All DISABLED_MainPage_All'); |
| 1433 GEN('#define MAYBE_MainPage_All DISABLED_All'); | |
| 1434 GEN('#else'); | 1432 GEN('#else'); |
| 1435 GEN('#define MAYBE_MainPage_All All'); | 1433 GEN('#define MAYBE_MainPage_All MainPage_All'); |
| 1436 GEN('#endif'); | 1434 GEN('#endif'); |
| 1437 | 1435 |
| 1438 /** | 1436 /** |
| 1439 * Test fixture for chrome/browser/resources/settings/settings_main/. | 1437 * Test fixture for chrome/browser/resources/settings/settings_main/. |
| 1440 * @constructor | 1438 * @constructor |
| 1441 * @extends {CrSettingsBrowserTest} | 1439 * @extends {CrSettingsBrowserTest} |
| 1442 */ | 1440 */ |
| 1443 function CrSettingsMainPageTest() {} | 1441 function CrSettingsMainPageTest() {} |
| 1444 | 1442 |
| 1445 CrSettingsMainPageTest.prototype = { | 1443 CrSettingsMainPageTest.prototype = { |
| 1446 __proto__: CrSettingsBrowserTest.prototype, | 1444 __proto__: CrSettingsBrowserTest.prototype, |
| 1447 | 1445 |
| 1448 /** @override */ | 1446 /** @override */ |
| 1449 browsePreload: 'chrome://md-settings/settings_main/settings_main.html', | 1447 browsePreload: 'chrome://md-settings/settings_main/settings_main.html', |
| 1450 | 1448 |
| 1451 /** @override */ | 1449 /** @override */ |
| 1452 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1450 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 1453 'test_browser_proxy.js', | 1451 'test_browser_proxy.js', |
| 1452 'test_util.js', |
| 1454 'settings_main_test.js', | 1453 'settings_main_test.js', |
| 1455 ]), | 1454 ]), |
| 1456 }; | 1455 }; |
| 1457 | 1456 |
| 1458 TEST_F('CrSettingsMainPageTest', 'MAYBE_MainPage_All', function() { | 1457 TEST_F('CrSettingsMainPageTest', 'MAYBE_MainPage_All', function() { |
| 1459 settings_main_page.registerTests(); | 1458 settings_main_page.registerTests(); |
| 1460 mocha.run(); | 1459 mocha.run(); |
| 1461 }); | 1460 }); |
| 1462 | 1461 |
| 1463 /** | 1462 /** |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1651 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1650 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 1652 'test_browser_proxy.js', | 1651 'test_browser_proxy.js', |
| 1653 'test_extension_control_browser_proxy.js', | 1652 'test_extension_control_browser_proxy.js', |
| 1654 'extension_controlled_indicator_tests.js', | 1653 'extension_controlled_indicator_tests.js', |
| 1655 ]), | 1654 ]), |
| 1656 }; | 1655 }; |
| 1657 | 1656 |
| 1658 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { | 1657 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { |
| 1659 mocha.run(); | 1658 mocha.run(); |
| 1660 }); | 1659 }); |
| OLD | NEW |