1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // The id of the extension in localized_extension.crx.
6 var localizedId
= "oolblhbomdbcpmafphaodhjfcgbihcdg";
10 // This tests an install passing a localized name.
11 function localizeName() {
12 // See things through all the way to a successful install.
13 listenOnce(chrome
.management
.onInstalled
, function(info
) {
14 assertEq(info
.id
, localizedId
);
17 var manifest
= getManifest('localized_extension/manifest.json');
18 var messages
= getManifest('localized_extension/_locales/fr/messages.json');
19 getIconData(function(icon
) {
21 chrome
.webstorePrivate
.beginInstallWithManifest3(
22 { 'id':localizedId
, 'iconData': icon
, 'manifest': manifest
,
23 'localizedName': 'Le Title', 'locale': 'fr' },
24 callbackPass(function(result
) {
26 chrome
.webstorePrivate
.completeInstall(localizedId
, callbackPass());