| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 /** @fileoverview Tests for shared Polymer elements which rely on focus. */ |
| 6 |
| 7 /** @const {string} Path to source root. */ |
| 8 var ROOT_PATH = '../../../../../'; |
| 9 |
| 10 // Polymer BrowserTest fixture. |
| 11 GEN_INCLUDE( |
| 12 [ROOT_PATH + 'chrome/test/data/webui/polymer_interactive_ui_test.js']); |
| 13 |
| 14 function CrElementsFocusTest() {} |
| 15 |
| 16 CrElementsFocusTest.prototype = { |
| 17 __proto__: PolymerInteractiveUITest.prototype, |
| 18 |
| 19 extraLibraries: PolymerTest.getLibraries(ROOT_PATH), |
| 20 }; |
| 21 |
| 22 function CrElementsActionMenuTest() {} |
| 23 |
| 24 CrElementsActionMenuTest.prototype = { |
| 25 __proto__: CrElementsFocusTest.prototype, |
| 26 |
| 27 /** @override */ |
| 28 browsePreload: |
| 29 'chrome://resources/cr_elements/cr_action_menu/cr_action_menu.html', |
| 30 |
| 31 extraLibraries: CrElementsFocusTest.prototype.extraLibraries.concat([ |
| 32 'cr_action_menu_test.js', |
| 33 ]), |
| 34 }; |
| 35 |
| 36 TEST_F('CrElementsActionMenuTest', 'All', function() { |
| 37 mocha.run(); |
| 38 }); |
| 39 |
| 40 function CrElementsProfileAvatarSelectorFocusTest() {} |
| 41 |
| 42 CrElementsProfileAvatarSelectorFocusTest.prototype = { |
| 43 __proto__: CrElementsFocusTest.prototype, |
| 44 |
| 45 /** @override */ |
| 46 browsePreload: |
| 47 'chrome://resources/cr_elements/cr_profile_avatar_selector/' + |
| 48 'cr_profile_avatar_selector.html', |
| 49 |
| 50 extraLibraries: CrElementsFocusTest.prototype.extraLibraries.concat([ |
| 51 'cr_profile_avatar_selector_tests.js', |
| 52 ]), |
| 53 }; |
| 54 |
| 55 TEST_F('CrElementsProfileAvatarSelectorFocusTest', 'All', function() { |
| 56 cr_profile_avatar_selector.registerTests(); |
| 57 mocha.grep(cr_profile_avatar_selector.TestNames.Focus).run(); |
| 58 }); |
| OLD | NEW |