Chromium Code Reviews| Index: chrome/test/data/webui/md_history/history_item_test.js |
| diff --git a/chrome/test/data/webui/md_history/history_item_test.js b/chrome/test/data/webui/md_history/history_item_test.js |
| index 8714c511600e4e2bbbb7e8e3af7c7e1f728df8bb..94744a0d609bee67d0b00d58f0cfc8ffeb68196e 100644 |
| --- a/chrome/test/data/webui/md_history/history_item_test.js |
| +++ b/chrome/test/data/webui/md_history/history_item_test.js |
| @@ -79,14 +79,25 @@ cr.define('md_history.history_item_test', function() { |
| test('remove bookmarks', function() { |
| element.addNewResults(TEST_HISTORY_RESULTS); |
| return flush().then(function() { |
| - element.historyData_[1].starred = true; |
| - element.historyData_[5].starred = true; |
| + element.set('historyData_.1.starred', true); |
| + element.set('historyData_.5.starred', true); |
| items = Polymer.dom(element.root).querySelectorAll('history-item'); |
| - MockInteractions.tap(items[1].$$('#bookmark-star')); |
| + items[1].$['bookmark-star'].focus(); |
| + MockInteractions.tap(items[1].$['bookmark-star']); |
| + |
| + // Check that focus is shifted to overflow menu icon. |
| + assertEquals(items[1].root.activeElement, items[1].$['menu-button']); |
| + // Check that all items matching this url are unstarred. |
| assertEquals(element.historyData_[1].starred, false); |
| assertEquals(element.historyData_[5].starred, false); |
| + assertEquals( |
|
tsergeant
2016/07/15 04:50:01
I'm not certain whether we want to test these valu
calamity
2016/07/18 05:03:43
I'm happy to leave this here. I feel like this is
tsergeant
2016/07/19 03:36:06
sure, sgtm
|
| + window.getComputedStyle(items[1].$['bookmark-star']).visibility, |
| + 'hidden'); |
| + assertEquals( |
| + window.getComputedStyle(items[5].$['bookmark-star']).visibility, |
| + 'hidden'); |
| }); |
| }); |