mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 19:07:49 +00:00
Add DOM node check to _.isFunction test.
This commit is contained in:
23
test/test.js
23
test/test.js
@@ -5983,17 +5983,18 @@
|
|||||||
strictEqual(_.isFunction('a'), false);
|
strictEqual(_.isFunction('a'), false);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should work with host objects in non-edge document modes (test in IE 11)', 1, function() {
|
test('should work with host objects in IE 8 document mode (test in IE 11)', 2, function() {
|
||||||
if (xml) {
|
// trigger Chakra bug
|
||||||
// trigger Chakra bug
|
// https://github.com/jashkenas/underscore/issues/1621
|
||||||
// https://github.com/jashkenas/underscore/issues/1621
|
_.each([body, xml], function(object) {
|
||||||
_.times(100, _.isFunction);
|
if (object) {
|
||||||
|
_.times(100, _.isFunction);
|
||||||
strictEqual(_.isFunction(xml), false);
|
strictEqual(_.isFunction(object), false);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
skipTest();
|
skipTest();
|
||||||
}
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should work with functions from another realm', 1, function() {
|
test('should work with functions from another realm', 1, function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user