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

Unified Diff: chrome/test/data/extensions/api_test/bookmarks/test.js

Issue 591006: Make it so that chrome.bookmarks.update can update the URL of a bookmark.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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/common/extensions/docs/tabs.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/bookmarks/test.js
===================================================================
--- chrome/test/data/extensions/api_test/bookmarks/test.js (revision 38359)
+++ chrome/test/data/extensions/api_test/bookmarks/test.js (working copy)
@@ -268,6 +268,13 @@
chrome.bookmarks.update(node1.id, {"title": title}, pass(function(results) {
chrome.test.assertEq(title, results.title);
}));
+
+ var url = "http://example.com/hello"
+ chrome.bookmarks.update(node1.id, {"url": url}, pass(function(results) {
+ // Make sure that leaving out the title does not set the title to empty.
+ chrome.test.assertEq(title, results.title);
+ chrome.test.assertEq(url, results.url);
+ }));
},
function remove() {
« no previous file with comments | « chrome/common/extensions/docs/tabs.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698