text: function assert(t,e){if(!t)throw alert("FAIL: "+e),new Error}function f(t){return $(t)[0]}function testScrollable(){$.each([window,document,f("body"),f("html")],function(t,e){var l=$(e).scrollable();assert(1==l.length,"scrollable must always return exactly 1 element"),assert(l.is("html,body"),"scrollable must either html or body for window scrolling")}),$("body :not(iframe)").each(function(){var t=$(this).scrollable();assert(1==t.length,"scrollable must always return exactly 1 element"),assert(t[0]==this,"scrollable must return the same element for normal element scrolling")})}$.fn.test=function(){return"?notest"==location.search?this:(testScrollable(),$.scrollTo.defaults.axis="xy",this.scrollable().find("div").html(navigator.userAgent+"<br />"+'document.compatMode is "'+document.compatMode+'"'),this.scrollTo("max",1e3).scrollTo(0,1e3))},$(function(){"?notest"==location.search&&$("h1").hide()});