From b68d45677be64e030e2edf4d7c13ac7daacb7185 Mon Sep 17 00:00:00 2001 From: Dave Townsend Date: Mon, 26 Apr 2010 13:53:42 -0700 Subject: [PATCH] Bug 555942: Fix naming of getInstalls in plugins tests. r=robstrong --- toolkit/mozapps/plugins/tests/browser_bug435788.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toolkit/mozapps/plugins/tests/browser_bug435788.js b/toolkit/mozapps/plugins/tests/browser_bug435788.js index c08fbcdef397..1e1b03f5ca30 100644 --- a/toolkit/mozapps/plugins/tests/browser_bug435788.js +++ b/toolkit/mozapps/plugins/tests/browser_bug435788.js @@ -348,7 +348,7 @@ function test_5_complete() { ok(item, "Should have seen the installed item"); is(item.status, "Installed", "Should have been a successful install"); - AddonManager.getInstalls(null, function(installs) { + AddonManager.getAllInstalls(function(installs) { is(installs.length, 1, "Should be just one install"); is(installs[0].state, AddonManager.STATE_INSTALLED, "Should be fully installed"); is(installs[0].addon.id, "bug435788_1@tests.mozilla.org", "Should have installed the extension"); @@ -463,7 +463,7 @@ function test_7_complete() { ok(item, "Should have seen the installed item"); is(item.status, "Failed", "Should have been a failed install"); - AddonManager.getInstalls(null, function(installs) { + AddonManager.getAllInstalls(function(installs) { is(installs.length, 1, "Should be one active installs"); installs[0].cancel(); @@ -520,7 +520,7 @@ function test_8_complete() { ok(item, "Should have seen the installed item"); is(item.status, "Failed", "Should have not been a successful install"); - AddonManager.getInstalls(null, function(installs) { + AddonManager.getAllInstalls(function(installs) { is(installs.length, 0, "Should not be any installs"); gPFS.document.documentElement.getButton("finish").click();