mirror of https://github.com/tc39/test262.git
additional fixes suggested by @anba
This commit is contained in:
parent
e2b675f443
commit
89d71f56b2
|
@ -13,7 +13,7 @@ function Test262Error(message) {
|
|||
}
|
||||
|
||||
Test262Error.prototype.toString = function () {
|
||||
return "Test262 Error: " + this.message;
|
||||
return "Test262Error: " + this.message;
|
||||
};
|
||||
|
||||
var $ERROR;
|
||||
|
|
|
@ -209,10 +209,15 @@ class TestResult(object):
|
|||
if self.case.IsAsyncTest():
|
||||
return self.AsyncHasFailed() or self.HasFailed()
|
||||
elif self.case.IsNegative():
|
||||
return not (self.HasFailed() and self.case.NegativeMatch(self.stderr))
|
||||
return not (self.HasFailed() and self.case.NegativeMatch(self.GetErrorOutput()))
|
||||
else:
|
||||
return self.HasFailed()
|
||||
|
||||
def GetErrorOutput(self):
|
||||
if len(self.stderr) != 0:
|
||||
return self.stderr
|
||||
return self.stdout
|
||||
|
||||
|
||||
class TestCase(object):
|
||||
|
||||
|
|
Loading…
Reference in New Issue