6 lines
1.6 KiB
JavaScript
6 lines
1.6 KiB
JavaScript
//>>built
|
|
define("dojo/robotx","require doh/main ./aspect ./dom-construct ./dom-style ./_base/kernel ./_base/lang ./on ./robot ./sniff ./_base/window".split(" "),function(k,f,t,l,g,b,m,n,e,p,q){function r(d){k(["./domReady!"],function(){var b={overflow:"hidden",margin:"0px",borderWidth:"0px",height:"100%",width:"100%"};g.set(document.documentElement,b);g.set(document.body,b);a=document.createElement("iframe");a.setAttribute("ALLOWTRANSPARENCY","true");a.scrolling=p("ie")?"yes":"auto";var b="BackCompat"==document.compatMode?
|
|
document.body:document.documentElement,c=(document.getElementById("firebug")||{}).offsetHeight||0;g.set(a,{border:"0px none",padding:"0px",margin:"0px",width:"100%",height:c?b.clientHeight-c+"px":"100%"});a.src=d;void 0!==a.attachEvent?a.attachEvent("onload",h):n(a,"load",h);l.place(a,q.body(),"first")})}function h(){e._updateDocument();a.contentWindow.require?a.contentWindow.require(["dojo/ready"],function(a){a(Infinity,function(){setTimeout(function(){c.resolve(!0)},500)})}):c.resolve(!0)}b.experimental("dojo.robotx");
|
|
var a=null;b.config.debugHeight=b.config.debugHeight||200;var c;m.mixin(e,{_updateDocument:function(){b.setContext(a.contentWindow,a.contentWindow.document);e.window=a.contentWindow;e.doc=a.contentWindow.document;var d=b.global;d.dojo&&(b.publish=d.dojo.publish,b.subscribe=d.dojo.subscribe,b.connectPublisher=d.dojo.connectPublisher)},initRobot:function(a){f.registerGroup("initialize robot",{name:"load "+a,timeout:1E5,runTest:function(){c=new f.Deferred;r(a);return c}})},waitForPageToLoad:function(a){c=
|
|
new f.Deferred;a();return c}});return e});
|
|
//# sourceMappingURL=robotx.js.map
|