mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
Update web-platform-tests to revision 7a767a52741f628430ffbbed46e7f3df68ba3534
Fixes #15648.
This commit is contained in:
parent
a1e4c547f0
commit
4fadf9b0b6
1184 changed files with 22551 additions and 9856 deletions
|
@ -2673,20 +2673,31 @@ policies and contribution forms [3].
|
|||
var tests = new Tests();
|
||||
|
||||
var error_handler = function(e) {
|
||||
if (tests.tests.length === 0 && !tests.allow_uncaught_exception) {
|
||||
tests.set_file_is_test();
|
||||
}
|
||||
|
||||
var stack;
|
||||
if (e.error && e.error.stack) {
|
||||
stack = e.error.stack;
|
||||
} else {
|
||||
stack = e.filename + ":" + e.lineno + ":" + e.colno;
|
||||
}
|
||||
|
||||
if (tests.file_is_test) {
|
||||
var test = tests.tests[0];
|
||||
if (test.phase >= test.phases.HAS_RESULT) {
|
||||
return;
|
||||
}
|
||||
test.set_status(test.FAIL, e.message, e.stack);
|
||||
test.set_status(test.FAIL, e.message, stack);
|
||||
test.phase = test.phases.HAS_RESULT;
|
||||
test.done();
|
||||
done();
|
||||
} else if (!tests.allow_uncaught_exception) {
|
||||
tests.status.status = tests.status.ERROR;
|
||||
tests.status.message = e.message;
|
||||
tests.status.stack = e.stack;
|
||||
tests.status.stack = stack;
|
||||
}
|
||||
done();
|
||||
};
|
||||
|
||||
addEventListener("error", error_handler, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue