Index: chrome/test/data/extensions/bookmarks/bookmark_api.html |
=================================================================== |
--- chrome/test/data/extensions/bookmarks/bookmark_api.html (revision 14841) |
+++ chrome/test/data/extensions/bookmarks/bookmark_api.html (working copy) |
@@ -1,26 +1,4 @@ |
<html> |
-<style> |
-body { |
- overflow: hidden; |
- margin: 0 0 0 0; |
-} |
- |
-/* TODO: put the background style into body when |
- https://bugs.webkit.org/show_bug.cgi?id=18445 is fixed. */ |
-.content { |
- background: -webkit-gradient(linear, left top, left bottom, from(rgb(222, 234, 248)), to(rgb(237, 244, 252))); |
- padding: 1; |
- white-space: nowrap; |
-} |
- |
-.button { |
- display: inline; |
- border: 1px solid silver; |
- padding: 2px; |
- margin: 1px 3px; |
- height: 100%; |
-} |
-</style> |
<script> |
var dump = function(obj, indent) { |
@@ -45,14 +23,20 @@ |
} |
var testMoveBookmarks = function(event) { |
+ testMoveBookmarks2(event); |
+} |
+ |
+var testMoveBookmarks2 = function(event) { |
+ console.log(testMoveBookmarks2.caller.name); |
if (event.shiftKey) { |
// TODO - it would be nice to have a mechanism to do this built-in to a |
// context menu. |
window.location.reload(); |
return; |
} |
- console.log("testMoveBookmarks"); |
+ console.log("testMoveBookmarks2"); |
chromium.bookmarks.get([], function(root) { |
+ console.log("1"); |
chromium.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, |
@@ -93,25 +77,14 @@ |
var dumpBookmarks = function(event) { |
window.open("bookmark_view.html"); |
- /* |
- console.dir(results); |
- var win = window.open(); |
- win.document.write("<html><body><pre>"); |
- win.document.write(dump(results)); |
- win.document.write("</pre></body></html>"); |
- win.document.title = "Bookmarks"; |
- }); |
- */ |
}; |
</script> |
<body> |
-<div class="content"> |
-<div class="button" onclick="dumpBookmarks(window.event);"> |
-Dump Bookmarks |
+<div class="toolbar-button" onclick="dumpBookmarks(window.event);"> |
+<span>Dump Bookmarks</span> |
</div> |
-<div class="button" onclick="testMoveBookmarks(window.event);"> |
-Test Move |
+<div class="toolbar-button" onclick="testMoveBookmarks(window.event);"> |
+<span>Test Move</span> |
</div> |
-</div> |
</body> |
</html> |