mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Fix QUnit hidepass display.
This commit is contained in:
@@ -42,7 +42,12 @@
|
|||||||
}());
|
}());
|
||||||
|
|
||||||
QUnit.config.asyncRetries = 10;
|
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
|
// load Lo-Dash
|
||||||
if (!ui.isModularize) {
|
if (!ui.isModularize) {
|
||||||
|
|||||||
@@ -254,7 +254,6 @@
|
|||||||
delete Object._keys;
|
delete Object._keys;
|
||||||
delete objectProto._propertyIsEnumerable;
|
delete objectProto._propertyIsEnumerable;
|
||||||
}
|
}
|
||||||
QUnit.config.hidepassed = true;
|
|
||||||
|
|
||||||
// load Lo-Dash and expose it to the bad extensions/shims
|
// load Lo-Dash and expose it to the bad extensions/shims
|
||||||
if (!ui.isModularize) {
|
if (!ui.isModularize) {
|
||||||
|
|||||||
10
test/test.js
10
test/test.js
@@ -13948,9 +13948,15 @@
|
|||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
QUnit.config.asyncRetries = 10;
|
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.config.noglobals = true;
|
||||||
QUnit.load();
|
QUnit.load();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,7 +37,12 @@
|
|||||||
<script src="./asset/test-ui.js"></script>
|
<script src="./asset/test-ui.js"></script>
|
||||||
<script>
|
<script>
|
||||||
QUnit.config.asyncRetries = 10;
|
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
|
// excuse tests we intentionally fail or those with problems
|
||||||
QUnit.config.excused = {
|
QUnit.config.excused = {
|
||||||
|
|||||||
Reference in New Issue
Block a user