Chromium Code Reviews| 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 /** @fileoverview Tests for shared Polymer elements. */ | 5 /** @fileoverview Tests for shared Polymer elements. */ |
| 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 30 matching lines...) Expand all Loading... | |
| 41 | 41 |
| 42 CrElementsLazyRenderTest.prototype = { | 42 CrElementsLazyRenderTest.prototype = { |
| 43 __proto__: CrElementsBrowserTest.prototype, | 43 __proto__: CrElementsBrowserTest.prototype, |
| 44 | 44 |
| 45 /** @override */ | 45 /** @override */ |
| 46 browsePreload: | 46 browsePreload: |
| 47 'chrome://resources/cr_elements/cr_lazy_render/cr_lazy_render.html', | 47 'chrome://resources/cr_elements/cr_lazy_render/cr_lazy_render.html', |
| 48 | 48 |
| 49 /** @override */ | 49 /** @override */ |
| 50 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ | 50 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ |
| 51 ROOT_PATH + 'ui/webui/resources/js/assert.js', | |
|
Dan Beam
2017/02/08 05:31:36
please don't add dependencies for production code
dschuyler
2017/02/09 00:42:47
Thanks. With the other note about detached setting
| |
| 51 'cr_lazy_render_tests.js' | 52 'cr_lazy_render_tests.js' |
| 52 ]), | 53 ]), |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 TEST_F('CrElementsLazyRenderTest', 'All', function() { | 56 TEST_F('CrElementsLazyRenderTest', 'All', function() { |
| 56 mocha.run(); | 57 mocha.run(); |
| 57 }); | 58 }); |
| 58 | 59 |
| 59 function CrElementsProfileAvatarSelectorTest() {} | 60 function CrElementsProfileAvatarSelectorTest() {} |
| 60 | 61 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 browsePreload: 'chrome://resources/cr_elements/cr_drawer/cr_drawer.html', | 126 browsePreload: 'chrome://resources/cr_elements/cr_drawer/cr_drawer.html', |
| 126 | 127 |
| 127 /** @override */ | 128 /** @override */ |
| 128 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat( | 129 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat( |
| 129 ['cr_drawer_tests.js', ROOT_PATH + 'ui/webui/resources/js/util.js']), | 130 ['cr_drawer_tests.js', ROOT_PATH + 'ui/webui/resources/js/util.js']), |
| 130 }; | 131 }; |
| 131 | 132 |
| 132 TEST_F('CrElementsDrawerTest', 'All', function() { | 133 TEST_F('CrElementsDrawerTest', 'All', function() { |
| 133 mocha.run(); | 134 mocha.run(); |
| 134 }); | 135 }); |
| OLD | NEW |