Fix jQuery/MooTools DOM collection unit tests in IE6.

Former-commit-id: b9c3dbcffb28b0088018614e21fbe313b0d53713
This commit is contained in:
John-David Dalton
2012-08-17 00:25:52 -07:00
parent fd80e096ea
commit 2ddc3af5ff

View File

@@ -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);
});