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

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

Issue 2962133002: MD History: Update timestamp hover text when item changes (Closed)
Patch Set: Be lazy again Created 3 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/resources/md_history/history_item.js ('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 ba6e4e83f22b263b506ce3e78be28d56689a9693..088cabfbf07f997f2e89ac40d55051b4afd94ca6 100644
--- a/chrome/test/data/webui/md_history/history_item_test.js
+++ b/chrome/test/data/webui/md_history/history_item_test.js
@@ -54,6 +54,17 @@ suite('<history-item> unit test', function() {
assertEquals(item.$['checkbox'], item.root.activeElement);
});
});
+
+ test('title changes with item', function() {
+ var time = item.$['time-accessed'];
+ assertEquals('', time.title);
+
+ time.dispatchEvent(new CustomEvent('mouseover'));
+ var initialTitle = time.title;
+ item.item = TEST_HISTORY_RESULTS[5];
+ time.dispatchEvent(new CustomEvent('mouseover'));
+ assertNotEquals(initialTitle, time.title);
+ });
});
suite('<history-item> integration test', function() {
« no previous file with comments | « chrome/browser/resources/md_history/history_item.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698