summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/extensions/samples/bookmarks
diff options
context:
space:
mode:
authorrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-05 18:25:01 +0000
committerrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-05 18:25:01 +0000
commit28c47ee963812e92e2eb921ed1778f5db74041bc (patch)
tree4fe3226b1a17e845379d73b4ce29ae8504d39860 /chrome/test/data/extensions/samples/bookmarks
parente4c893a1534ba215f0b66eb9ee3ac87bc8c72143 (diff)
downloadchromium_src-28c47ee963812e92e2eb921ed1778f5db74041bc.zip
chromium_src-28c47ee963812e92e2eb921ed1778f5db74041bc.tar.gz
chromium_src-28c47ee963812e92e2eb921ed1778f5db74041bc.tar.bz2
BUG=11200
R=aa Review URL: http://codereview.chromium.org/110001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15310 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/data/extensions/samples/bookmarks')
-rw-r--r--chrome/test/data/extensions/samples/bookmarks/bookmark_api.html16
-rw-r--r--chrome/test/data/extensions/samples/bookmarks/bookmark_view.html20
2 files changed, 18 insertions, 18 deletions
diff --git a/chrome/test/data/extensions/samples/bookmarks/bookmark_api.html b/chrome/test/data/extensions/samples/bookmarks/bookmark_api.html
index 89641ab..4005ddc 100644
--- a/chrome/test/data/extensions/samples/bookmarks/bookmark_api.html
+++ b/chrome/test/data/extensions/samples/bookmarks/bookmark_api.html
@@ -34,11 +34,11 @@ var testMoveBookmarks2 = function(event) {
return;
}
console.log("testMoveBookmarks2");
- chromium.bookmarks.get([], function(root) {
+ chrome.bookmarks.get([], function(root) {
console.log("1");
- chromium.bookmarks.get(root[0].childrenIds, function(root_children) {
+ chrome.bookmarks.get(root[0].childrenIds, function(root_children) {
var bookmark_bar = root_children[0]; // bookmarks bar is always first
- chromium.bookmarks.get(bookmark_bar.childrenIds,
+ chrome.bookmarks.get(bookmark_bar.childrenIds,
function(bar_children) {
var folder_search = [];
bar_children.forEach(function(child) {
@@ -50,18 +50,18 @@ var testMoveBookmarks2 = function(event) {
console.log('moving children out of "folder"');
var folder = folder_search[0];
folder.childrenIds.forEach(function(folder_child_id) {
- chromium.bookmarks.move({'id': folder_child_id,
+ chrome.bookmarks.move({'id': folder_child_id,
'parentId': bookmark_bar.id});
});
- chromium.bookmarks.remove({'id': folder.id});
+ chrome.bookmarks.remove({'id': folder.id});
} else if (folder_search.length == 0) {
console.log('creating "folder" and moving children into it');
- chromium.bookmarks.create({'parentId': bookmark_bar.id,
+ chrome.bookmarks.create({'parentId': bookmark_bar.id,
'title': 'folder'},
function(folder) {
- chromium.bookmarks.search("oog", function(oog_search) {
+ chrome.bookmarks.search("oog", function(oog_search) {
oog_search.forEach(function(oog_match) {
- chromium.bookmarks.move({'id': oog_match.id,
+ chrome.bookmarks.move({'id': oog_match.id,
'parentId': folder.id})
});
});
diff --git a/chrome/test/data/extensions/samples/bookmarks/bookmark_view.html b/chrome/test/data/extensions/samples/bookmarks/bookmark_view.html
index 5b9b064..b629852 100644
--- a/chrome/test/data/extensions/samples/bookmarks/bookmark_view.html
+++ b/chrome/test/data/extensions/samples/bookmarks/bookmark_view.html
@@ -29,7 +29,7 @@
// code that sets up our v8 extensions, and we don't end up with them running.
//
// If we noticed this happened, reload ourselves, which should fix it.
-if (!chromium.bookmarks)
+if (!chrome.bookmarks)
location.reload();
var logEvent = function(name, data) {
@@ -38,23 +38,23 @@ var logEvent = function(name, data) {
console.log("got event: " + name);
}
-chromium.bookmarks.onBookmarkAdded.addListener(function(data) {
+chrome.bookmarks.onBookmarkAdded.addListener(function(data) {
logEvent("onBookmarkAdded", data);
});
-chromium.bookmarks.onBookmarkRemoved.addListener(function(data) {
+chrome.bookmarks.onBookmarkRemoved.addListener(function(data) {
logEvent("onBookmarkRemoved", data);
});
-chromium.bookmarks.onBookmarkChanged.addListener(function(data) {
+chrome.bookmarks.onBookmarkChanged.addListener(function(data) {
logEvent("onBookmarkChanged", data);
});
-chromium.bookmarks.onBookmarkMoved.addListener(function(data) {
+chrome.bookmarks.onBookmarkMoved.addListener(function(data) {
logEvent("onBookmarkMoved", data);
});
-chromium.bookmarks.onBookmarkChildrenReordered.addListener(function(data) {
+chrome.bookmarks.onBookmarkChildrenReordered.addListener(function(data) {
logEvent("onBookmarkChildrenReordered", data);
});
@@ -71,7 +71,7 @@ var toggleBookmark = function(event) {
return;
console.log("toggle: " + id);
//console.dir(event);
- chromium.bookmarks.get([id], function(bookmark) {
+ chrome.bookmarks.get([id], function(bookmark) {
//console.log("toggle get");
console.dir(bookmark[0]);
if (bookmark[0].childrenIds && bookmark[0].childrenIds.length) {
@@ -80,7 +80,7 @@ var toggleBookmark = function(event) {
node.removeChild(node.childNodes[1]);
} else {
//console.log("before");
- chromium.bookmarks.get(bookmark[0].childrenIds, function(children) {
+ chrome.bookmarks.get(bookmark[0].childrenIds, function(children) {
//console.log("toggle expand");
if (children && children.length) {
console.dir(children);
@@ -122,14 +122,14 @@ var addBookmarks = function(bookmarks, parent) {
var loadBookmarks = function() {
var container = document.getElementById('container');
- chromium.bookmarks.get([], function(results) {
+ chrome.bookmarks.get([], function(results) {
var root = results[0];
console.dir(root);
var rootElement = document.createElement("div");
rootElement.id = prefix + root.id;
// root element is empty / invisible, just an id to be looked up
container.appendChild(rootElement);
- chromium.bookmarks.get(root.childrenIds, function(children) {
+ chrome.bookmarks.get(root.childrenIds, function(children) {
addBookmarks(children, rootElement);
});
});