mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 11:27:49 +00:00
Bug 555942: Fix naming of getInstalls in plugins tests. r=robstrong
This commit is contained in:
parent
805a26c863
commit
b68d45677b
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user