зеркало из https://github.com/mozilla/gecko-dev.git
Bug 765200 - Shorten errors of type: "an unexpected uncaught JS exception reported through window.onerror - ..."; r=jmaher a=test-only
--HG-- extra : transplant_source : %B8%7D%B9%D6%05T%21%A7k%05%E3%25%A60%B9%29kg%FE%F5
This commit is contained in:
Родитель
6832b02adc
Коммит
b31565ed69
|
@ -975,9 +975,8 @@ window.onerror = function simpletestOnerror(errorMsg, url, lineNumber) {
|
|||
// For now, for tests that self identify as having unintentional uncaught
|
||||
// exceptions, just dump it so that the error is visible but doesn't cause
|
||||
// a test failure. See bug 652494.
|
||||
var href = SpecialPowers.getPrivilegedProps(window, 'location.href');
|
||||
var isExpected = !!SimpleTest._expectingUncaughtException;
|
||||
var message = "an " + (isExpected ? "" : "un") + "expected uncaught JS exception reported through window.onerror";
|
||||
var message = (isExpected ? "expected " : "") + "uncaught exception";
|
||||
var error = errorMsg + " at " + url + ":" + lineNumber;
|
||||
if (!SimpleTest._ignoringAllUncaughtExceptions) {
|
||||
SimpleTest.ok(isExpected, message, error);
|
||||
|
|
Загрузка…
Ссылка в новой задаче