mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 661813 - Fix intermittent failure in browser_webconsole_bug_595934_message_categories.js. r=mihai
This commit is contained in:
parent
6af996efab
commit
d5bdb2437c
@ -116,16 +116,16 @@ let TestObserver = {
|
||||
return;
|
||||
}
|
||||
|
||||
is(aSubject.category, TESTS[pos].category,
|
||||
"test #" + pos + ": error category '" + TESTS[pos].category + "'");
|
||||
var expectedCategory = TESTS[pos].category;
|
||||
|
||||
if (aSubject.category == TESTS[pos].category) {
|
||||
info("test #" + pos + " console observer got " + aSubject.category + ", is expecting " + expectedCategory);
|
||||
|
||||
if (aSubject.category == expectedCategory) {
|
||||
foundCategory = true;
|
||||
}
|
||||
else {
|
||||
ok(false, aSubject.sourceName + ':' + aSubject.lineNumber + '; ' +
|
||||
info("unexpected message was: " + aSubject.sourceName + ':' + aSubject.lineNumber + '; ' +
|
||||
aSubject.errorMessage);
|
||||
testEnded = true;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user