| 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);
|
| +
|
|
|