bug 496846 - run browser tests via file:.

This commit is contained in:
Bob Clary 2009-08-18 00:29:58 -07:00
Родитель 444ee67a40
Коммит 4eb27023a0
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -698,15 +698,18 @@ function jsTestDriverBrowserInit()
var subsuite = testpathparts[testpathparts.length - 2];
var test = testpathparts[testpathparts.length - 1];
document.write('<title>' + suitepath + '/' + subsuite + '/' + test + '<\/title>');
// XXX bc - the first document.written script is ignored if the protocol
// is file:. insert an empty script tag, to work around it.
document.write('<script></script>');
outputscripttag(suitepath + '/shell.js', properties);
outputscripttag(suitepath + '/browser.js', properties);
outputscripttag(suitepath + '/' + subsuite + '/shell.js', properties);
outputscripttag(suitepath + '/' + subsuite + '/browser.js', properties);
outputscripttag(suitepath + '/' + subsuite + '/' + test, properties,
properties.e4x || /e4x\//.test(properties.test));
document.write('<title>' + suitepath + '/' + subsuite + '/' + test + '<\/title>');
outputscripttag('js-test-driver-end.js', properties);
return;
}