var fn = encodeURIComponent(f.name) + sep; do_check_eq(uri.path, path + fn); 
do_check_eq(decodeURIComponent(uri.path), path + f.name + sep); 
function dataCheck(bytes, uri, path, dirEntries){  var data = String.fromCharCode.apply(null, bytes);  var parser = Cc["@mozilla.org/xmlextras/domparser;1"]                 .createInstance(Ci.nsIDOMParser);  // Note: the index format isn't XML -- it's actually HTML -- but we require  //       the index format also be valid XML, albeit XML without namespaces,  //       XML declarations, etc.  Doing this simplifies output checking.  try  {    var doc = parser.parseFromString(data, "application/xml");  }  catch (e)  {    do_throw("document failed to parse as XML");  }  // See all the .QueryInterface()s and .item()s happening here?  That's because  // xpcshell sucks and doesn't have classinfo, so no automatic interface  // flattening or array-style access to items in NodeLists.  Suck.  var body = doc.documentElement.getElementsByTagName("body");  do_check_eq(body.length, 1);  body = body.item(0);  // header  var header = body.QueryInterface(Ci.nsIDOMElement)                   .getElementsByTagName("h1");  do_check_eq(header.length, 1);  do_check_eq(header.item(0).QueryInterface(Ci.nsIDOM3Node).textContent, path);  // files  var lst = body.getElementsByTagName("ol");  do_check_eq(lst.length, 1);  var items = lst.item(0).QueryInterface(Ci.nsIDOMElement)                         .getElementsByTagName("li");  var ios = Cc["@mozilla.org/network/io-service;1"]              .getService(Ci.nsIIOService);  var top = ios.newURI(uri, null, null);  for (var i = 0; i < items.length; i++)  {    var link = items.item(i)                    .childNodes                    .item(0)                    .QueryInterface(Ci.nsIDOM3Node)                    .QueryInterface(Ci.nsIDOMElement);    var f = dirEntries[i];    var sep = f.isDirectory ? "/" : "";    do_check_eq(link.textContent, f.name + sep);    var uri = ios.newURI(link.getAttribute("href"), null, top);    var fn = encodeURIComponent(f.name) + sep;    do_check_eq(uri.path, path + fn);  }}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/2b27fe648e2bcfc8a9287920102eb35070e9fb5d/test_default_index_handler.js/clean/netwerk/test/httpserver/test/test_default_index_handler.js