OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // The id of an extension we're using for install tests. | 5 // The id of an extension we're using for install tests. |
6 var extensionId = "enfkhcelefdadlmkffamgdlgplcionje"; | 6 var extensionId = "enfkhcelefdadlmkffamgdlgplcionje"; |
7 | 7 |
8 // The id of an app we're using for install tests. | 8 // The id of an app we're using for install tests. |
9 var appId = "iladmdjkfniedhfhcfoefgojhgaiaccc"; | 9 var appId = "iladmdjkfniedhfhcfoefgojhgaiaccc"; |
10 | 10 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 // Now complete the installation. | 84 // Now complete the installation. |
85 chrome.webstorePrivate.completeInstall( | 85 chrome.webstorePrivate.completeInstall( |
86 extensionId, | 86 extensionId, |
87 callbackPass(function(result) { | 87 callbackPass(function(result) { |
88 assertNoLastError(); | 88 assertNoLastError(); |
89 assertEq(undefined, result); | 89 assertEq(undefined, result); |
90 | 90 |
91 whileInstalled(); | 91 whileInstalled(); |
92 | 92 |
93 chrome.management.uninstall(extensionId, {}, callbackPass()); | 93 chrome.test.runWithUserGesture(callbackPass(function() { |
| 94 chrome.management.uninstall(extensionId, {}, callbackPass()); |
| 95 })); |
94 })); | 96 })); |
95 })); | 97 })); |
96 } | 98 } |
OLD | NEW |