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

Unified Diff: chrome/test/data/webui/md_history/history_supervised_user_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_supervised_user_test.js
diff --git a/chrome/test/data/webui/md_history/history_supervised_user_test.js b/chrome/test/data/webui/md_history/history_supervised_user_test.js
index caa1abe1d3dd01fd14b795945175726c920f3175..a39a39ff6828a155071334c472fc08236f9d4816 100644
--- a/chrome/test/data/webui/md_history/history_supervised_user_test.js
+++ b/chrome/test/data/webui/md_history/history_supervised_user_test.js
@@ -3,20 +3,15 @@
// found in the LICENSE file.
cr.define('md_history.history_supervised_user_test', function() {
- // Array of test history data.
- var TEST_HISTORY_RESULTS = [
- {
- "dateRelativeDay": "Today - Wednesday, December 9, 2015",
- "url": "https://www.google.com"
- }
- ];
-
function registerTests() {
suite('history-list supervised-user', function() {
var element;
+ var TEST_HISTORY_RESULTS;
suiteSetup(function() {
element = $('history-list');
+ TEST_HISTORY_RESULTS =
+ [createHistoryEntry('2016-03-15', 'https://www.google.com')];
});
setup(function() {
« no previous file with comments | « chrome/test/data/webui/md_history/history_list_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