DEV: Don't leave loadScript tests hanging (#16536)
…when anything goes wrong. Let it move on instead of waiting for global test timeout.
This commit is contained in:
parent
3d62e335f7
commit
9ffc19ec60
|
@ -20,6 +20,11 @@ function loadWithTag(path, cb) {
|
|||
registerWaiter(() => finished);
|
||||
}
|
||||
|
||||
// Don't leave it hanging if something goes wrong
|
||||
s.onerror = function () {
|
||||
finished = true;
|
||||
};
|
||||
|
||||
s.onload = s.onreadystatechange = function (_, abort) {
|
||||
finished = true;
|
||||
if (
|
||||
|
|
Loading…
Reference in New Issue