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

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

Issue 411053002: Remove bookmarks API client-side write operations limits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: fully remove test helper Created 6 years, 5 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/api/bookmarks.json ('k') | extensions/browser/api/test/test_api.h » ('j') | 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
diff --git a/chrome/test/data/extensions/api_test/bookmarks/test.js b/chrome/test/data/extensions/api_test/bookmarks/test.js
index 1a0dcdeeda444308907edb8c01f5964cd76b0afc..89c896510e42aec876b2110e305dd7dbe6d462e0 100644
--- a/chrome/test/data/extensions/api_test/bookmarks/test.js
+++ b/chrome/test/data/extensions/api_test/bookmarks/test.js
@@ -36,12 +36,6 @@ var node2 = {parentId:"1", title:"foo quux",
url:"http://www.example.com/bar"};
var node3 = {parentId:"1", title:"Foo bar baz",
url:"http://www.google.com/hello/quux"};
-var quota_node1 = {parentId:"1", title:"Dave",
- url:"http://www.dmband.com/"};
-var quota_node2 = {parentId:"1", title:"UW",
- url:"http://www.uwaterloo.ca/"};
-var quota_node3 = {parentId:"1", title:"Whistler",
- url:"http://www.whistlerblackcomb.com/"};
var pass = chrome.test.callbackPass;
var fail = chrome.test.callbackFail;
@@ -469,51 +463,6 @@ chrome.test.runTests([
}));
},
- function quotaLimitedCreate() {
- var node = {parentId:"1", title:"quotacreate", url:"http://www.quota.com/"};
- for (i = 0; i < 100; i++) {
- chrome.bookmarks.create(node, pass(function(results) {
- expected[0].children[0].children.push(results);
- }));
- }
- chrome.bookmarks.create(
- node,
- fail("This request exceeds the MAX_WRITE_OPERATIONS_PER_HOUR quota."));
-
- chrome.test.resetQuota();
-
- // Also, test that > 100 creations of different items is fine.
- for (i = 0; i < 101; i++) {
- var changer = {parentId:"1", title:"" + i, url:"http://www.quota.com/"};
- chrome.bookmarks.create(changer, pass(function(results) {
- expected[0].children[0].children.push(results);
- }));
- }
- },
-
- function quotaSetup() {
- createNodes(bookmarksBar(),
- [quota_node1, quota_node2, quota_node3],
- pass(function() {
- verifyTreeIsExpected(pass());
- }));
- },
-
- function quotaLimitedUpdate() {
- var title = "hello, world!";
- for (i = 0; i < 100; i++) {
- chrome.bookmarks.update(quota_node1.id, {"title": title},
- pass(function(results) {
- chrome.test.assertEq(title, results.title);
- }
- ));
- }
- chrome.bookmarks.update(quota_node1.id, {"title": title},
- fail("This request exceeds the MAX_WRITE_OPERATIONS_PER_HOUR quota."));
-
- chrome.test.resetQuota();
- },
-
function getRecentSetup() {
// Clean up tree
["1", "2"].forEach(function(id) {
« no previous file with comments | « chrome/common/extensions/api/bookmarks.json ('k') | extensions/browser/api/test/test_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698