diff options
Diffstat (limited to 'toolkit/mozapps/extensions/test/browser/browser_updateid.js')
-rw-r--r-- | toolkit/mozapps/extensions/test/browser/browser_updateid.js | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/toolkit/mozapps/extensions/test/browser/browser_updateid.js b/toolkit/mozapps/extensions/test/browser/browser_updateid.js index 0fe3eeec5..a6672e825 100644 --- a/toolkit/mozapps/extensions/test/browser/browser_updateid.js +++ b/toolkit/mozapps/extensions/test/browser/browser_updateid.js @@ -49,20 +49,16 @@ add_test(function() { gProvider.installs[0]._addonToInstall = newAddon; var item = get_addon_element(gManagerWindow, "addon1@tests.mozilla.org"); + is(item._version.value, "1.0", "Should still show the old version in the normal list"); var name = gManagerWindow.document.getAnonymousElementByAttribute(item, "anonid", "name"); is(name.value, "manually updating addon", "Should show the old name in the list"); - get_tooltip_info(item).then(({ name, version }) => { - is(name, "manually updating addon", "Should show the old name in the tooltip"); - is(version, "1.0", "Should still show the old version in the tooltip"); + var update = gManagerWindow.document.getAnonymousElementByAttribute(item, "anonid", "update-btn"); + is_element_visible(update, "Update button should be visible"); - var update = gManagerWindow.document.getAnonymousElementByAttribute(item, "anonid", "update-btn"); - is_element_visible(update, "Update button should be visible"); + item = get_addon_element(gManagerWindow, "addon2@tests.mozilla.org"); + is(item, null, "Should not show the new version in the list"); - item = get_addon_element(gManagerWindow, "addon2@tests.mozilla.org"); - is(item, null, "Should not show the new version in the list"); - - run_next_test(); - }); + run_next_test(); }); }); |