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 9ab28b9d823af8bfa739b9f6f0c4f8a84b1c5e66..0fb1bb7af945c455f221fdf956eb9378b8d95598 100644 |
--- a/chrome/test/data/webui/md_history/history_item_test.js |
+++ b/chrome/test/data/webui/md_history/history_item_test.js |
@@ -76,6 +76,21 @@ 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; |
+ |
+ items = Polymer.dom(element.root).querySelectorAll('history-item'); |
+ MockInteractions.tap(items[1].$$('#bookmark-star')); |
+ |
+ assertEquals(element.historyData_[1].starred, false); |
+ assertEquals(element.historyData_[5].starred, false); |
+ return flush(); |
tsergeant
2016/07/01 04:27:10
Nit: You shouldn't need this line here.
return fl
lshang
2016/07/01 06:12:07
Done.
|
+ }); |
+ }); |
+ |
test('long titles are trimmed', function() { |
var item = document.createElement('history-item'); |
var longtitle = '0123456789'.repeat(100); |