mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1261816 - Guard against the mochitest harness finish()ing a test that already finished. r=jmaher a=test-only
MozReview-Commit-ID: 3w5xfSgJteG
This commit is contained in:
parent
787eec4d29
commit
1a89f72413
@ -1562,7 +1562,7 @@ window.onerror = function simpletestOnerror(errorMsg, url, lineNumber) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!SimpleTest._stopOnLoad && !isExpected) {
|
||||
if (!SimpleTest._stopOnLoad && !isExpected && !SimpleTest._alreadyFinished) {
|
||||
// Need to finish() manually here, yet let the test actually end first.
|
||||
SimpleTest.executeSoon(SimpleTest.finish);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user