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

Side by Side Diff: chrome/test/data/webui/md_history/md_history_browsertest.js

Issue 2684493002: MD History: Delete Grouped History (Closed)
Patch Set: Rebase Created 3 years, 10 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 /** 5 /**
6 * @fileoverview Test suite for the Material Design history page. 6 * @fileoverview Test suite for the Material Design history page.
7 */ 7 */
8 8
9 var ROOT_PATH = '../../../../../'; 9 var ROOT_PATH = '../../../../../';
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ 77 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([
78 'history_drawer_test.js', 78 'history_drawer_test.js',
79 ]), 79 ]),
80 }; 80 };
81 81
82 TEST_F('MaterialHistoryDrawerTest', 'All', function() { 82 TEST_F('MaterialHistoryDrawerTest', 'All', function() {
83 mocha.run(); 83 mocha.run();
84 }); 84 });
85 85
86 function MaterialHistoryGroupedListTest() {}
87
88 MaterialHistoryGroupedListTest.prototype = {
89 __proto__: MaterialHistoryBrowserTest.prototype,
90
91 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([
92 'history_grouped_list_test.js',
93 ]),
94 };
95
96 TEST_F('MaterialHistoryGroupedListTest', 'All', function() {
97 mocha.run();
98 });
99
100 function MaterialHistoryItemTest() {} 86 function MaterialHistoryItemTest() {}
101 87
102 MaterialHistoryItemTest.prototype = { 88 MaterialHistoryItemTest.prototype = {
103 __proto__: MaterialHistoryBrowserTest.prototype, 89 __proto__: MaterialHistoryBrowserTest.prototype,
104 90
105 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ 91 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([
106 'history_item_test.js', 92 'history_item_test.js',
107 ]), 93 ]),
108 }; 94 };
109 95
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 TEST_F('MaterialHistoryRoutingTest', 'All', function() { 152 TEST_F('MaterialHistoryRoutingTest', 'All', function() {
167 md_history.history_routing_test.registerTests(); 153 md_history.history_routing_test.registerTests();
168 mocha.run(); 154 mocha.run();
169 }); 155 });
170 156
171 function MaterialHistoryRoutingWithQueryParamTest() {} 157 function MaterialHistoryRoutingWithQueryParamTest() {}
172 158
173 MaterialHistoryRoutingWithQueryParamTest.prototype = { 159 MaterialHistoryRoutingWithQueryParamTest.prototype = {
174 __proto__: MaterialHistoryRoutingTest.prototype, 160 __proto__: MaterialHistoryRoutingTest.prototype,
175 161
176 browsePreload: 'chrome://history/history/week?q=query&offset=5', 162 browsePreload: 'chrome://history/?q=query',
177
178 commandLineSwitches:
179 MaterialHistoryBrowserTest.prototype.commandLineSwitches.concat([
180 {switchName: 'enable-grouped-history'}
181 ]),
182 163
183 /** @override */ 164 /** @override */
184 setUp: function() { 165 setUp: function() {
185 PolymerTest.prototype.setUp.call(this); 166 PolymerTest.prototype.setUp.call(this);
186 // This message handler needs to be registered before the test since the 167 // This message handler needs to be registered before the test since the
187 // query can happen immediately after the element is upgraded. However, 168 // query can happen immediately after the element is upgraded. However,
188 // since there may be a delay as well, the test might check the global var 169 // since there may be a delay as well, the test might check the global var
189 // too early as well. In this case the test will have overtaken the 170 // too early as well. In this case the test will have overtaken the
190 // callback. 171 // callback.
191 registerMessageCallback('queryHistory', this, function (info) { 172 registerMessageCallback('queryHistory', this, function (info) {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 __proto__: MaterialHistoryBrowserTest.prototype, 227 __proto__: MaterialHistoryBrowserTest.prototype,
247 228
248 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ 229 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([
249 'history_toolbar_test.js', 230 'history_toolbar_test.js',
250 ]), 231 ]),
251 }; 232 };
252 233
253 TEST_F('MaterialHistoryToolbarTest', 'All', function() { 234 TEST_F('MaterialHistoryToolbarTest', 'All', function() {
254 mocha.run(); 235 mocha.run();
255 }); 236 });
OLDNEW
« no previous file with comments | « chrome/test/data/webui/md_history/history_toolbar_test.js ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698