rem: dirServ = Cc["@mozilla.org/file/directory_service;1"] .getService(Ci.nsIProperties); serverBasePath = dirServ.get("CurProcD", Ci.nsILocalFile); serverBasePath.append("httpserver_tests"); 
add: serverBasePath = testsDirectory.clone(); 
context:     onStopRequest: function(request, cx, status)    {      var dirServ;      switch (currPathIndex)      {        case 0:          // now set a base path          dirServ = Cc["@mozilla.org/file/directory_service;1"]                      .getService(Ci.nsIProperties);          serverBasePath = dirServ.get("CurProcD", Ci.nsILocalFile);          serverBasePath.append("httpserver_tests");          srv.registerDirectory("/", serverBasePath);          break;        case 1:          // remove base path          serverBasePath = null;          srv.registerDirectory("/", serverBasePath);          break;        case 3:          // register overriding path          srv.registerPathHandler("/test_registerdirectory.js",                                  override_test_registerdirectory);          break;        case 4:          // unregister overriding path          srv.registerPathHandler("/test_registerdirectory.js", null);          break;        case 5:          // set the base path again          dirServ = Cc["@mozilla.org/file/directory_service;1"]                      .getService(Ci.nsIProperties);          serverBasePath = dirServ.get("CurProcD", Ci.nsILocalFile);          serverBasePath.append("httpserver_tests");          srv.registerDirectory("/", serverBasePath);          break;        case 6:          // register overriding path          srv.registerPathHandler("/test_registerdirectory.js",                                  override_test_registerdirectory);          break;        case 7:          // remove base path          serverBasePath = null;          srv.registerDirectory("/", serverBasePath);          break;        case 8:          // unregister overriding path          srv.registerPathHandler("/test_registerdirectory.js", null);          break;        case 9:          // register /foo/ as a base path          dirServ = Cc["@mozilla.org/file/directory_service;1"]                      .getService(Ci.nsIProperties);          serverBasePath = dirServ.get("CurProcD", Ci.nsILocalFile);          serverBasePath.append("httpserver_tests");          srv.registerDirectory("/foo/", serverBasePath);          break;        case 10:          // do nothing          break;        case 11:          // now register an overriding path to handle the URL that just failed          srv.registerDirectory("/foo/test_registerdirectory.js/", serverBasePath);          break;        case 12:          // do nothing          break;        case 13:          srv.registerDirectory("/foo/", null);          break;        case 14:          // do nothing          break;        case 15:          srv.registerDirectory("/foo/test_registerdirectory.js/", null);          break;      }      if (!paths[++currPathIndex])        srv.stop();      else        performNextTest();      do_test_finished();    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/df236c24aba9fc265dba7c1b8318156d0cde2b8d/test_registerdirectory.js/clean/netwerk/test/httpserver/test/test_registerdirectory.js