mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1051066 - fix mochitest-chrome for single test runs, r=ted
--HG-- extra : rebase_source : 85ddaf183d33014d86b5659db10871b9ae2abc94
This commit is contained in:
parent
a263dd4d86
commit
55dd0d3812
@ -337,7 +337,7 @@ class MochitestRunner(MozbuildObject):
|
||||
manifest = TestManifest()
|
||||
manifest.tests.extend(tests)
|
||||
|
||||
if (len(tests) == 1):
|
||||
if len(tests) == 1:
|
||||
options.closeWhenDone = False
|
||||
|
||||
options.manifestFile = manifest
|
||||
|
@ -517,9 +517,11 @@ TestRunner.runTests = function (/*url...*/) {
|
||||
var singleTestRun = this._urls.length <= 1 && TestRunner.repeat <= 1;
|
||||
TestRunner.showTestReport = singleTestRun;
|
||||
var frame = $('testframe');
|
||||
frame.src="";
|
||||
frame.src = "";
|
||||
if (singleTestRun) {
|
||||
document.body.setAttribute("singletest", singleTestRun);
|
||||
// Can't use document.body because this runs in a XUL doc as well...
|
||||
var body = document.getElementsByTagName("body")[0];
|
||||
body.setAttribute("singletest", "true");
|
||||
frame.removeAttribute("scrolling");
|
||||
}
|
||||
TestRunner._checkForHangs();
|
||||
|
Loading…
Reference in New Issue
Block a user