mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Restrict script load error excusal a bit.
This commit is contained in:
@@ -176,10 +176,13 @@
|
||||
if (!window.require) {
|
||||
return;
|
||||
}
|
||||
// avoid reporting tests to Sauce Labs when errors occur
|
||||
// avoid reporting tests to Sauce Labs when script load errors occur
|
||||
if (ui.isSauceLabs) {
|
||||
window.onerror = function() {
|
||||
QUnit.config.done.length = 0;
|
||||
var loadEventEnd = ui.timing.loadEventEnd;
|
||||
if (loadEventEnd && (new Date - loadEventEnd > 5000)) {
|
||||
QUnit.config.done.length = 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
var reBasename = /[\w.-]+$/,
|
||||
|
||||
Reference in New Issue
Block a user