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