var dirServ; 
    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();    },
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/7eeed473b4be37d71045e355c99e7e50aad6fa95/test_registerdirectory.js/buggy/netwerk/test/httpserver/test/test_registerdirectory.js