[Android WebViewShell] Make WebViewLayoutTest runnable with test_runner.py
[chromium-blink-merge.git] / chrome / test / data / webui / cr_elements / cr_elements_browsertest.js
blob2e3b69fd073e6b58b41c064b5dcc464475757122
1 // Copyright 2015 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.
5 /** @fileoverview Runs the Chromium Polymer elements tests. */
7 /** @const {string} Path to source root. */
8 var ROOT_PATH = '../../../../../';
10 // Polymer BrowserTest fixture.
11 GEN_INCLUDE(
12 [ROOT_PATH + 'chrome/test/data/webui/polymer_browser_test_base.js']);
14 /**
15 * Test fixture for Chromium Polymer elements.
16 * @constructor
17 * @extends {PolymerTest}
19 function CrElementsBrowserTest() {}
21 CrElementsBrowserTest.prototype = {
22 __proto__: PolymerTest.prototype,
24 // List tests for individual elements.
25 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([
26 'cr_checkbox_tests.js',
27 ]),
30 // Runs all tests.
31 TEST_F('CrElementsBrowserTest', 'CrElementsTest', function() {
32 // Register mocha tests for each element.
33 cr_checkbox.registerTests();
35 // Run all registered tests.
36 mocha.run();
37 });