mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Attempt to detect more false test errors.
This commit is contained in:
@@ -152,6 +152,15 @@
|
||||
delete String.prototype._contains;
|
||||
}
|
||||
|
||||
QUnit.config.hidepassed = true;
|
||||
|
||||
// avoid reporting tests to Sauce Labs when script errors occur
|
||||
if (ui.isSauceLabs) {
|
||||
window.onerror = function(message) {
|
||||
QUnit.config.done.length = 0;
|
||||
global_test_results = { 'message': message };
|
||||
};
|
||||
}
|
||||
// load Lo-Dash and expose it to the bad extensions/shims
|
||||
if (!ui.isModularize) {
|
||||
addBizarroMethods();
|
||||
@@ -159,8 +168,6 @@
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
QUnit.config.hidepassed = true;
|
||||
|
||||
// store Lo-Dash to test for bad extensions/shims
|
||||
if (!ui.isModularize) {
|
||||
var lodashBizarro = window._;
|
||||
|
||||
Reference in New Issue
Block a user