From 921209580a5fe7cf8ecc1be74102934e1bf9b380 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 19 Aug 2014 10:32:37 -0700 Subject: [PATCH] Add DOM node check to `_.isFunction` test. --- test/test.js | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/test/test.js b/test/test.js index 51e4cf6b8..117ab8b11 100644 --- a/test/test.js +++ b/test/test.js @@ -5983,17 +5983,18 @@ strictEqual(_.isFunction('a'), false); }); - test('should work with host objects in non-edge document modes (test in IE 11)', 1, function() { - if (xml) { - // trigger Chakra bug - // https://github.com/jashkenas/underscore/issues/1621 - _.times(100, _.isFunction); - - strictEqual(_.isFunction(xml), false); - } - else { - skipTest(); - } + test('should work with host objects in IE 8 document mode (test in IE 11)', 2, function() { + // trigger Chakra bug + // https://github.com/jashkenas/underscore/issues/1621 + _.each([body, xml], function(object) { + if (object) { + _.times(100, _.isFunction); + strictEqual(_.isFunction(object), false); + } + else { + skipTest(); + } + }); }); test('should work with functions from another realm', 1, function() {