| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 /** | 5 /** |
| 6 * @fileoverview Tests for chrome://plugins | 6 * @fileoverview Tests for chrome://plugins |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 /** @const {string} Path to source root. */ | 9 /** @const {string} Path to source root. */ |
| 10 var ROOT_PATH = '../../../../'; | 10 var ROOT_PATH = '../../../../'; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 /** @override */ | 30 /** @override */ |
| 31 runAccessibilityChecks: false, | 31 runAccessibilityChecks: false, |
| 32 | 32 |
| 33 /** @override */ | 33 /** @override */ |
| 34 extraLibraries: [ | 34 extraLibraries: [ |
| 35 ROOT_PATH + 'third_party/mocha/mocha.js', | 35 ROOT_PATH + 'third_party/mocha/mocha.js', |
| 36 ROOT_PATH + 'chrome/test/data/webui/mocha_adapter.js', | 36 ROOT_PATH + 'chrome/test/data/webui/mocha_adapter.js', |
| 37 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js', | 37 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js', |
| 38 ROOT_PATH + 'ui/webui/resources/js/cr.js', | 38 ROOT_PATH + 'ui/webui/resources/js/cr.js', |
| 39 ROOT_PATH + 'ui/webui/resources/js/util.js', |
| 39 ROOT_PATH + 'chrome/test/data/webui/settings/test_browser_proxy.js', | 40 ROOT_PATH + 'chrome/test/data/webui/settings/test_browser_proxy.js', |
| 40 ], | 41 ], |
| 41 | 42 |
| 42 preLoad: function() { | 43 preLoad: function() { |
| 43 /** | 44 /** |
| 44 * A test browser proxy for the chrome://plugins page. | 45 * A test browser proxy for the chrome://plugins page. |
| 45 * | 46 * |
| 46 * @constructor | 47 * @constructor |
| 47 * @extends {TestBrowserProxyBase} | 48 * @extends {TestBrowserProxyBase} |
| 48 */ | 49 */ |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 return browserProxy.whenCalled('saveShowDetailsToPrefs'); | 199 return browserProxy.whenCalled('saveShowDetailsToPrefs'); |
| 199 }).then(function(expanded) { | 200 }).then(function(expanded) { |
| 200 assertFalse(Boolean(expanded)); | 201 assertFalse(Boolean(expanded)); |
| 201 }); | 202 }); |
| 202 }); | 203 }); |
| 203 }); | 204 }); |
| 204 | 205 |
| 205 // Run all registered tests. | 206 // Run all registered tests. |
| 206 mocha.run(); | 207 mocha.run(); |
| 207 }); | 208 }); |
| OLD | NEW |