зеркало из https://github.com/mozilla/gecko-dev.git
Bug 415761 Adding Windows-only test r=waldo
This commit is contained in:
Родитель
3d7073c4a5
Коммит
bb888ef855
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 766 B |
|
@ -0,0 +1,20 @@
|
|||
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);
|
||||
var src = self.parent;
|
||||
src.append("bug415761.ico");
|
||||
src.copyTo(null, dest.leafName);
|
||||
var uri = Components.classes["@mozilla.org/network/io-service;1"]
|
||||
.getService(Components.interfaces.nsIIOService)
|
||||
.newFileURI(dest).spec;
|
||||
response.setStatusLine(request.httpVersion, 200, "OK");
|
||||
response.setHeader("Content-Type", "text/html");
|
||||
response.setHeader("Cache-Control", "no-cache");
|
||||
response.write("<img src=\"moz-icon:" + uri + "\">");
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
skip-if(MOZ_WIDGET_TOOLKIT!="windows") HTTP == bug415761.sjs bug415761.ico
|
|
@ -28,6 +28,9 @@ include gif/reftest.list
|
|||
# APNG tests
|
||||
include apng/reftest.list
|
||||
|
||||
# Icon tests
|
||||
include icon/win/reftest.list
|
||||
|
||||
# Generic image tests
|
||||
include generic/reftest.list
|
||||
|
||||
|
|
|
@ -2598,6 +2598,9 @@ ServerHandler.prototype =
|
|||
self._setObjectState(k, v);
|
||||
});
|
||||
|
||||
// Make it possible for sjs files to access their location
|
||||
this._setState(path, "__LOCATION__", file.path);
|
||||
|
||||
try
|
||||
{
|
||||
// Alas, the line number in errors dumped to console when calling the
|
||||
|
|
Загрузка…
Ссылка в новой задаче