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 28 matching lines...) Expand all Loading... | |
| 39 'extension_test_util.js', | 39 'extension_test_util.js', |
| 40 'extension_detail_view_test.js', | 40 'extension_detail_view_test.js', |
| 41 'extension_code_section_test.js', | 41 'extension_code_section_test.js', |
| 42 'extension_error_page_test.js', | 42 'extension_error_page_test.js', |
| 43 'extension_item_test.js', | 43 'extension_item_test.js', |
| 44 'extension_item_list_test.js', | 44 'extension_item_list_test.js', |
| 45 'extension_load_error_test.js', | 45 'extension_load_error_test.js', |
| 46 'extension_keyboard_shortcuts_test.js', | 46 'extension_keyboard_shortcuts_test.js', |
| 47 'extension_options_dialog_test.js', | 47 'extension_options_dialog_test.js', |
| 48 'extension_pack_dialog_test.js', | 48 'extension_pack_dialog_test.js', |
| 49 'extension_navigation_helper_test.js', | |
| 49 'extension_service_test.js', | 50 'extension_service_test.js', |
| 50 'extension_shortcut_input_test.js', | 51 'extension_shortcut_input_test.js', |
| 51 'extension_sidebar_test.js', | 52 'extension_sidebar_test.js', |
| 52 'extension_toolbar_test.js', | 53 'extension_toolbar_test.js', |
| 53 'extension_manager_test.js', | 54 'extension_manager_test.js', |
| 54 '../mock_controller.js', | 55 '../mock_controller.js', |
| 55 '../../../../../ui/webui/resources/js/promise_resolver.js', | 56 '../../../../../ui/webui/resources/js/promise_resolver.js', |
| 56 '../../../../../ui/webui/resources/js/webui_resource_test.js', | 57 '../../../../../ui/webui/resources/js/webui_resource_test.js', |
| 57 ]), | 58 ]), |
| 58 | 59 |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 334 }); | 335 }); |
| 335 | 336 |
| 336 //////////////////////////////////////////////////////////////////////////////// | 337 //////////////////////////////////////////////////////////////////////////////// |
| 337 // Extension Code Section Tests | 338 // Extension Code Section Tests |
| 338 | 339 |
| 339 TEST_F('CrExtensionsBrowserTest', 'ExtensionCodeSectionLayoutTest', | 340 TEST_F('CrExtensionsBrowserTest', 'ExtensionCodeSectionLayoutTest', |
| 340 function() { | 341 function() { |
| 341 extension_code_section_tests.registerTests(); | 342 extension_code_section_tests.registerTests(); |
| 342 mocha.grep(assert(extension_code_section_tests.TestNames.Layout)).run(); | 343 mocha.grep(assert(extension_code_section_tests.TestNames.Layout)).run(); |
| 343 }); | 344 }); |
| 345 | |
| 346 //////////////////////////////////////////////////////////////////////////////// | |
| 347 // Extension Page State Tests | |
|
michaelpg
2017/05/01 23:41:26
navigation helper
Devlin
2017/05/02 01:04:07
Done.
| |
| 348 | |
| 349 function CrExtensionsNavigationHelperBrowserTest() {} | |
| 350 | |
| 351 // extensions.NavigationHelper observes window.location. In order to test this | |
| 352 // without the "real" NavigationHelper joining the party, we navigate to | |
| 353 // navigation_helper.html directly. | |
| 354 CrExtensionsNavigationHelperBrowserTest.prototype = { | |
| 355 __proto__: CrExtensionsBrowserTest.prototype, | |
| 356 | |
| 357 /** @override */ | |
| 358 browsePreload: 'chrome://extensions/navigation_helper.html', | |
| 359 }; | |
| 360 | |
| 361 TEST_F('CrExtensionsNavigationHelperBrowserTest', | |
| 362 'ExtensionNavigationHelperBasicTest', function() { | |
| 363 extension_navigation_helper_tests.registerTests(); | |
| 364 mocha.grep(assert(extension_navigation_helper_tests.TestNames.Basic)).run(); | |
| 365 }); | |
| 366 | |
| 367 TEST_F('CrExtensionsNavigationHelperBrowserTest', | |
| 368 'ExtensionNavigationHelperConversionTest', function() { | |
| 369 extension_navigation_helper_tests.registerTests(); | |
| 370 mocha.grep( | |
| 371 assert(extension_navigation_helper_tests.TestNames.Conversions)).run(); | |
| 372 }); | |
| 373 | |
| 374 TEST_F('CrExtensionsNavigationHelperBrowserTest', | |
| 375 'ExtensionNavigationHelperPushAndReplaceStateTest', function() { | |
| 376 extension_navigation_helper_tests.registerTests(); | |
| 377 mocha.grep( | |
| 378 assert(extension_navigation_helper_tests.TestNames.PushAndReplaceState)) | |
| 379 .run(); | |
| 380 }); | |
| OLD | NEW |