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

Side by Side Diff: chrome/test/data/webui/polymer_browser_test_base.js

Issue 1886683002: Add promise_resolver.js to PolymerTest libraries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | chrome/test/data/webui/settings/cr_settings_browsertest.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 /** 5 /**
6 * @fileoverview Framework for running JavaScript tests of Polymer elements. 6 * @fileoverview Framework for running JavaScript tests of Polymer elements.
7 */ 7 */
8 8
9 /** 9 /**
10 * Test fixture for Polymer element testing. 10 * Test fixture for Polymer element testing.
(...skipping 20 matching lines...) Expand all
31 */ 31 */
32 isAsync: true, 32 isAsync: true,
33 33
34 /** 34 /**
35 * Files that need not be compiled. Should be overridden to use correct 35 * Files that need not be compiled. Should be overridden to use correct
36 * relative paths with PolymerTest.getLibraries. 36 * relative paths with PolymerTest.getLibraries.
37 * @override 37 * @override
38 */ 38 */
39 extraLibraries: [ 39 extraLibraries: [
40 'ui/webui/resources/js/cr.js', 40 'ui/webui/resources/js/cr.js',
41 'ui/webui/resources/js/promise_resolver.js',
41 'third_party/mocha/mocha.js', 42 'third_party/mocha/mocha.js',
42 'chrome/test/data/webui/mocha_adapter.js', 43 'chrome/test/data/webui/mocha_adapter.js',
43 ], 44 ],
44 45
45 /** Time when preLoad starts, i.e. before the browsePreload page is loaded. */ 46 /** Time when preLoad starts, i.e. before the browsePreload page is loaded. */
46 preloadTime: 0, 47 preloadTime: 0,
47 48
48 /** Time when test run starts. */ 49 /** Time when test run starts. */
49 runTime: 0, 50 runTime: 0,
50 51
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 */ 174 */
174 PolymerTest.getLibraries = function(basePath) { 175 PolymerTest.getLibraries = function(basePath) {
175 // Ensure basePath ends in '/'. 176 // Ensure basePath ends in '/'.
176 if (basePath.length && basePath[basePath.length - 1] != '/') 177 if (basePath.length && basePath[basePath.length - 1] != '/')
177 basePath += '/'; 178 basePath += '/';
178 179
179 return PolymerTest.prototype.extraLibraries.map(function(library) { 180 return PolymerTest.prototype.extraLibraries.map(function(library) {
180 return basePath + library; 181 return basePath + library;
181 }); 182 });
182 }; 183 };
OLDNEW
« no previous file with comments | « no previous file | chrome/test/data/webui/settings/cr_settings_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698