| 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', | 
 |  27     'cr_toolbar_search_field_tests.js', | 
 |  28   ]), | 
 |  29  | 
 |  30   /** | 
 |  31    * Hack: load a page underneath chrome://resources so script errors come | 
 |  32    * from the same "domain" and can be viewed. HTML imports aren't deduped with | 
 |  33    * the current page, but it should be safe to load assert.html twice. | 
 |  34    * @override | 
 |  35    */ | 
 |  36   browsePreload: 'chrome://resources/html/assert.html', | 
 |  37  | 
 |  38   /** @override */ | 
 |  39   setUp: function() { | 
 |  40     PolymerTest.prototype.setUp.call(this); | 
 |  41     // We aren't loading the main document. | 
 |  42     this.accessibilityAuditConfig.ignoreSelectors('humanLangMissing', 'html'); | 
 |  43   }, | 
 |  44 }; | 
 |  45  | 
 |  46 TEST_F('CrElementsBrowserTest', 'CrToolbarSearchFieldTest', function() { | 
 |  47   cr_toolbar_search_field.registerTests(); | 
 |  48   mocha.run(); | 
 |  49 }); | 
 |  50  | 
 |  51 TEST_F('CrElementsBrowserTest', 'CrSliderTest', function() { | 
 |  52   cr_slider.registerTests(); | 
 |  53   mocha.run(); | 
 |  54 }); | 
| OLD | NEW |