| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 CrSettingsSearchEnginesTest.prototype = { | 109 CrSettingsSearchEnginesTest.prototype = { |
| 110 __proto__: CrSettingsBrowserTest.prototype, | 110 __proto__: CrSettingsBrowserTest.prototype, |
| 111 | 111 |
| 112 /** @override */ | 112 /** @override */ |
| 113 browsePreload: | 113 browsePreload: |
| 114 'chrome://md-settings/search_engines_page/search_engines_page.html', | 114 'chrome://md-settings/search_engines_page/search_engines_page.html', |
| 115 | 115 |
| 116 /** @override */ | 116 /** @override */ |
| 117 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ | 117 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ |
| 118 '../promise_resolver.js', | 118 ROOT_PATH + 'ui/webui/resources/js/cr/promise_resolver.js', |
| 119 'search_engines_page_test.js', | 119 'search_engines_page_test.js', |
| 120 ]), | 120 ]), |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 TEST_F('CrSettingsSearchEnginesTest', 'SearchEngines', function() { | 123 TEST_F('CrSettingsSearchEnginesTest', 'SearchEngines', function() { |
| 124 settings_search_engines_page.registerDialogTests(); | 124 settings_search_engines_page.registerDialogTests(); |
| 125 settings_search_engines_page.registerSearchEngineEntryTests(); | 125 settings_search_engines_page.registerSearchEngineEntryTests(); |
| 126 settings_search_engines_page.registerOmniboxExtensionEntryTests(); | 126 settings_search_engines_page.registerOmniboxExtensionEntryTests(); |
| 127 settings_search_engines_page.registerPageTests(); | 127 settings_search_engines_page.registerPageTests(); |
| 128 mocha.run(); | 128 mocha.run(); |
| 129 }); | 129 }); |
| OLD | NEW |