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

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

Issue 320473002: Added the "unmodifiable" property to chrome.bookmarks.BookmarkTreeNode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: chrome/test/data/extensions/api_test/bookmarks/test.js
diff --git a/chrome/test/data/extensions/api_test/bookmarks/test.js b/chrome/test/data/extensions/api_test/bookmarks/test.js
index c1fe9f1a8cbf94d5092135901f81c1c0bb0aba4b..1a0dcdeeda444308907edb8c01f5964cd76b0afc 100644
--- a/chrome/test/data/extensions/api_test/bookmarks/test.js
+++ b/chrome/test/data/extensions/api_test/bookmarks/test.js
@@ -13,10 +13,12 @@ var expected = [
{"children": [
{children:[], id:"1", parentId:"0", index:0, title:"Bookmarks bar"},
{children:[], id:"2", parentId:"0", index:1, title:"Other bookmarks"},
- {id:"4", parentId:"0", index:3, title:"Managed bookmarks", children:[
+ {id:"4", parentId:"0", index:3, title:"Managed bookmarks",
+ unmodifiable:"managed", children:[
{id:"5", parentId:"4", index:0, title:"Managed Bookmark",
- url: "http://www.chromium.org/"},
- {id:"6", parentId:"4", index:1, title:"Managed Folder", children:[]}
+ url:"http://www.chromium.org/", unmodifiable:"managed"},
+ {id:"6", parentId:"4", index:1, title:"Managed Folder",
+ children:[], unmodifiable:"managed"}
]
}
],
@@ -61,6 +63,10 @@ function compareNode(left, right) {
return "url mismatch: " + left.url + " != " + right.url;
if (left.index != right.index)
return "index mismatch: " + left.index + " != " + right.index;
+ if (left.unmodifiable != right.unmodifiable) {
+ return "unmodifiable mismatch: " + left.unmodifiable +
+ " != " + right.unmodifiable;
+ }
return true;
}

Powered by Google App Engine
This is Rietveld 408576698