diff options
Diffstat (limited to 'toolkit/mozapps/extensions/test/browser/browser_bug593535.js')
-rw-r--r-- | toolkit/mozapps/extensions/test/browser/browser_bug593535.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/toolkit/mozapps/extensions/test/browser/browser_bug593535.js b/toolkit/mozapps/extensions/test/browser/browser_bug593535.js index fd23d0036..a78ef9a23 100644 --- a/toolkit/mozapps/extensions/test/browser/browser_bug593535.js +++ b/toolkit/mozapps/extensions/test/browser/browser_bug593535.js @@ -10,11 +10,10 @@ const SEARCH_URL = TESTROOT + "browser_bug593535.xml"; const QUERY = "NOTFOUND"; var gProvider; -var gManagerWindow; function test() { waitForExplicitFinish(); - + // Turn on searching for this test Services.prefs.setIntPref(PREF_SEARCH_MAXRESULTS, 15); @@ -86,12 +85,12 @@ function getAnonymousElementByAttribute(aElement, aName, aValue) { // Tests that a failed install for a remote add-on will ask to retry the install add_test(function() { var remoteItem; - + var listener = { onDownloadFailed: function(aInstall) { aInstall.removeListener(this); ok(true, "Install failed as expected"); - + executeSoon(function() { is(remoteItem.getAttribute("notification"), "warning", "Item should have notification attribute set to 'warning'"); is_element_visible(remoteItem._warning, "Warning text should be visible"); @@ -100,7 +99,7 @@ add_test(function() { run_next_test(); }); }, - + onInstallEnded: function() { ok(false, "Install should have failed"); } @@ -112,7 +111,7 @@ add_test(function() { list.ensureElementIsVisible(remoteItem); remoteItem.mAddon.install.addListener(listener); - + var installBtn = get_install_button(remoteItem); EventUtils.synthesizeMouseAtCenter(installBtn, { }, gManagerWindow); }); |