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

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

Issue 1932413003: [MD History] Refactor history.html into a history-app element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address nit 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 cr.define('md_history.history_item_test', function() { 5 cr.define('md_history.history_item_test', function() {
6 function registerTests() { 6 function registerTests() {
7 suite('history-item', function() { 7 suite('history-item', function() {
8 var element; 8 var element;
9 var TEST_HISTORY_RESULTS; 9 var TEST_HISTORY_RESULTS;
10 var SEARCH_HISTORY_RESULTS; 10 var SEARCH_HISTORY_RESULTS;
11 11
12 suiteSetup(function() { 12 suiteSetup(function() {
13 element = $('history-list'); 13 element = $('history-app').$['history-list'];
14 TEST_HISTORY_RESULTS = [ 14 TEST_HISTORY_RESULTS = [
15 createHistoryEntry('2016-03-16 10:00', 'http://www.google.com'), 15 createHistoryEntry('2016-03-16 10:00', 'http://www.google.com'),
16 createHistoryEntry('2016-03-16 9:00', 'http://www.example.com'), 16 createHistoryEntry('2016-03-16 9:00', 'http://www.example.com'),
17 createHistoryEntry('2016-03-16 7:01', 'http://www.badssl.com'), 17 createHistoryEntry('2016-03-16 7:01', 'http://www.badssl.com'),
18 createHistoryEntry('2016-03-16 7:00', 'http://www.website.com'), 18 createHistoryEntry('2016-03-16 7:00', 'http://www.website.com'),
19 createHistoryEntry('2016-03-16 4:00', 'http://www.website.com'), 19 createHistoryEntry('2016-03-16 4:00', 'http://www.website.com'),
20 createHistoryEntry('2016-03-15 11:00', 'http://www.example.com'), 20 createHistoryEntry('2016-03-15 11:00', 'http://www.example.com'),
21 ]; 21 ];
22 22
23 SEARCH_HISTORY_RESULTS = [ 23 SEARCH_HISTORY_RESULTS = [
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 teardown(function() { 87 teardown(function() {
88 element.historyData = []; 88 element.historyData = [];
89 }); 89 });
90 }); 90 });
91 } 91 }
92 return { 92 return {
93 registerTests: registerTests 93 registerTests: registerTests
94 }; 94 };
95 }); 95 });
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/md_history_ui.cc ('k') | chrome/test/data/webui/md_history/history_list_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698