Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: chrome/test/data/webui/cr_elements/cr_elements_browsertest.js

Issue 1967913002: Material WebUI: cr-slider element for intelligent range mapping (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@KeyboardFinish
Patch Set: rebase fix Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/data/webui/cr_elements/cr_slider_tests.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 });
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/data/webui/cr_elements/cr_slider_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698