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

Unified Diff: chrome/test/data/webui/md_history/history_routing_test.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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/webui/md_history/history_routing_test.js
diff --git a/chrome/test/data/webui/md_history/history_routing_test.js b/chrome/test/data/webui/md_history/history_routing_test.js
index 2ebae99f5bbd4633bf17b7e12be694adcf5190da..db5c01c91f1100830e49386ed4fbca676a4b29fe 100644
--- a/chrome/test/data/webui/md_history/history_routing_test.js
+++ b/chrome/test/data/webui/md_history/history_routing_test.js
@@ -80,34 +80,6 @@ cr.define('md_history.history_routing_test', function() {
assertEquals(searchTerm, toolbar.searchTerm);
assertEquals('chrome://history/?q=' + searchTerm, window.location.href);
});
-
- test('changing route changes grouped range and offset', function() {
- app.grouped_ = true;
- navigateTo('/history/week?offset=1');
- assertEquals(HistoryRange.WEEK, app.queryState_.range);
- assertEquals(1, app.queryState_.groupedOffset);
-
- navigateTo('/history/month');
- assertEquals(HistoryRange.MONTH, app.queryState_.range);
- assertEquals(0, app.queryState_.groupedOffset);
-
- navigateTo('/');
- assertEquals(HistoryRange.ALL_TIME, app.queryState_.range);
- });
-
- test('route updates from grouped range and offset', function() {
- app.grouped_ = true;
-
- app.fire('change-query', {range: HistoryRange.WEEK});
- assertEquals('chrome://history/history/week', window.location.href);
-
- app.fire('change-query', {range: HistoryRange.MONTH, offset: 5});
- assertEquals(
- 'chrome://history/history/month?offset=5', window.location.href);
-
- app.fire('change-query', {range: HistoryRange.ALL_TIME});
- assertEquals('chrome://history/', window.location.href);
- });
});
}
return {
@@ -131,8 +103,6 @@ cr.define('md_history.history_routing_test_with_query_param', function() {
test('search initiated on load', function(done) {
var verifyFunction = function(info) {
assertEquals(expectedQuery, info[0]);
- assertEquals(5, info[1]);
- assertEquals(HistoryRange.WEEK, info[2]);
PolymerTest.flushTasks().then(function() {
assertEquals(
expectedQuery,
« no previous file with comments | « chrome/test/data/webui/md_history/history_metrics_test.js ('k') | chrome/test/data/webui/md_history/history_toolbar_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698