зеркало из https://github.com/mozilla/pjs.git
Bug 650965 - Test for removed addons after a delay. r=mfinkle
This commit is contained in:
Родитель
168392819d
Коммит
eb19cf63b3
|
@ -372,10 +372,14 @@ function installFromURLBar(aAddon) {
|
||||||
is(updateButton.disabled, false, "Update button is enabled");
|
is(updateButton.disabled, false, "Update button is enabled");
|
||||||
|
|
||||||
ExtensionsView.uninstall(elt);
|
ExtensionsView.uninstall(elt);
|
||||||
|
setTimeout(function() {
|
||||||
elt = get_addon_element(aAddon.id);
|
elt = get_addon_element(aAddon.id);
|
||||||
ok(!elt, "Addon element removed during uninstall");
|
ok(!elt || !elt.addon, "Addon element removed during uninstall");
|
||||||
|
if (elt && !elt.addon)
|
||||||
|
info("Element is still visible in search area");
|
||||||
Browser.closeTab(gCurrentTab);
|
Browser.closeTab(gCurrentTab);
|
||||||
close_manager(run_next_test);
|
close_manager(run_next_test);
|
||||||
|
}, 0);
|
||||||
} else {
|
} else {
|
||||||
ok(!elt, "Extension not in list");
|
ok(!elt, "Extension not in list");
|
||||||
AddonManager.getAllInstalls(function(aInstalls) {
|
AddonManager.getAllInstalls(function(aInstalls) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче