Add DOM node check to _.isFunction test.

This commit is contained in:
John-David Dalton
2014-08-19 10:32:37 -07:00
parent d4e058a844
commit 921209580a

View File

@@ -5983,18 +5983,19 @@
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) {
if (object) {
_.times(100, _.isFunction); _.times(100, _.isFunction);
strictEqual(_.isFunction(object), false);
strictEqual(_.isFunction(xml), 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() {
if (_._object) { if (_._object) {