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

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

Issue 1802013003: MD History: Refactor how data is created in tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update param type Created 4 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 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 77a9a70d74196bc3043281f9b93a6e8ca0ae2c42..b43709f6a451e387bc19812e9ee437e6c5a3e635 100644
--- a/chrome/test/data/webui/md_history/history_toolbar_test.js
+++ b/chrome/test/data/webui/md_history/history_toolbar_test.js
@@ -3,23 +3,17 @@
// found in the LICENSE file.
cr.define('md_history.history_toolbar_test', function() {
- // Array of test history data.
- var TEST_HISTORY_RESULTS = [
- {
- "dateRelativeDay": "Today - Wednesday, December 9, 2015",
- "title": "Google",
- "url": "https://www.google.com"
- }
- ];
-
function registerTests() {
suite('history-toolbar', function() {
var element;
var toolbar;
+ var TEST_HISTORY_RESULTS;
suiteSetup(function() {
element = $('history-list');
toolbar = $('toolbar');
+ TEST_HISTORY_RESULTS =
+ [createHistoryEntry('2016-03-15', 'https://google.com')];
});
test('selecting checkbox causes toolbar to change', function(done) {
@@ -59,6 +53,7 @@ cr.define('md_history.history_toolbar_test', function() {
teardown(function() {
element.historyData = [];
+ registerMessageCallback('queryHistory', this, undefined);
toolbar.count = 0;
});
});
« no previous file with comments | « chrome/test/data/webui/md_history/history_supervised_user_test.js ('k') | chrome/test/data/webui/md_history/test_util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698