mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 00:25:27 +00:00
merge
This commit is contained in:
commit
4000f3b277
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user