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 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1384 done(); | 1383 done(); |
1385 }); | 1384 }); |
1386 window.history.back(); | 1385 window.history.back(); |
1387 }); | 1386 }); |
1388 }); | 1387 }); |
1389 mocha.run(); | 1388 mocha.run(); |
1390 }); | 1389 }); |
1391 | 1390 |
1392 // Times out on Windows Tests (dbg). See https://crbug.com/651296. | 1391 // Times out on Windows Tests (dbg). See https://crbug.com/651296. |
1393 // Times out / crashes on chromium.linux/Linux Tests (dbg) crbug.com/667882 | 1392 // Times out / crashes on chromium.linux/Linux Tests (dbg) crbug.com/667882 |
1394 GEN('#if defined(OS_WIN) || defined(OS_CHROMEOS) || defined(OS_LINUX)' + | 1393 GEN('#if !defined(NDEBUG)') |
1395 ' || defined(OS_MACOSX)'); | 1394 GEN('#define MAYBE_MainPage_All DISABLED_MainPage_All'); |
1396 GEN('#define MAYBE_MainPage_All DISABLED_All'); | |
1397 GEN('#else'); | 1395 GEN('#else'); |
1398 GEN('#define MAYBE_MainPage_All All'); | 1396 GEN('#define MAYBE_MainPage_All MainPage_All'); |
1399 GEN('#endif'); | 1397 GEN('#endif'); |
1400 | 1398 |
1401 /** | 1399 /** |
1402 * Test fixture for chrome/browser/resources/settings/settings_main/. | 1400 * Test fixture for chrome/browser/resources/settings/settings_main/. |
1403 * @constructor | 1401 * @constructor |
1404 * @extends {CrSettingsBrowserTest} | 1402 * @extends {CrSettingsBrowserTest} |
1405 */ | 1403 */ |
1406 function CrSettingsMainPageTest() {} | 1404 function CrSettingsMainPageTest() {} |
1407 | 1405 |
1408 CrSettingsMainPageTest.prototype = { | 1406 CrSettingsMainPageTest.prototype = { |
1409 __proto__: CrSettingsBrowserTest.prototype, | 1407 __proto__: CrSettingsBrowserTest.prototype, |
1410 | 1408 |
1411 /** @override */ | 1409 /** @override */ |
1412 browsePreload: 'chrome://md-settings/settings_main/settings_main.html', | 1410 browsePreload: 'chrome://md-settings/settings_main/settings_main.html', |
1413 | 1411 |
1414 /** @override */ | 1412 /** @override */ |
1415 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1413 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
1416 'test_browser_proxy.js', | 1414 'test_browser_proxy.js', |
| 1415 'test_util.js', |
1417 'settings_main_test.js', | 1416 'settings_main_test.js', |
1418 ]), | 1417 ]), |
1419 }; | 1418 }; |
1420 | 1419 |
1421 TEST_F('CrSettingsMainPageTest', 'MAYBE_MainPage_All', function() { | 1420 TEST_F('CrSettingsMainPageTest', 'MAYBE_MainPage_All', function() { |
1422 settings_main_page.registerTests(); | 1421 settings_main_page.registerTests(); |
1423 mocha.run(); | 1422 mocha.run(); |
1424 }); | 1423 }); |
1425 | 1424 |
1426 /** | 1425 /** |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1614 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1613 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
1615 'test_browser_proxy.js', | 1614 'test_browser_proxy.js', |
1616 'test_extension_control_browser_proxy.js', | 1615 'test_extension_control_browser_proxy.js', |
1617 'extension_controlled_indicator_tests.js', | 1616 'extension_controlled_indicator_tests.js', |
1618 ]), | 1617 ]), |
1619 }; | 1618 }; |
1620 | 1619 |
1621 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { | 1620 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { |
1622 mocha.run(); | 1621 mocha.run(); |
1623 }); | 1622 }); |
OLD | NEW |