mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 548171: Make getFile function on SERVER_ROOT platform independent. r=waldo
This commit is contained in:
parent
8a2732a347
commit
8b7855784a
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user