| 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 Suite of tests for settings-dropdown-menu. */ | 5 /** @fileoverview Suite of tests for settings-dropdown-menu. */ |
| 6 cr.define('settings_dropdown_menu', function() { | 6 cr.define('settings_dropdown_menu', function() { |
| 7 function registerTests() { | 7 function registerTests() { |
| 8 suite('SettingsDropdownMenu', function() { | 8 suite('SettingsDropdownMenu', function() { |
| 9 // Import settings_dropdown_menu.html before running suite. | |
| 10 suiteSetup(function() { | |
| 11 return Promise.all([ | |
| 12 PolymerTest.importHtml('chrome://md-settings/i18n_setup.html'), | |
| 13 PolymerTest.importHtml( | |
| 14 'chrome://md-settings/controls/settings_dropdown_menu.html'), | |
| 15 ]); | |
| 16 }); | |
| 17 | |
| 18 /** @type {SettingsDropdownMenu} */ | 9 /** @type {SettingsDropdownMenu} */ |
| 19 var dropdown; | 10 var dropdown; |
| 20 | 11 |
| 21 /** | 12 /** |
| 22 * The IronSelectable (paper-listbox) used internally by the dropdown | 13 * The IronSelectable (paper-listbox) used internally by the dropdown |
| 23 * menu. | 14 * menu. |
| 24 * @type {Polymer.IronSelectableBehavior} | 15 * @type {Polymer.IronSelectableBehavior} |
| 25 */ | 16 */ |
| 26 var selectable; | 17 var selectable; |
| 27 | 18 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // Pref should not have changed. | 92 // Pref should not have changed. |
| 102 assertEquals('f', dropdown.pref.value); | 93 assertEquals('f', dropdown.pref.value); |
| 103 }); | 94 }); |
| 104 }); | 95 }); |
| 105 } | 96 } |
| 106 | 97 |
| 107 return { | 98 return { |
| 108 registerTests: registerTests, | 99 registerTests: registerTests, |
| 109 }; | 100 }; |
| 110 }); | 101 }); |
| OLD | NEW |