Chromium Code Reviews| OLD | NEW | 
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 /** @fileoverview Tests for shared Polymer elements. */ | |
| 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_browser_test_base.js']); | |
| 13 | |
| 14 /** | |
| 15 * Test fixture for shared Polymer elements. | |
| 16 * @constructor | |
| 17 * @extends {PolymerTest} | |
| 18 */ | |
| 19 function CrElementsBrowserTest() {} | |
| 20 | |
| 21 CrElementsBrowserTest.prototype = { | |
| 22 __proto__: PolymerTest.prototype, | |
| 23 | |
| 24 /** @override */ | |
| 25 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ | |
| 26 'cr_slider_tests.js', | |
| 
 
Dan Beam
2016/05/17 19:35:45
indent off
 
michaelpg
2016/05/18 17:05:48
Done.
 
 | |
| 27 ]), | |
| 28 | |
| 29 /** | |
| 30 * Hack: load a page underneath chrome://resources so script errors come | |
| 31 * from the same "domain" and can be viewed. HTML imports aren't deduped with | |
| 32 * the current page, but it should be safe to load assert.html twice. | |
| 33 * @override | |
| 34 */ | |
| 35 browsePreload: 'chrome://resources/html/assert.html', | |
| 36 | |
| 37 /** @override */ | |
| 38 setUp: function() { | |
| 39 PolymerTest.prototype.setUp.call(this); | |
| 40 // We aren't loading the main document. | |
| 41 this.accessibilityAuditConfig.ignoreSelectors('humanLangMissing', 'html'); | |
| 42 }, | |
| 43 }; | |
| 44 | |
| 45 TEST_F('CrElementsBrowserTest', 'CrElements', function() { | |
| 46 suite('cr-elements', function() { | |
| 47 cr_slider.registerTests(); | |
| 48 }); | |
| 49 | |
| 50 mocha.run(); | |
| 51 }); | |
| OLD | NEW |