Another attempt at fixing _.isElement bizarro tests.

This commit is contained in:
John-David Dalton
2014-07-21 11:54:16 -07:00
parent 0eefd3e140
commit 28ba64a4db

View File

@@ -5038,14 +5038,12 @@
}); });
test('should use a stronger check in browsers', 2, function() { test('should use a stronger check in browsers', 2, function() {
var support = _.support, var expected = !_.support.dom;
expected = !(support.dom && _.result(support, 'nodeClass', true));
strictEqual(_.isElement(new Element), expected); strictEqual(_.isElement(new Element), expected);
if (lodashBizarro) { if (lodashBizarro) {
support = lodashBizarro.support; expected = !lodashBizarro.support.dom;
expected = !(support.dom && support.nodeClass);
strictEqual(lodashBizarro.isElement(new Element), expected); strictEqual(lodashBizarro.isElement(new Element), expected);
} }
else { else {