Index: chrome/test/data/webui/md_bookmarks/item_test.js |
diff --git a/chrome/test/data/webui/md_bookmarks/item_test.js b/chrome/test/data/webui/md_bookmarks/item_test.js |
index 4d29419044d668050da7898479740a369c90ae50..caddf52419b1b63dd8ea058b20c0638b927b9c66 100644 |
--- a/chrome/test/data/webui/md_bookmarks/item_test.js |
+++ b/chrome/test/data/webui/md_bookmarks/item_test.js |
@@ -12,8 +12,8 @@ suite('<bookmarks-item>', function() { |
nodes: testTree(createFolder( |
'1', |
[ |
- createItem(['2']), |
- createItem(['3']), |
+ createItem('2', {url: 'http://example.com/'}), |
+ createItem('3'), |
])), |
}); |
bookmarks.Store.instance_ = store; |
@@ -60,4 +60,16 @@ suite('<bookmarks-item>', function() { |
bookmarks.actions.selectItem('2', false, false, store.data), |
store.lastAction); |
}); |
+ |
+ test('anchor tag updates with item url', function() { |
+ assertEquals('http://example.com/', item.$.url.href); |
+ |
+ store.data.nodes['2'] = createItem('0', {url: 'https://mail.google.com'}); |
+ store.notifyObservers(); |
+ assertEquals('https://mail.google.com/', item.$.url.href); |
+ |
+ // Change to a folder. |
+ item.itemId = '1'; |
+ assertEquals('chrome://bookmarks/?id=1', item.$.url.href); |
+ }); |
}); |