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

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

Issue 2746363013: [MD Bookmarks] Add a drag and drop indicator to bookmarks. (Closed)
Patch Set: address comments, add test Created 3 years, 9 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 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ 24 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([
25 'test_store.js', 25 'test_store.js',
26 'test_util.js', 26 'test_util.js',
27 ]), 27 ]),
28 }; 28 };
29 29
30 function MaterialBookmarksDNDManagerTest() {}
31
32 MaterialBookmarksDNDManagerTest.prototype = {
33 __proto__: MaterialBookmarksBrowserTest.prototype,
34
35 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([
36 'dnd_manager_test.js',
37 ]),
38 };
39
40 TEST_F('MaterialBookmarksDNDManagerTest', 'All', function() {
41 mocha.run();
42 });
43
30 function MaterialBookmarksStoreTest() {} 44 function MaterialBookmarksStoreTest() {}
31 45
32 MaterialBookmarksStoreTest.prototype = { 46 MaterialBookmarksStoreTest.prototype = {
33 __proto__: MaterialBookmarksBrowserTest.prototype, 47 __proto__: MaterialBookmarksBrowserTest.prototype,
34 48
35 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([ 49 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([
36 'store_test.js', 50 'store_test.js',
37 ]), 51 ]),
38 }; 52 };
39 53
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 browsePreload: 'chrome://bookmarks/store_client.html', 120 browsePreload: 'chrome://bookmarks/store_client.html',
107 121
108 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([ 122 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([
109 'store_client_test.js', 123 'store_client_test.js',
110 ]), 124 ]),
111 }; 125 };
112 126
113 TEST_F('MaterialBookmarksStoreClientTest', 'All', function() { 127 TEST_F('MaterialBookmarksStoreClientTest', 'All', function() {
114 mocha.run(); 128 mocha.run();
115 }); 129 });
130
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698