Chromium Code Reviews| 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 20d4cfe7d62ed4834e9b4a89b1450574de2ef87c..eba4382ae77acb0a6b6b057f34178a9dc083db0e 100644 |
| --- a/chrome/test/data/webui/md_history/history_toolbar_test.js |
| +++ b/chrome/test/data/webui/md_history/history_toolbar_test.js |
| @@ -92,7 +92,21 @@ cr.define('md_history.history_toolbar_test', function() { |
| }) |
| }); |
| + test('more from this site sends and sets correct data', function(done) { |
| + registerMessageCallback('queryHistory', this, function (info) { |
| + assertEquals(info[0], 'Test'); |
| + done(); |
| + }); |
| + |
| + element.menuIdentifier = []; |
|
calamity
2016/02/03 05:09:13
Use {}.
hsampson
2016/02/08 00:39:37
Done.
|
| + element.menuIdentifier.domain = 'Test'; |
| + element.onMoreFromSiteTap_(); |
| + assertEquals(toolbar.$$('#search-input').$$('#search-input').value, |
| + 'Test'); |
| + }); |
| + |
| teardown(function() { |
| + element.searchTerm = ''; |
| element.historyDataByDay_ = []; |
| toolbar.count = 0; |
| }); |