X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fmanipulation.js;h=cbc0b7715f843aa69b4a0ac743fcaf2436265d97;hb=4424bda377336342ce04ab5299bf1ce624cdb7b1;hp=d49029eb8dfb374cb4e4461ca4bf283076225f06;hpb=1a3fd3329dde3c61dc4b2b14792fb9a61b637893;p=jquery.git diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index d49029e..cbc0b77 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -1,5 +1,8 @@ module("manipulation"); +// Ensure that an extended Array prototype doesn't break jQuery +Array.prototype.arrayProtoFn = function(arg) { throw("arrayProtoFn should not be called"); }; + var bareObj = function(value) { return value; }; var functionReturningObj = function(value) { return (function() { return value; }); };