mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 889911 - Fix tests that unconditionally throw for things reported to the console. r=mrbkap
When we start sending everything reported to the JSErrorReporter to the console, these tests end up getting confused by warnings.
This commit is contained in:
parent
8676271e71
commit
b0aff6e915
@ -63,7 +63,10 @@ AsyncRunner.prototype = {
|
||||
},
|
||||
|
||||
observe: function AR_consoleServiceListener(msg) {
|
||||
if (msg instanceof Ci.nsIScriptError)
|
||||
if (msg instanceof Ci.nsIScriptError &&
|
||||
!(msg.flags & Ci.nsIScriptError.warningFlag))
|
||||
{
|
||||
this._callbacks.consoleError(msg);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
@ -151,8 +151,11 @@ AsyncRunner.prototype = {
|
||||
},
|
||||
|
||||
observe: function observe(msg) {
|
||||
if (msg instanceof Ci.nsIScriptError)
|
||||
if (msg instanceof Ci.nsIScriptError &&
|
||||
!(msg.flags & Ci.nsIScriptError.warningFlag))
|
||||
{
|
||||
this._callbacks.consoleError(msg);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user