mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Fix QUnit hidepass display.
This commit is contained in:
@@ -42,7 +42,12 @@
|
||||
}());
|
||||
|
||||
QUnit.config.asyncRetries = 10;
|
||||
QUnit.config.hidepassed = true;
|
||||
|
||||
QUnit.begin(function() {
|
||||
QUnit.config.hidepassed = true;
|
||||
document.getElementById('qunit-tests').className += ' hidepass';
|
||||
document.getElementById('qunit-urlconfig-hidepassed').checked = true;
|
||||
});
|
||||
|
||||
// load Lo-Dash
|
||||
if (!ui.isModularize) {
|
||||
|
||||
@@ -254,7 +254,6 @@
|
||||
delete Object._keys;
|
||||
delete objectProto._propertyIsEnumerable;
|
||||
}
|
||||
QUnit.config.hidepassed = true;
|
||||
|
||||
// load Lo-Dash and expose it to the bad extensions/shims
|
||||
if (!ui.isModularize) {
|
||||
|
||||
10
test/test.js
10
test/test.js
@@ -13948,9 +13948,15 @@
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.config.asyncRetries = 10;
|
||||
QUnit.config.hidepassed = true;
|
||||
|
||||
if (!document) {
|
||||
if (document) {
|
||||
QUnit.begin(function() {
|
||||
QUnit.config.hidepassed = true;
|
||||
document.getElementById('qunit-tests').className += ' hidepass';
|
||||
document.getElementById('qunit-urlconfig-hidepassed').checked = true;
|
||||
});
|
||||
} else {
|
||||
QUnit.config.hidepassed = true;
|
||||
QUnit.config.noglobals = true;
|
||||
QUnit.load();
|
||||
}
|
||||
|
||||
@@ -37,7 +37,12 @@
|
||||
<script src="./asset/test-ui.js"></script>
|
||||
<script>
|
||||
QUnit.config.asyncRetries = 10;
|
||||
QUnit.config.hidepassed = true;
|
||||
|
||||
QUnit.begin(function() {
|
||||
QUnit.config.hidepassed = true;
|
||||
$('#qunit-tests').addClass('hidepass');
|
||||
$('#qunit-urlconfig-hidepassed').prop('checked', true);
|
||||
});
|
||||
|
||||
// excuse tests we intentionally fail or those with problems
|
||||
QUnit.config.excused = {
|
||||
|
||||
Reference in New Issue
Block a user