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

Side by Side Diff: chrome/test/data/webui/md_bookmarks/md_bookmarks_browsertest.js

Issue 2603303002: [MD Bookmarks] Add UI for Material Bookmarks. (Closed)
Patch Set: Created 3 years, 11 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 2016 The Chromium Authors. All rights reserved. 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 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 Test suite for the Material Design bookmarks page. 6 * @fileoverview Test suite for the Material Design bookmarks page.
7 */ 7 */
8 var ROOT_PATH = '../../../../../'; 8 var ROOT_PATH = '../../../../../';
9 9
10 GEN_INCLUDE( 10 GEN_INCLUDE(
11 [ROOT_PATH + 'chrome/test/data/webui/polymer_browser_test_base.js']); 11 [ROOT_PATH + 'chrome/test/data/webui/polymer_browser_test_base.js']);
12 GEN('#include "base/command_line.h"'); 12 GEN('#include "base/command_line.h"');
13 13
14 function MaterialBookmarksBrowserTest() {} 14 function MaterialBookmarksBrowserTest() {}
15 15
16 MaterialBookmarksBrowserTest.prototype = { 16 MaterialBookmarksBrowserTest.prototype = {
17 __proto__: PolymerTest.prototype, 17 __proto__: PolymerTest.prototype,
18 18
19 browsePreload: 'chrome://bookmarks', 19 browsePreload: 'chrome://bookmarks',
20 20
21 commandLineSwitches: [{switchName: 'enable-features', 21 commandLineSwitches: [{switchName: 'enable-features',
22 switchValue: 'MaterialDesignBookmarks'}], 22 switchValue: 'MaterialDesignBookmarks'}],
23 23
24 /** @override */
tsergeant 2017/01/03 23:31:17 Get rid of this again (we removed it in the last r
jiaxi 2017/01/04 02:50:16 Done.
25 runAccessibilityChecks: false,
26
24 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ 27 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([
25 'test_util.js', 28 'test_util.js',
26 ]), 29 ]),
27 }; 30 };
28 31
29 function MaterialBookmarksStoreTest() {} 32 function MaterialBookmarksStoreTest() {}
30 33
31 MaterialBookmarksStoreTest.prototype = { 34 MaterialBookmarksStoreTest.prototype = {
32 __proto__: MaterialBookmarksBrowserTest.prototype, 35 __proto__: MaterialBookmarksBrowserTest.prototype,
33 36
34 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([ 37 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([
35 'store_test.js', 38 'store_test.js',
36 ]), 39 ]),
37 }; 40 };
38 41
39 TEST_F('MaterialBookmarksStoreTest', 'All', function() { 42 TEST_F('MaterialBookmarksStoreTest', 'All', function() {
40 mocha.run(); 43 mocha.run();
41 }); 44 });
45
46 function MaterialBookmarksSidebarTest() {}
47
48 MaterialBookmarksSidebarTest.prototype = {
49 __proto__: MaterialBookmarksBrowserTest.prototype,
50
51 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([
52 'sidebar_test.js',
53 ]),
54 };
55
56 TEST_F('MaterialBookmarksSidebarTest', 'All', function() {
57 mocha.run();
58 });
59
60 function MaterialBookmarksItemTest() {}
61
62 MaterialBookmarksItemTest.prototype = {
63 __proto__: MaterialBookmarksBrowserTest.prototype,
64
65 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([
66 'item_test.js',
67 ]),
68 };
69
70 TEST_F('MaterialBookmarksItemTest', 'All', function() {
71 mocha.run();
72 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698