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

Side by Side Diff: chrome/test/data/extensions/api_test/bookmark_manager/standard/test.js

Issue 10966025: Change bookmarkManager API from experimental to private. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bookmarkManager->bookmarkManagerPrivate Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Bookmark Manager API test for Chrome. 5 // Bookmark Manager API test for Chrome.
6 // browser_tests.exe --gtest_filter=ExtensionApiTest.BookmarkManager 6 // browser_tests.exe --gtest_filter=ExtensionApiTest.BookmarkManager
7 7
8 const pass = chrome.test.callbackPass; 8 const pass = chrome.test.callbackPass;
9 const fail = chrome.test.callbackFail; 9 const fail = chrome.test.callbackFail;
10 const assertEq = chrome.test.assertEq; 10 const assertEq = chrome.test.assertEq;
11 const assertTrue = chrome.test.assertTrue; 11 const assertTrue = chrome.test.assertTrue;
12 const bookmarks = chrome.bookmarks; 12 const bookmarks = chrome.bookmarks;
13 const bookmarkManager = chrome.experimental.bookmarkManager; 13 const bookmarkManager = chrome.bookmarkManagerPrivate;
14 var fooNode, fooNode2, barNode, gooNode, count, emptyFolder, emptyFolder2; 14 var fooNode, fooNode2, barNode, gooNode, count, emptyFolder, emptyFolder2;
15 var folder, nodeA, nodeB; 15 var folder, nodeA, nodeB;
16 var childFolder, grandChildFolder, childNodeA, childNodeB; 16 var childFolder, grandChildFolder, childNodeA, childNodeB;
17 17
18 var clipboardArguments; 18 var clipboardArguments;
19 function doCopy() { 19 function doCopy() {
20 clipboardArguments = arguments; 20 clipboardArguments = arguments;
21 document.execCommand('copy'); 21 document.execCommand('copy');
22 } 22 }
23 function doCut() { 23 function doCut() {
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 }, 295 },
296 296
297 function canEdit() { 297 function canEdit() {
298 bookmarkManager.canEdit(pass(function(result) { 298 bookmarkManager.canEdit(pass(function(result) {
299 assertTrue(result, 'Should be able to edit bookmarks'); 299 assertTrue(result, 'Should be able to edit bookmarks');
300 })); 300 }));
301 } 301 }
302 ]; 302 ];
303 303
304 chrome.test.runTests(tests); 304 chrome.test.runTests(tests);
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/bookmark_manager/standard/manifest.json ('k') | webkit/glue/webclipboard_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698