Bug 548171: Make getFile function on SERVER_ROOT platform independent. r=waldo

This commit is contained in:
Jonas Sicking 2010-02-23 18:04:35 -08:00
parent 8a2732a347
commit 8b7855784a

View File

@ -211,7 +211,9 @@ function createMochitestServer(serverBasePath)
getFile: function getFile(path)
{
var file = serverBasePath.clone().QueryInterface(Ci.nsILocalFile);
file.appendRelativePath(path);
path.split("/").forEach(function(p) {
file.appendRelativePath(p);
});
return file;
},
QueryInterface: function(aIID) { return this; }