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

Unified Diff: chrome/test/data/webui/md_history/history_toolbar_test.js

Issue 1993613002: [MD History] Implement grouped history UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@privatize
Patch Set: address comments Created 4 years, 7 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_toolbar_test.js
diff --git a/chrome/test/data/webui/md_history/history_toolbar_test.js b/chrome/test/data/webui/md_history/history_toolbar_test.js
index 56148125a3b96c7ac01f6c438ddae5ef819f5579..e69ce86cfaa340ff9b7e3aaebcd0f03db07aaf03 100644
--- a/chrome/test/data/webui/md_history/history_toolbar_test.js
+++ b/chrome/test/data/webui/md_history/history_toolbar_test.js
@@ -5,13 +5,15 @@
cr.define('md_history.history_toolbar_test', function() {
function registerTests() {
suite('history-toolbar', function() {
+ var app;
var element;
var toolbar;
var TEST_HISTORY_RESULTS;
suiteSetup(function() {
- element = $('history-app').$['history-list'];
- toolbar = $('history-app').$['toolbar'];
+ app = $('history-app');
+ element = app.$['history-list'];
+ toolbar = app.$['toolbar'];
TEST_HISTORY_RESULTS =
[createHistoryEntry('2016-03-15', 'https://google.com')];
});
@@ -43,6 +45,7 @@ cr.define('md_history.history_toolbar_test', function() {
});
test('search term gathered correctly from toolbar', function(done) {
+ app.queryingDisabled_ = false;
registerMessageCallback('queryHistory', this, function (info) {
assertEquals(info[0], 'Test');
done();
@@ -52,6 +55,7 @@ cr.define('md_history.history_toolbar_test', function() {
});
test('more from this site sends and sets correct data', function(done) {
+ app.queryingDisabled_ = false;
registerMessageCallback('queryHistory', this, function (info) {
assertEquals('example.com', info[0]);
flush(function() {

Powered by Google App Engine
This is Rietveld 408576698