| Index: chrome/test/data/webui/md_history/history_card_manager_test.js
|
| diff --git a/chrome/test/data/webui/md_history/history_card_manager_test.js b/chrome/test/data/webui/md_history/history_card_manager_test.js
|
| index 6e511db02cf9cefe060bc1ddab1d7ad87a2a1da0..919ad6c5053a3ae2f0d03a482cdd2196958593e4 100644
|
| --- a/chrome/test/data/webui/md_history/history_card_manager_test.js
|
| +++ b/chrome/test/data/webui/md_history/history_card_manager_test.js
|
| @@ -51,7 +51,7 @@ cr.define('md_history.history_card_manager_test', function() {
|
| });
|
|
|
| setup(function() {
|
| - element.addNewResults(TEST_HISTORY_RESULTS);
|
| + element.addNewResults(TEST_HISTORY_RESULTS, '');
|
| });
|
|
|
| test('splitting items by day', function() {
|
| @@ -59,11 +59,11 @@ cr.define('md_history.history_card_manager_test', function() {
|
|
|
| // Ensure that the output is in reversed date order.
|
| assertEquals("Today - Wednesday, December 9, 2015",
|
| - element.historyDataByDay_[0].date);
|
| + element.historyDataByDay_[0].cardTitle);
|
| assertEquals("Yesterday - Tuesday, December 8, 2015",
|
| - element.historyDataByDay_[1].date);
|
| + element.historyDataByDay_[1].cardTitle);
|
| assertEquals("Monday, December 7, 2015",
|
| - element.historyDataByDay_[2].date);
|
| + element.historyDataByDay_[2].cardTitle);
|
| assertEquals("https://www.example.com",
|
| element.historyDataByDay_[2].historyItems[0].url);
|
| assertEquals("https://www.google.com",
|
| @@ -106,17 +106,17 @@ cr.define('md_history.history_card_manager_test', function() {
|
| });
|
|
|
| test('updating history results', function() {
|
| - element.addNewResults(ADDITIONAL_RESULTS);
|
| + element.addNewResults(ADDITIONAL_RESULTS, '');
|
|
|
| assertEquals(5, element.historyDataByDay_.length);
|
|
|
| // Ensure that the output is still in reverse order.
|
| assertEquals("Monday, December 7, 2015",
|
| - element.historyDataByDay_[2].date);
|
| + element.historyDataByDay_[2].cardTitle);
|
| assertEquals("Sunday, December 6, 2015",
|
| - element.historyDataByDay_[3].date);
|
| + element.historyDataByDay_[3].cardTitle);
|
| assertEquals("Saturday, December 5, 2015",
|
| - element.historyDataByDay_[4].date);
|
| + element.historyDataByDay_[4].cardTitle);
|
|
|
| // Ensure that the correct items have been appended to the list.
|
| assertEquals("https://en.wikipedia.com",
|
|
|