mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
Bug 1145049 - Fix exception when using SimpleTest.expectUncaughtException. r=ted
This commit is contained in:
parent
4605e1f1f7
commit
d16ebcff44
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user