| 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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 /** @override */ | 497 /** @override */ |
| 498 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 498 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 499 ROOT_PATH + 'ui/webui/resources/js/assert.js', | 499 ROOT_PATH + 'ui/webui/resources/js/assert.js', |
| 500 '../fake_chrome_event.js', | 500 '../fake_chrome_event.js', |
| 501 'fake_settings_private.js', | 501 'fake_settings_private.js', |
| 502 'fake_system_display.js', | 502 'fake_system_display.js', |
| 503 'device_page_tests.js', | 503 'device_page_tests.js', |
| 504 ]), | 504 ]), |
| 505 }; | 505 }; |
| 506 | 506 |
| 507 TEST_F('CrSettingsDevicePageTest', 'DevicePageTest', function() { |
| 508 mocha.grep(assert(device_page_tests.TestNames.DevicePage)).run(); |
| 509 }); |
| 510 |
| 507 TEST_F('CrSettingsDevicePageTest', 'DisplayTest', function() { | 511 TEST_F('CrSettingsDevicePageTest', 'DisplayTest', function() { |
| 508 mocha.grep(assert(device_page_tests.TestNames.Display)).run(); | 512 mocha.grep(assert(device_page_tests.TestNames.Display)).run(); |
| 509 }); | 513 }); |
| 510 | 514 |
| 511 TEST_F('CrSettingsDevicePageTest', 'KeyboardTest', function() { | 515 TEST_F('CrSettingsDevicePageTest', 'KeyboardTest', function() { |
| 512 mocha.grep(assert(device_page_tests.TestNames.Keyboard)).run(); | 516 mocha.grep(assert(device_page_tests.TestNames.Keyboard)).run(); |
| 513 }); | 517 }); |
| 514 | 518 |
| 515 TEST_F('CrSettingsDevicePageTest', 'TouchpadTest', function() { | 519 TEST_F('CrSettingsDevicePageTest', 'PointersTest', function() { |
| 516 mocha.grep(assert(device_page_tests.TestNames.Touchpad)).run(); | 520 mocha.grep(assert(device_page_tests.TestNames.Pointers)).run(); |
| 517 }); | 521 }); |
| 518 GEN('#endif'); | 522 GEN('#endif'); |
| 519 | 523 |
| 520 /** | 524 /** |
| 521 * Test fixture for chrome/browser/resources/settings/settings_menu/. | 525 * Test fixture for chrome/browser/resources/settings/settings_menu/. |
| 522 * @constructor | 526 * @constructor |
| 523 * @extends {CrSettingsBrowserTest} | 527 * @extends {CrSettingsBrowserTest} |
| 524 */ | 528 */ |
| 525 function CrSettingsMenuTest() {} | 529 function CrSettingsMenuTest() {} |
| 526 | 530 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 browsePreload: 'chrome://md-settings/route.html', | 652 browsePreload: 'chrome://md-settings/route.html', |
| 649 | 653 |
| 650 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 654 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 651 'route_tests.js', | 655 'route_tests.js', |
| 652 ]), | 656 ]), |
| 653 }; | 657 }; |
| 654 | 658 |
| 655 TEST_F('CrSettingsRouteTest', 'All', function() { | 659 TEST_F('CrSettingsRouteTest', 'All', function() { |
| 656 mocha.run(); | 660 mocha.run(); |
| 657 }); | 661 }); |
| OLD | NEW |