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

Unified Diff: chrome/test/data/webui/md_history/history_item_test.js

Issue 2097003002: MD History: Remove bookmark when clicking bookmark star (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor change Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/md_history_ui.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..884f522b1b4c7e6306dba149fa9f392928990f11 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,20 @@ 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);
+ });
+ });
+
test('long titles are trimmed', function() {
var item = document.createElement('history-item');
var longtitle = '0123456789'.repeat(100);
« no previous file with comments | « chrome/browser/ui/webui/md_history_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698