Content tab test bustage fix for bug 513653 - move whatsUrl to global scope so it can be accessed by all functions.
authorMark Banner <bugzilla@standard8.plus.com>
Tue, 01 Sep 2009 21:41:04 +0100
changeset 3483 49795b7f767f41d824036347128de7dec8fef443
parent 3482 014559d2105b491a9e47f691a0786d579df4fb49
child 3484 c98edd97fb3fd24ce6996cb704006ccf7c1ba8f2
push idunknown
push userunknown
push dateunknown
bugs513653
Content tab test bustage fix for bug 513653 - move whatsUrl to global scope so it can be accessed by all functions.
mail/test/mozmill/content-tabs/test-content-tab.js
--- a/mail/test/mozmill/content-tabs/test-content-tab.js
+++ b/mail/test/mozmill/content-tabs/test-content-tab.js
@@ -50,27 +50,27 @@ Components.utils.import('resource://mozm
 
 var windowHelper;
 var mainController = null;
 var mc;
 
 // RELATIVE_ROOT messes with the collector, so we have to bring the path back
 // so we get the right path for the resources.
 var url = collector.addHttpResource('../content-tabs/html', 'content-tabs');
+var whatsUrl = url + "whatsnew.html";
 
 var setupModule = function (module) {
   windowHelper = collector.getModule('window-helpers');
   mc = mainController = windowHelper.wait_for_existing_window("mail:3pane");
   windowHelper.installInto(module);
   windowHelper.augment_controller(mc);
 };
 
 function test_content_tab_open() {
   let preCount = mc.tabmail.tabContainer.childNodes.length;
-  let whatsUrl = url + "whatsnew.html";
 
   // Set the pref so that what's new opens a local url
   Components.classes["@mozilla.org/preferences-service;1"]
             .getService(Components.interfaces.nsIPrefBranch)
             .setCharPref("mailnews.start_page.override_url",
                          whatsUrl);
 
   mc.click(new elementslib.Elem(mc.menus.helpMenu.whatsNew));