gecko/modules/libpr0n/test/reftest/icon/win/bug415761cleanup.sjs
Neil Rashbrook 85d3ff805d Bug 553874 - Add a reftest that compares blank to blank, to get a chance to remove the file created by bug415761.sjs so the tinderboxes don't fail trying to clean it up for the next run
--HG--
rename : modules/libpr0n/test/reftest/icon/win/bug415761.sjs => modules/libpr0n/test/reftest/icon/win/bug415761cleanup.sjs
2010-03-21 21:33:50 -07:00

13 lines
439 B
JavaScript

function handleRequest(request, response)
{
var self = Components.classes["@mozilla.org/file/local;1"]
.createInstance(Components.interfaces.nsILocalFile);
self.initWithPath(getState("__LOCATION__"));
var dest = self.parent;
dest.append("\u263a.ico");
if (dest.exists())
dest.remove(false);
response.setStatusLine(request.httpVersion, 200, "OK");
response.setHeader("Content-Type", "text/html");
}