From 2ddc3af5ffc9addd6faa451515b39d4f28cde54e Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 17 Aug 2012 00:25:52 -0700 Subject: [PATCH] Fix jQuery/MooTools DOM collection unit tests in IE6. Former-commit-id: b9c3dbcffb28b0088018614e21fbe313b0d53713 --- test/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index c47a34237..d5b03c763 100644 --- a/test/test.js +++ b/test/test.js @@ -715,7 +715,7 @@ test('should work with jQuery/MooTools DOM query collections', function() { function Foo(elements) { Array.prototype.push.apply(this, elements); } - Foo.prototype = { 'splice': Array.prototype.splice }; + Foo.prototype = { 'length': 0, 'splice': Array.prototype.splice }; equal(_.isEmpty(new Foo([])), true); }); @@ -1108,7 +1108,7 @@ test('should work with jQuery/MooTools DOM query collections', function() { function Foo(elements) { Array.prototype.push.apply(this, elements); } - Foo.prototype = { 'splice': Array.prototype.splice }; + Foo.prototype = { 'length': 0, 'splice': Array.prototype.splice }; equal(_.size(new Foo([1, 2, 3])), 3); });