mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 503363 - include filename+linenumber for exceptions thrown during mochitest. r=sdwilsh
This commit is contained in:
parent
62457ae242
commit
04ced9b45b
@ -152,8 +152,13 @@ function testResult(aCondition, aName, aDiag, aIsTodo) {
|
||||
else
|
||||
this.result = "TEST-PASS";
|
||||
} else {
|
||||
if (aDiag)
|
||||
if (aDiag) {
|
||||
if (typeof aDiag == "object" && "fileName" in aDiag) {
|
||||
// we have an exception - print filename and linenumber information
|
||||
this.msg += " at " + aDiag.fileName + ":" + aDiag.lineNumber;
|
||||
}
|
||||
this.msg += " - " + aDiag;
|
||||
}
|
||||
if (aIsTodo)
|
||||
this.result = "TEST-UNEXPECTED-PASS";
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user