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

Unified Diff: chrome/test/data/extensions/browsertest/request_quota_background/background.js

Issue 10943026: Regression test for quota_context (not for commit) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/browsertest/request_quota_background/background.js
diff --git a/chrome/test/data/extensions/api_test/lazy_background_page/messaging/background.js b/chrome/test/data/extensions/browsertest/request_quota_background/background.js
similarity index 55%
copy from chrome/test/data/extensions/api_test/lazy_background_page/messaging/background.js
copy to chrome/test/data/extensions/browsertest/request_quota_background/background.js
index 06f93384622109a5632e00492d9f19ae65c7dcce..c9ac05b7fe314df733ac8e1113ddec03a7275639 100644
--- a/chrome/test/data/extensions/api_test/lazy_background_page/messaging/background.js
+++ b/chrome/test/data/extensions/browsertest/request_quota_background/background.js
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-chrome.extension.onConnect.addListener(function(port) {
- port.onMessage.addListener(function(msg) {
- chrome.test.notifyPass();
+webkitStorageInfo.requestQuota(PERSISTENT, 1, function() {
+ chrome.tabs.getSelected(null, function(tab) {
+ chrome.pageAction.show(tab.id);
});
});
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/data/extensions/browsertest/request_quota_background/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698