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

Unified Diff: chrome/test/data/extensions/api_test/webstore_private/localized.js

Issue 6992047: Change the web store private install API to accept a localized extension name. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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/api_test/webstore_private/localized.js
diff --git a/chrome/test/data/extensions/api_test/webstore_private/localized.js b/chrome/test/data/extensions/api_test/webstore_private/localized.js
new file mode 100644
index 0000000000000000000000000000000000000000..132b293e01921059d1a5014d65eae8e4fae4fdfd
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/webstore_private/localized.js
@@ -0,0 +1,34 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// The id of the extension in localized_extension.crx.
+var localizedId = "oolblhbomdbcpmafphaodhjfcgbihcdg";
+
+var tests = [
+
+ // This tests an install passing a localized name.
+ function localizeName() {
+ // See things through all the way to a successful install.
+ listenOnce(chrome.management.onInstalled, callbackPass(function(info) {
+ assertEq(info.id, localizedId);
+ }));
+
+ var manifest = getManifest('localized_extension/manifest.json');
+ var messages = getManifest('localized_extension/_locales/fr/messages.json');
+ getIconData(function(icon) {
+ // Begin installing.
+ chrome.webstorePrivate.beginInstallWithManifest2(
+ { 'id':localizedId, 'iconData': icon, 'manifest': manifest,
+ 'localizedName': 'Le Title', 'locale': 'fr' },
+ callbackPass(function(result) {
+ assertEq(result, "");
+ chrome.webstorePrivate.completeInstall(localizedId, callbackPass());
+ }));
+ });
+ }
+
+];
+
+runTests(tests);
+

Powered by Google App Engine
This is Rietveld 408576698