Bug 623750: browser_bug596336.js cannot run by itself. r=Unfocused, a=tests

This commit is contained in:
Dave Townsend 2011-01-06 15:45:25 -08:00
parent 8f61f2c5d1
commit c35b10906d
3 changed files with 47 additions and 46 deletions

View File

@ -340,7 +340,14 @@ add_test(function() {
check_contextmenu(false, false, true, true, false);
gContextMenu.hidePopup();
// Delete the created install
AddonManager.getAllInstalls(function(aInstalls) {
is(aInstalls.length, 1, "Should be one available install");
aInstalls[0].cancel();
run_next_test();
});
}, false);
info("Opening context menu on remote extension, in detail view");

View File

@ -19,13 +19,7 @@ function test() {
}
function end_test() {
// Test generates an available installs so just cancel it
AddonManager.getAllInstalls(function(aInstalls) {
is(aInstalls.length, 1, "Should be one available install");
aInstalls[0].cancel();
close_manager(gManagerWindow, finish);
});
}
function get_list_item_count() {

View File

@ -472,7 +472,7 @@ MockProvider.prototype = {
addons: null,
installs: null,
started: null,
apiDelay: 100,
apiDelay: 10,
callbackTimers: null,
useAsyncCallbacks: null,