Bug 864271 - Permanent orange: TEST-UNEXPECTED-FAIL | browser_dataman_basics.js | Test timed out, r=KaiRo
authorFrank Wein <mcsmurf@mcsmurf.de>
Tue, 30 Apr 2013 14:24:03 +0200
changeset 12377 346a2722d7e9e8f8a9d2e9066a4db8b77621704f
parent 12376 d65767045b33e33c0322ae31be613efed8c45362
child 12378 3c006f64c18271f3b56f71078102b960d1290ce2
push id9134
push usermcsmurf@mcsmurf.de
push dateTue, 30 Apr 2013 12:28:13 +0000
treeherdercomm-central@346a2722d7e9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersKaiRo
bugs864271
Bug 864271 - Permanent orange: TEST-UNEXPECTED-FAIL | browser_dataman_basics.js | Test timed out, r=KaiRo
suite/common/dataman/tests/browser_dataman_basics.js
--- a/suite/common/dataman/tests/browser_dataman_basics.js
+++ b/suite/common/dataman/tests/browser_dataman_basics.js
@@ -771,17 +771,18 @@ function test_idn(aWin) {
   Services.obs.notifyObservers(window, TEST_DONE, null);
 },
 
 function test_storage_load(aWin) {
   // Load the page that fills in several web storage entries.
   Services.perms.add(Services.io.newURI("http://mochi.test:8888/", null, null),
                      "offline-app", Services.perms.ALLOW_ACTION);
 
-  let rootDir = "http://mochi.test:8888/browser/extensions/dataman/tests/";
+  // Get the http address from the current chrome test path
+  let rootDir = getRootDirectory(gTestPath).replace("chrome://mochitests/content/", "http://mochi.test:8888/");
   let testURL = rootDir + "dataman_storage.html";
   let storagetab = gBrowser.addTab(testURL);
   let stWin = storagetab.linkedBrowser.contentWindow.wrappedJSObject;
   let dmStorageListener = {
     handleEvent: function dmStorageHandler(aEvent) {
       let tab = aEvent.target;
       if (tab == storagetab) {
         gBrowser.tabContainer.removeEventListener("TabClose", this, false);