Bug 650965 Permaorange, log waitForAndContinue and more sanity checks r=wesj
authorBenjamin Stover <bstover@mozilla.com>
Thu, 28 Apr 2011 20:24:40 -0700
changeset 68742 88d3c5bde0ba47b6ef120a628ea52a5da79745a8
parent 68741 3b1fa83ffc99714e0cd8dc85c00ccc70f69b6d91
child 68743 ff152a406ed36f5cde57b65e0c1025a5b16821af
child 68925 6c2b6aea1d897e6c00d33046545f20659751b094
push id19731
push userbstover@mozilla.com
push dateFri, 29 Apr 2011 03:16:31 +0000
treeherdermozilla-central@88d3c5bde0ba [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswesj
bugs650965
milestone6.0a1
first release with
nightly linux32
88d3c5bde0ba / 6.0a1 / 20110429030623 / files
nightly linux64
88d3c5bde0ba / 6.0a1 / 20110429030623 / files
nightly mac
88d3c5bde0ba / 6.0a1 / 20110429030623 / files
nightly win32
88d3c5bde0ba / 6.0a1 / 20110429030623 / files
nightly win64
88d3c5bde0ba / 6.0a1 / 20110429030210 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 650965 Permaorange, log waitForAndContinue and more sanity checks r=wesj
mobile/chrome/tests/browser_addons.js
--- a/mobile/chrome/tests/browser_addons.js
+++ b/mobile/chrome/tests/browser_addons.js
@@ -357,39 +357,45 @@ function testPrompt(aTitle, aMessage, aB
   }
 }
 
 // Installs an addon via the urlbar.
 function installFromURLBar(aAddon) {
   return function() {
     loadUrl(gTestURL, function() {
       loadUrl(aAddon.sourceURL, null, false);
+      let elt = get_addon_element(aAddon.id);
+      ok(!elt, "Addon element is not present before installation");
+      if (elt)
+        info("unexpectedly found element in: " + elt.parentNode.id);
       checkInstallAlert(true, function() {
         checkDownloadNotification(function() {
           checkInstallPopup(aAddon.name, function() {
             checkInstallNotification(!aAddon.bootstrapped, function() {
               open_manager(true, function() {
                 isRestartShown(!aAddon.bootstrapped, false, function() {
                   let elt = get_addon_element(aAddon.id);
+                  info("elt.id is " + aAddon.id);
                   if (aAddon.bootstrapped) {
                     checkAddonListing(aAddon, elt, "local");
                     var button = document.getAnonymousElementByAttribute(elt, "anonid", "uninstall-button");
                     ok(!!button, "Extension has uninstall button");
 
                     var updateButton = document.getElementById("addons-update-all");
                     is(updateButton.disabled, false, "Update button is enabled");
 
                     ExtensionsView.uninstall(elt);
                     waitForAndContinue(function() {
                       let elt = get_addon_element(aAddon.id);
                       ok(!elt, "Addon element removed during uninstall");
                       Browser.closeTab(gCurrentTab);
                       close_manager(run_next_test);
                     }, function() {
                       let elt = get_addon_element(aAddon.id);
+                      info("Looking for element with id " + aAddon.id + ": " + elt);
                       return !elt;
                     });
                   } else {
                     ok(!elt, "Extension not in list");
                     AddonManager.getAllInstalls(function(aInstalls) {
                       for(var i = 0; i < aInstalls.length; i++) {
                         aInstalls[i].cancel();
                       }