- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / api_test / webstore_private / theme.html
1 <!--
2  * Copyright (c) 2012 The Chromium Authors. All rights reserved.  Use of this
3  * source code is governed by a BSD-style license that can be found in the
4  * LICENSE file.
5 -->
6 <script src="common.js"></script>
7 <script>
8
9 var themeId = 'iamefpfkojoapidjnbafmgkgncegbkad';
10
11 runTests([
12   function installTheme() {
13     listenOnce(chrome.management.onInstalled, function(info) {
14       assertEq(info.id, themeId);
15     });
16
17     var manifest = getManifest("../../theme/manifest.json");
18     chrome.webstorePrivate.beginInstallWithManifest3(
19         {id: themeId, manifest: manifest},
20         callbackPass(function(result) {
21       assertEq("", result);
22       chrome.webstorePrivate.completeInstall(themeId, callbackPass());
23     }));
24   }
25 ]);
26
27 </script>