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

Side by Side Diff: chrome/test/data/webui/md_downloads/downloads_browsertest.js

Issue 2074483003: MD Downloads: hide ... (more options) menu on resize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 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
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 /** @fileoverview Tests for the Material Design downloads page. */ 5 /** @fileoverview Tests for the Material Design downloads page. */
6 6
7 /** @const {string} Path to source root. */ 7 /** @const {string} Path to source root. */
8 var ROOT_PATH = '../../../../../'; 8 var ROOT_PATH = '../../../../../';
9 9
10 // Polymer BrowserTest fixture. 10 // Polymer BrowserTest fixture.
11 GEN_INCLUDE( 11 GEN_INCLUDE(
12 [ROOT_PATH + 'chrome/test/data/webui/polymer_browser_test_base.js']); 12 [ROOT_PATH + 'chrome/test/data/webui/polymer_browser_test_base.js']);
13 13
14 /** 14 /**
15 * @constructor 15 * @constructor
16 * @extends {PolymerTest} 16 * @extends {PolymerTest}
17 */ 17 */
18 function DownloadsBrowserTest() {} 18 function DownloadsLayoutTest() {}
michaelpg 2016/06/16 00:49:40 isn't "layout test" an actual test type?
Dan Beam 2016/06/16 01:07:24 it is in blink
19 19
20 DownloadsBrowserTest.prototype = { 20 DownloadsLayoutTest.prototype = {
21 __proto__: PolymerTest.prototype, 21 __proto__: PolymerTest.prototype,
22 22
23 /** @override */ 23 /** @override */
24 browsePreload: 'chrome://downloads/manager.html', 24 browsePreload: 'chrome://downloads/manager.html',
25 25
26 /** @override */ 26 /** @override */
27 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ 27 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([
28 'layout_tests.js', 28 'layout_tests.js',
29 ]), 29 ]),
30 }; 30 };
31 31
32 TEST_F('DownloadsBrowserTest', 'layoutTests', function() { 32 TEST_F('DownloadsLayoutTest', 'All', function() {
33 downloads.layout_tests.registerTests();
34 mocha.run(); 33 mocha.run();
35 }); 34 });
35
36 /**
37 * @constructor
38 * @extends {PolymerTest}
39 */
40 function DownloadsToolbarTest() {}
41
42 DownloadsToolbarTest.prototype = {
43 __proto__: PolymerTest.prototype,
44
45 /** @override */
46 browsePreload: 'chrome://downloads/toolbar.html',
47
48 /** @override */
49 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([
50 'toolbar_tests.js',
51 ]),
52 };
53
54 TEST_F('DownloadsToolbarTest', 'All', function() {
55 mocha.run();
56 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698