зеркало из https://github.com/mozilla/gecko-dev.git
bug 496846 - run browser tests via file:.
This commit is contained in:
Родитель
444ee67a40
Коммит
4eb27023a0
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче