Bug 1145049 - Fix exception when using SimpleTest.expectUncaughtException. r=ted

This commit is contained in:
Alexandre Poirot 2015-04-18 09:39:07 +02:00
parent 4605e1f1f7
commit d16ebcff44

View File

@ -912,9 +912,9 @@ function testScope(aTester, aTest, expected) {
var self = this;
this.ok = function test_ok(condition, name, diag, stack) {
if (this.__expected == 'fail') {
if (self.__expected == 'fail') {
if (!condition) {
this.__num_failed++;
self.__num_failed++;
condition = true;
}
}