This commit is contained in:
Daniel Holbert 2010-02-02 18:57:41 -08:00
commit 4000f3b277

View File

@ -205,6 +205,19 @@ function createMochitestServer(serverBasePath)
server.registerContentType("oga", "audio/ogg");
server.setIndexHandler(defaultDirHandler);
var serverRoot =
{
getFile: function getFile(path)
{
var file = serverBasePath.clone().QueryInterface(Ci.nsILocalFile);
file.appendRelativePath(path);
return file;
},
QueryInterface: function(aIID) { return this; }
};
server.setObjectState("SERVER_ROOT", serverRoot);
processLocations(server);
return server;