X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=blobdiff_plain;f=test%2Funit%2Fmanipulation.js;h=cbc0b7715f843aa69b4a0ac743fcaf2436265d97;hp=d49029eb8dfb374cb4e4461ca4bf283076225f06;hb=4424bda377336342ce04ab5299bf1ce624cdb7b1;hpb=291b1edf444f30d9360a42c8d563e26eaf1a2ddb 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; }); };