Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

testcafe

Package Overview
Dependencies
Maintainers
4
Versions
464
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

testcafe - npm Package Compare versions

Comparing version 0.12.0-alpha to 0.12.0-alpha1

5

bin/testcafe.js

@@ -5,2 +5,5 @@ #!/usr/bin/env node

require('../lib/cli');
var path = require('path');
var v8FlagsFilter = require('bin-v8-flags-filter');
v8FlagsFilter(path.join(__dirname, '../lib/cli'));

@@ -282,2 +282,18 @@ 'use strict';

Assertion.prototype.match = function match(re, message, opts) {
var _this18 = this;
return this._enqueueAssertion('match', message, opts, function () {
return _chai.assert.match(_this18.actual, re, _this18.message);
});
};
Assertion.prototype.notMatch = function notMatch(re, message, opts) {
var _this19 = this;
return this._enqueueAssertion('notMatch', message, opts, function () {
return _chai.assert.notMatch(_this19.actual, re, _this19.message);
});
};
return Assertion;

@@ -284,0 +300,0 @@ }();

@@ -27,2 +27,4 @@ 'use strict';

var _typeAssertions = require('../../errors/runtime/type-assertions');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -46,2 +48,3 @@

this.afterEachFn = null;
this.authCredentials = null;
}

@@ -69,2 +72,15 @@

Fixture.prototype.httpAuth = function httpAuth(credentials) {
(0, _typeAssertions.assertObject)('httpAuth', 'credentials', credentials);
(0, _typeAssertions.assertString)('httpAuth', 'credentials.username', credentials.username);
(0, _typeAssertions.assertString)('httpAuth', 'credentials.password', credentials.password);
if (credentials.domain) (0, _typeAssertions.assertString)('httpAuth', 'credentials.domain', credentials.domain);
if (credentials.workstation) (0, _typeAssertions.assertString)('httpAuth', 'credentials.workstation', credentials.workstation);
this.authCredentials = credentials;
return this;
};
Fixture.prototype.beforeEach = function beforeEach(fn) {

@@ -71,0 +87,0 @@ var fnType = typeof fn === 'undefined' ? 'undefined' : (0, _typeof3.default)(fn);

2

lib/client/ui/index.js

@@ -1,1 +0,1 @@

!function(){function t(e){var n=e.document;!function(t){"use strict";var e,n,i,s,a,o={".js":[],".json":[],".css":[],".html":[]},r="function"==typeof require?require:null;return s=function(t){var e=new Error("Could not find module '"+t+"'");return e.code="MODULE_NOT_FOUND",e},a=function(t,e,n){var i,s;if("function"==typeof t[e+n])return e+n;for(i=0;s=o[n][i];++i)if("function"==typeof t[e+s])return e+s;return null},e=function(t,i,o,r,l,u){var d,c,h,f,p,m;for(o=o.split(/[\\/]/),d=o.pop(),"."!==d&&".."!==d||(o.push(d),d="");null!=(c=o.shift());)if(c&&"."!==c&&(".."===c?(t=i.pop(),u=u.slice(0,u.lastIndexOf("/"))):(i.push(t),t=t[c],u+="/"+c),!t))throw s(r);if(d&&"function"!=typeof t[d]&&(m=a(t,d,".js"),m||(m=a(t,d,".json")),m||(m=a(t,d,".css")),m||(m=a(t,d,".html")),m?d=m:2!==l&&"object"==typeof t[d]&&(i.push(t),t=t[d],u+="/"+d,d="")),!d)return 1!==l&&t[":mainpath:"]?e(t,i,t[":mainpath:"],r,1,u):e(t,i,"index",r,2,u);if(p=t[d],!p)throw s(r);return p.hasOwnProperty("module")?p.module.exports:(h={},p.module=f={exports:h,id:u+"/"+d},p.call(h,h,f,n(t,i,u)),f.exports)},i=function(n,i,a,o){var l,u=a,d=a.charAt(0),c=0;if("/"===d){if(u=u.slice(1),n=t["/"],!n){if(r)return r(a);throw s(a)}o="/",i=[]}else if("."!==d){if(l=u.split("/",1)[0],n=t[l],!n){if(r)return r(a);throw s(a)}o=l,i=[],u=u.slice(l.length+1),u||(u=n[":mainpath:"],u?c=1:(u="index",c=2))}return e(n,i,u,a,c,o)},(n=function(t,e,n){return function(s){return i(t,[].concat(e),s,n)}})(t,[],"")}({testcafe:{src:{client:{ui:{cursor:{"iframe-cursor.js":function(t,n,i){function s(t){return t&&t.__esModule?t:{"default":t}}t.__esModule=!0;var a=i("../deps/hammerhead"),o=s(a),r=i("../deps/testcafe-core"),l=i("./messages"),u=s(l),d=o["default"].utils.browser,c=d.isIE?1:0;t["default"]={move:function(t,n){var i={cmd:u["default"].moveRequest,x:t+c,y:n+c};return(0,r.sendRequestToFrame)(i,u["default"].moveResponse,e.parent)},leftButtonDown:function(){return(0,r.sendRequestToFrame)({cmd:u["default"].leftButtonDownRequest},u["default"].leftButtonDownResponse,e.parent)},rightButtonDown:function(){return(0,r.sendRequestToFrame)({cmd:u["default"].rightButtonDownRequest},u["default"].rightButtonDownResponse,e.parent)},buttonUp:function(){return(0,r.sendRequestToFrame)({cmd:u["default"].buttonUpRequest},u["default"].buttonUpResponse,e.parent)}},n.exports=t["default"]},"index.js":function(t,i,s){function a(t){return t&&t.__esModule?t:{"default":t}}t.__esModule=!0;var o=s("./../deps/hammerhead"),r=a(o),l=s("./../deps/testcafe-core"),u=a(l),d=s("./messages"),c=a(d),h=r["default"].Promise,f=r["default"].shadowUI,p=r["default"].utils.browser,m=r["default"].eventSandbox.message,g=u["default"].styleUtils,v=u["default"].positionUtils,_=u["default"].eventUtils,y="cursor",E="touch",w="l-mouse-down",C="r-mouse-down",x=[w,C].join(" ");m.on(m.SERVICE_MSG_RECEIVED_EVENT,function(t){var e=t.message;switch(e.cmd){case c["default"].moveRequest:var n=v.getIframePointRelativeToParentFrame({x:e.x,y:e.y},t.source);b.move(n.x,n.y).then(function(){return m.sendServiceMsg({cmd:c["default"].moveResponse},t.source)});break;case c["default"].leftButtonDownRequest:b.leftButtonDown().then(function(){return m.sendServiceMsg({cmd:c["default"].leftButtonDownResponse},t.source)});break;case c["default"].rightButtonDownRequest:b.rightButtonDown().then(function(){return m.sendServiceMsg({cmd:c["default"].rightButtonDownResponse},t.source)});break;case c["default"].buttonUpRequest:b.buttonUp().then(function(){return m.sendServiceMsg({cmd:c["default"].buttonUpResponse},t.source)})}});var b={cursorElement:null,x:50,y:50,pointerOffsetX:0,pointerOffsetY:0,_createElement:function(){var t=this;this.cursorElement=n.createElement("div"),f.addClass(this.cursorElement,y),p.isTouchDevice&&!p.isIE&&(f.addClass(this.cursorElement,E),this.pointerOffsetX=Math.ceil(g.getWidth(this.cursorElement)/2),this.pointerOffsetY=Math.ceil(g.getHeight(this.cursorElement)/2)),f.getRoot().appendChild(this.cursorElement),_.bind(e,"scroll",function(){return t.move(t.x,t.y)})},isVisible:function(){return this.cursorElement&&"hidden"!==g.get(this.cursorElement,"visibility")},hide:function(){this.cursorElement||this._createElement(),g.set(this.cursorElement,"visibility","hidden")},show:function(){this.cursorElement||this._createElement(),g.set(this.cursorElement,"visibility","")},move:function(t,e){return this.x=t,this.y=e,this.cursorElement||this._createElement(),g.set(this.cursorElement,{left:this.x+g.getScrollLeft(n)-this.pointerOffsetX+"px",top:this.y+g.getScrollTop(n)-this.pointerOffsetY+"px"}),h.resolve()},leftButtonDown:function(){return this.cursorElement||this._createElement(),f.removeClass(this.cursorElement,x),f.addClass(this.cursorElement,w),h.resolve()},rightButtonDown:function(){return this.cursorElement||this._createElement(),f.removeClass(this.cursorElement,x),f.addClass(this.cursorElement,C),h.resolve()},buttonUp:function(){return this.cursorElement||this._createElement(),f.removeClass(this.cursorElement,x),h.resolve()}};t["default"]=b,i.exports=t["default"]},"messages.js":function(t,e,n){t.__esModule=!0,t["default"]={moveRequest:"ui|cursor|move|request",leftButtonDownRequest:"ui|cursor|leftbuttondown|request",rightButtonDownRequest:"ui|cursor|rightbuttondown|request",buttonUpRequest:"ui|cursor|buttonup|request",moveResponse:"ui|cursor|move|response",leftButtonDownResponse:"ui|cursor|leftbuttondown|response",rightButtonDownResponse:"ui|cursor|rightbuttondown|response",buttonUpResponse:"ui|cursor|buttonup|response"},e.exports=t["default"]}},deps:{"hammerhead.js":function(t,n,i){t.__esModule=!0,t["default"]=e["%hammerhead%"],n.exports=t["default"]},"testcafe-core.js":function(t,n,i){t.__esModule=!0,t["default"]=e["%testCafeCore%"],n.exports=t["default"]}},"index.js":function(n,i,s){function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function o(t){return t&&t.__esModule?t:{"default":t}}var r=s("./deps/hammerhead"),l=o(r),u=s("./select-element"),d=a(u),c=s("./modal-background"),h=a(c),f=s("./progress-panel"),p=o(f),m=s("./status-bar"),g=o(m),v=s("./status-bar/iframe-status-bar"),_=o(v),y=s("./cursor"),E=o(y),w=s("./cursor/iframe-cursor"),C=a(w);n.cursorUI=E["default"],n.iframeCursorUI=C,n.selectElement=d,n.modalBackground=h,n.ProgressPanel=p["default"],n.StatusBar=g["default"],n.IframeStatusBar=_["default"],n.get=s,n.hide=function(){l["default"].shadowUI.getRoot().style.visibility="hidden"},n.show=function(){l["default"].shadowUI.getRoot().style.visibility=""},Object.defineProperty(e,"%testCafeUI%",{enumerable:!1,configurable:!1,writable:!1,value:n}),l["default"].on(l["default"].EVENTS.evalIframeScript,function(e){return t(e.iframe.contentWindow,!0)})},"modal-background.js":function(t,i,s){function a(t){return t&&t.__esModule?t:{"default":t}}function o(){var t=y.getRoot();M=n.createElement("div"),t.appendChild(M),y.addClass(M,b),D=n.createElement("div"),D.textContent=x,t.appendChild(D),y.addClass(D,I),V=n.createElement("div"),C.set(V,"visibility","hidden"),t.appendChild(V),y.addClass(V,B)}function r(){var t=C.getHeight(e),n=C.getWidth(e),i=!C.hasDimensions(D);i&&(C.set(D,"visibility","hidden"),C.set(D,"display","block")),C.set(D,{left:Math.max((n-C.getWidth(D))/2,0)+"px",top:Math.max((t-C.getHeight(D))/2,0)+"px"}),i&&(C.set(D,"display","none"),C.set(D,"visibility",""))}function l(){var t=function(){var t=C.getHeight(e),n=C.getWidth(e);C.set(M,"width",n+"px"),C.set(M,"height",t+"px"),C.set(V,{left:Math.round((n-C.getWidth(V))/2)+"px",top:Math.round((t-C.getHeight(V))/2)+"px"})};t(),w.bind(e,"resize",t)}function u(){o(),l(),r(),R=!0}function d(){var t=!1,i=function(){u(),C.set(M,"opacity",S),C.set(M,"display","block"),C.set(D,"display","block"),t=!0},s=function a(){t||(n.body?i():E.setTimeout.call(e,a,0))};s(),w.documentReady().then(function(){t||i()})}function c(t){R||u(),C.set(M,"opacity",t?0:T),C.set(M,"display","block")}function h(){R&&(C.set(D,"display","none"),C.set(M,"display","none"))}function f(){C.set(V,"visibility","visible")}function p(){C.set(V,"visibility","hidden")}t.__esModule=!0,t.initAndShowLoadingText=d,t.show=c,t.hide=h,t.showLoadingIcon=f,t.hideLoadingIcon=p;var m=s("./deps/hammerhead"),g=a(m),v=s("./deps/testcafe-core"),_=a(v),y=g["default"].shadowUI,E=g["default"].nativeMethods,w=_["default"].eventUtils,C=_["default"].styleUtils,x="Loading page...",b="modal-background",I="loading-text",T=.7,S=.8,B="loading-icon",M=null,D=null,V=null,R=!1},"progress-panel":{"index.js":function(t,i,s){function a(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=s("../deps/hammerhead"),l=a(r),u=s("../deps/testcafe-core"),d=a(u),c=s("./progress-bar"),h=a(c),f=l["default"].shadowUI,p=l["default"].nativeMethods,m=d["default"].eventUtils,g=d["default"].styleUtils,v="progress-panel",_="title",y="content",E=100,w=10,C=300,x=200,b=600,I=1e3,T=function(){function t(){var e=this;o(this,t),this.startTime=null,this.openingTimeout=null,this.updateInterval=null,this.animationInterval=null,this.panelDiv=n.createElement("div"),f.getRoot().appendChild(this.panelDiv),this.titleDiv=n.createElement("div"),this.panelDiv.appendChild(this.titleDiv),this.contentDiv=n.createElement("div"),this.panelDiv.appendChild(this.contentDiv),f.addClass(this.panelDiv,v),f.addClass(this.titleDiv,_),f.addClass(this.contentDiv,y),t._showAtWindowCenter(this.panelDiv),this.progressBar=new h["default"](this.contentDiv),this.disposePanel=function(){return t._showAtWindowCenter(e.panelDiv)}}return t._getInvisibleElementProperty=function(t,e){var n="none"===g.get(t,"display");n&&g.set(t,"display","block");var i=t[e];return n&&g.set(t,"display","none"),i},t._showAtWindowCenter=function(n){var i=t._getInvisibleElementProperty(n,"offsetHeight"),s=t._getInvisibleElementProperty(n,"offsetWidth"),a=Math.round(g.getHeight(e)/2-i/2),o=Math.round(g.getWidth(e)/2-s/2);g.set(n,{left:o+"px",top:a+"px"})},t.prototype._setCurrentProgress=function(){var t=Math.round((Date.now()-this.startTime)/this.maxTimeout*100);this.progressBar.setValue(t)},t.prototype._setSuccess=function(t){this.progressBar.setSuccess(t)},t.prototype._stopAnimation=function(){p.clearInterval.call(e,this.animationInterval)},t.prototype._animate=function(t,n,i,s){var a=this,o=Date.now(),r=i?0:1,l=0,u=0,d=0;i&&(g.set(t,"opacity",r),g.set(t,"display","block")),this._stopAnimation(),this.animationInterval=p.setInterval.call(e,function(){l=Date.now()-o,u=Math.min(l/n,1),d=.5-Math.cos(u*Math.PI)/2,g.set(t,"opacity",r+(i?d:-d)),1===u&&(a._stopAnimation(),s&&s())},w)},t.prototype._showPanel=function(){m.bind(e,"resize",this.disposePanel),this._animate(this.panelDiv,x,!0)},t.prototype._hidePanel=function(t){var n=this;this.startTime=null,m.unbind(e,"resize",this.disposePanel),this._animate(this.panelDiv,t?0:b,!1,function(){return g.set(n.panelDiv,"display","none")})},t.prototype.show=function(t,n){var i=this;this.startTime=Date.now(),this.maxTimeout=n,this.titleDiv.textContent=t,this._setSuccess(!1),this.openingTimeout=p.setTimeout.call(e,function(){i.openingTimeout=null,i._setCurrentProgress(),i._showPanel(),i.updateInterval=p.setInterval.call(e,function(){return i._setCurrentProgress()},E)},C)},t.prototype.close=function(t){var n=this;t&&this._setSuccess(!0),this.openingTimeout&&(p.clearTimeout.call(e,this.openingTimeout),this.openingTimeout=null),this.updateInterval&&(p.clearInterval.call(e,this.updateInterval),this.updateInterval=null),t?this.startTime&&Date.now()-this.startTime<I?p.setTimeout.call(e,function(){p.setTimeout.call(e,function(){return n._hidePanel(!1)},x)},E):p.setTimeout.call(e,function(){return n._hidePanel(!1)},x):this._hidePanel(!0)},t}();t["default"]=T,i.exports=t["default"]},"progress-bar.js":function(t,e,i){function s(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var o=i("../deps/hammerhead"),r=s(o),l=i("../deps/testcafe-core"),u=s(l),d=r["default"].shadowUI,c=u["default"].styleUtils,h="progress-bar",f="value",p="success",m=function(){function t(e){a(this,t),this.containerElement=n.createElement("div"),this.valueElement=n.createElement("div"),e.appendChild(this.containerElement),this.containerElement.appendChild(this.valueElement),d.addClass(this.containerElement,h),d.addClass(this.valueElement,f)}return t.prototype.setValue=function(t){t="number"!=typeof t?0:Math.min(Math.max(t,0),100),c.set(this.valueElement,"width",t+"%")},t.prototype.setSuccess=function(t){t?d.addClass(this.containerElement,p):d.removeClass(this.containerElement,p)},t}();t["default"]=m,e.exports=t["default"]}},"select-element.js":function(t,i,s){function a(t){return t&&t.__esModule?t:{"default":t}}function o(t){(t.target||t.srcElement)===O||B.containsElement(O,t.target)||B.containsElement(F,t.target)||h()}function r(t,e){var n=O.selectedIndex,i=O.getElementsByTagName("option")[t],s=!e&&t!==n,a=b.isSafari&&b.hasTouchEvents||b.isAndroid;s&&!b.isIE&&(O.selectedIndex=t),b.isFirefox||b.isIE||!s||T.change(O),(b.isFirefox||b.isIE)&&T.mousedown(b.isFirefox?i:O),a||T.mouseup(b.isFirefox?i:O),(b.isFirefox||b.isIE)&&s&&(b.isIE&&(O.selectedIndex=t),T.change(O)),a||T.click(b.isFirefox||b.isIE?i:O),e||h()}function l(t,e){var i=n.createElement("div"),s=t.disabled||"optgroup"===B.getTagName(t.parentElement)&&t.parentElement.disabled;i.textContent=t.text,e.appendChild(i),x.addClass(i,U),s&&(x.addClass(i,W),M.set(i,"color",M.get(t,"color"))),s&&b.isWebKit?D.bind(i,"click",function(){return!1}):D.bind(i,"click",function(){var t=V.indexOf(q,this);r(t,s)}),q.push(i)}function u(t,e){var i=n.createElement("div");i.textContent=t.label||" ",e.appendChild(i),x.addClass(i,A),i.disabled&&(x.addClass(i,W),M.set(i,"color",M.get(t,"color"))),d(t.children,i),j.push(i)}function d(t,e){for(var n=0;n<t.length;n++)B.isOptionElement(t[n])?l(t[n],e):"optgroup"===B.getTagName(t[n])&&u(t[n],e)}function c(t){var i=t.children;if(i.length){if(O){var s=t===O;if(h(),s)return}O=t,F=n.createElement("div"),x.getRoot().appendChild(F),x.addClass(F,R),d(i,F),I.setTimeout.call(e,function(){D.bind(n,"mousedown",o)},0),M.set(F,{position:"absolute",fontSize:M.get(O,"fontSize"),fontFamily:M.get(O,"fontFamily"),minWidth:M.getWidth(O)+"px",left:S.getOffsetPosition(O).left+"px",height:B.getSelectVisibleChildren(t).length>P?M.getOptionHeight(t)*P:""});var a=S.getOffsetPosition(O).top,r=M.getHeight(F),l=a+M.getHeight(O)+2;if(l+r>M.getScrollTop(e)+M.getHeight(e)){var u=a-3-r;u>=M.getScrollTop(e)&&(l=u)}M.set(F,"top",l+"px")}}function h(){B.remove(F),D.unbind(n,"mousedown",o),F=null,O=null,q=[],j=[]}function f(t){return t?t===O:!!O}function p(t){var e="optgroup"===B.getTagName(t),n=e?B.getOptionGroupIndex(O,t):B.getOptionIndex(O,t);return e?j[n]:q[n]}function m(t){var e=B.getSelectParent(t);if(e){var n=M.getSelectElementSize(e),i=M.getOptionHeight(e),s=0,a=Math.max(M.getScrollTop(e)/i,0),o=a+n-1,r=B.getChildVisibleIndex(e,t);r<a?(s=i*(a-r),M.setScrollTop(e,Math.max(M.getScrollTop(e)-s,0))):r>o&&(s=i*(r-o),M.setScrollTop(e,M.getScrollTop(e)+s))}}function g(t){var e=B.getSelectParent(t);if(!e)return{x:0,y:0};var n=M.getOptionHeight(e),i=S.getElementRectangle(t);return{x:Math.round(i.left+i.width/2),y:Math.round(i.top+n/2)}}function v(t,e){var n=M.getSelectElementSize(t),i=!M.hasDimensions(x.select("."+R)[0]);if(/down|up/.test(e)||!b.isIE&&(n<=1||b.isFirefox)&&(i||b.isFirefox)&&/left|right/.test(e)){for(var s=t.querySelectorAll("option"),a=[],o=0;o<s.length;o++){var r=s[o].parentElement;s[o].disabled||"optgroup"===B.getTagName(r)&&r.disabled||a.push(s[o])}var l=V.indexOf(a,s[t.selectedIndex]),u=l+(/down|right/.test(e)?1:-1);u>=0&&u<a.length&&(t.selectedIndex=V.indexOf(s,a[u]),T.change(t))}}function _(t){var e=B.getSelectParent(t);if(!e)return!0;var n=f(e),i=M.getSelectElementSize(e);return n||i>1}t.__esModule=!0,t.expandOptionList=c,t.collapseOptionList=h,t.isOptionListExpanded=f,t.getEmulatedChildElement=p,t.scrollOptionListByChild=m,t.getSelectChildCenter=g,t.switchOptionsByKeys=v,t.isOptionElementVisible=_;var y=s("./deps/hammerhead"),E=a(y),w=s("./deps/testcafe-core"),C=a(w),x=E["default"].shadowUI,b=E["default"].utils.browser,I=E["default"].nativeMethods,T=E["default"].eventSandbox.eventSimulator,S=C["default"].positionUtils,B=C["default"].domUtils,M=C["default"].styleUtils,D=C["default"].eventUtils,V=C["default"].arrayUtils,R="tcOptionList",A="tcOptionGroup",U="tcOption",W="disabled",P=b.isIE?30:20,O=null,F=null,j=[],q=[]},"status-bar":{"iframe-status-bar.js":function(t,n,i){function s(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}t.__esModule=!0;var l=i("./../deps/hammerhead"),u=s(l),d=i("./../deps/testcafe-core"),c=s(d),h=i("./messages"),f=s(h),p=i("./index"),m=s(p),g=c["default"].sendRequestToFrame,v=u["default"].eventSandbox.message,_=function(t){function n(){return a(this,n),o(this,t.call(this))}return r(n,t),n.prototype.setWaitingStatus=function(t){v.sendServiceMsg({cmd:f["default"].startWaitingForElement,timeout:t},e.top)},n.prototype.resetWaitingStatus=function(t){var n={cmd:f["default"].stopWaitingForElementRequest,waitingSuccess:t};return g(n,f["default"].stopWaitingForElementResponse,e.top)},n}(m["default"]);t["default"]=_,n.exports=t["default"]},"index.js":function(t,i,s){function a(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=s("./../deps/hammerhead"),l=a(r),u=s("./../deps/testcafe-core"),d=a(u),c=s("./progress-bar"),h=a(c),f=s("./messages"),p=a(f),m=l["default"].Promise,g=l["default"].shadowUI,v=l["default"].nativeMethods,_=l["default"].eventSandbox.message,y=d["default"].styleUtils,E=d["default"].eventUtils,w=d["default"].domUtils,C="status-bar",x="container",b="icon",I="info-container",T="fixture-container",S="fixture",B="user-agent",M="status-container",D="status",V="only-icon",R="icon-status",A="waiting-element-failed",U="waiting-element-success",W="Loading Web Page...",P="Waiting for an element to appear...",O=670,F=380,j=300,q=500,L=10,k=function(){function t(e,n,i){o(this,t),this.userAgent=e,this.fixtureName=n,this.testName=i,this.statusBar=null,this.container=null,this.infoContainer=null,this.icon=null,this.fixtureContainer=null,this.statusDiv=null,this.progressBar=null,this.animationInterval=null,this.showingTimeout=null,this.created=!1,this.showing=!1,this.hidding=!1,this._createBeforeReady(),this._initChildListening()}return t.prototype._createFixtureArea=function(){this.infoContainer=n.createElement("div"),g.addClass(this.infoContainer,I),this.container.appendChild(this.infoContainer),this.icon=n.createElement("div"),g.addClass(this.icon,b),this.infoContainer.appendChild(this.icon),this.fixtureContainer=n.createElement("div"),g.addClass(this.fixtureContainer,T),this.infoContainer.appendChild(this.fixtureContainer);var t=n.createElement("div");t.textContent=this.fixtureName+" - "+this.testName,g.addClass(t,S),this.fixtureContainer.appendChild(t);var e=n.createElement("div");e.textContent=this.userAgent,g.addClass(e,B),this.fixtureContainer.appendChild(e)},t.prototype._createStatusArea=function(){var t=n.createElement("div");g.addClass(t,M),this.container.appendChild(t),this.statusDiv=n.createElement("div"),this.statusDiv.textContent=W,g.addClass(this.statusDiv,D),t.appendChild(this.statusDiv)},t.prototype._create=function(){this.statusBar=n.createElement("div"),this.container=n.createElement("div"),g.addClass(this.statusBar,C),g.addClass(this.container,x),this.statusBar.appendChild(this.container),this._createFixtureArea(),this._createStatusArea(),this.progressBar=new h["default"](this.statusBar),this.progressBar.indeterminateIndicator.start(),this.progressBar.show(),g.getRoot().appendChild(this.statusBar),this._recalculateSizes(),this._bindHandlers(),this.created=!0},t.prototype._createBeforeReady=function(){var t=this;this.created||e!==e.top||(n.body?this._create():v.setTimeout.call(e,function(){return t._createBeforeReady()},0))},t.prototype._setSizeStyle=function(t){t>O?(g.removeClass(this.statusBar,V),g.removeClass(this.statusBar,R)):t<O&&t>F?(g.removeClass(this.statusBar,V),g.addClass(this.statusBar,R)):t<F&&(g.removeClass(this.statusBar,R),g.addClass(this.statusBar,V))},t.prototype._setFixtureContainerWidth=function(){var t=y.getWidth(this.infoContainer),e=y.getWidth(this.icon),n=y.getElementMargin(this.icon),i=t-e-n.left-n.right-1;y.set(this.fixtureContainer,"width",i+"px")},t.prototype._setStatusDivLeftMargin=function(){if("none"!==y.get(this.statusDiv,"display")){var t=y.getWidth(this.infoContainer),e=y.getWidth(this.container),n=y.getWidth(this.statusDiv),i=Math.round(e/2-n/2-t);y.set(this.statusDiv,"marginLeft",Math.max(i,0)+"px")}},t.prototype._recalculateSizes=function(){var t=y.getWidth(e);y.set(this.statusBar,"width",t+"px"),this._setSizeStyle(t),this._setFixtureContainerWidth(),this._setStatusDivLeftMargin()},t.prototype._animate=function(t){var n=this,i=Date.now(),s=parseInt(y.get(this.statusBar,"opacity"),10)||0,a=0,o=0,r=0;this._stopAnimation(),this.animationInterval=v.setInterval.call(e,function(){a=Date.now()-i,o=Math.min(a/q,1),r=.5-Math.cos(o*Math.PI)/2,y.set(n.statusBar,"opacity",s+(t?r:-r)),1===o&&(n._stopAnimation(),n.showing=!1,n.hidding=!1)},L)},t.prototype._stopAnimation=function(){this.animationInterval&&(v.clearInterval.call(e,this.animationInterval),this.animationInterval=null)},t.prototype._bindHandlers=function(){var t=this;E.bind(e,"resize",function(){return t._recalculateSizes()}),E.bind(this.statusBar,"mouseover",function(){t.hidding||(t.showing=!1,t.hidding=!0,t._animate())}),E.bind(this.statusBar,"mouseout",function(e){w.containsElement(t.statusBar,e.relatedTarget)||t.showing||(t.hidding=!1,t.showing=!0,t._animate(!0))})},t.prototype._initChildListening=function(){var t=this;_.on(_.SERVICE_MSG_RECEIVED_EVENT,function(e){var n=e.message;n.cmd===p["default"].startWaitingForElement?t.setWaitingStatus(n.timeout):n.cmd===p["default"].stopWaitingForElementRequest&&t.resetWaitingStatus(n.waitingSuccess).then(function(){return _.sendServiceMsg({cmd:p["default"].stopWaitingForElementResponse},e.source)})})},t.prototype._resetState=function(){this.statusDiv.textContent="",this.progressBar.hide()},t.prototype._showWaitingStatus=function(){this.statusDiv.textContent=P,this._setStatusDivLeftMargin(),this.progressBar.show()},t.prototype._hideWaitingStatus=function(t){var n=this;return new m(function(i){v.setTimeout.call(e,function(){g.removeClass(n.statusBar,U),g.removeClass(n.statusBar,A),n.progressBar.determinateIndicator.reset(),n._resetState(),i()},t?0:q)})},t.prototype.resetPageLoadingStatus=function(){this.created||this._create(),this.progressBar.indeterminateIndicator.stop(),this._resetState()},t.prototype.setWaitingStatus=function(t){var n=this;this.progressBar.determinateIndicator.start(t),this.showingTimeout=v.setTimeout.call(e,function(){n.showingTimeout=null,n._showWaitingStatus()},j)},t.prototype.resetWaitingStatus=function(t){this.progressBar.determinateIndicator.stop(),t?g.addClass(this.statusBar,U):g.addClass(this.statusBar,A);var n=this.showingTimeout&&t;return this.showingTimeout&&(v.clearTimeout.call(e,this.showingTimeout),this.showingTimeout=null,t||this._showWaitingStatus()),this._hideWaitingStatus(n)},t}();t["default"]=k,i.exports=t["default"]},"messages.js":function(t,e,n){t.__esModule=!0,t["default"]={startWaitingForElement:"start-waiting-for-element",stopWaitingForElementRequest:"stop-waiting-for-element-request",stopWaitingForElementResponse:"stop-waiting-for-element-response"},e.exports=t["default"]},"progress-bar":{"determinate-indicator.js":function(t,n,i){function s(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var o=i("../../deps/hammerhead"),r=s(o),l=i("../../deps/testcafe-core"),u=s(l),d=r["default"].shadowUI,c=r["default"].nativeMethods,h=u["default"].styleUtils,f="determinate",p=10,m=function(){function t(e,n){a(this,t),this.progressBar=e,this.firstValueElement=n,this.maxTimeout=null,this.startTime=null,this.animationInterval=null}return t.prototype._setCurrentProgress=function(){var t=(Date.now()-this.startTime)/this.maxTimeout,e=Math.min(Math.max(t,0),1),n=h.getWidth(this.progressBar),i=Math.round(n*e);h.set(this.firstValueElement,"width",i+"px")},t.prototype.start=function(t){var n=this;d.addClass(this.progressBar,f),this.maxTimeout=t,this.startTime=Date.now(),this._setCurrentProgress(),this.animationInterval=c.setInterval.call(e,function(){return n._setCurrentProgress()},p)},t.prototype.stop=function(){this.animationInterval&&(c.clearInterval.call(e,this.animationInterval),this.animationInterval=null)},t.prototype.reset=function(){h.set(this.firstValueElement,"width",0),d.removeClass(this.progressBar,f)},t}();t["default"]=m,n.exports=t["default"]},"indeterminate-indicator.js":function(t,n,i){function s(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e,n){return 3*Math.pow(1-t,2)*t*e+3*(1-t)*t*t*n+t*t*t}function r(t,e){var n=t<w.middle,i=n?w.start:w.middle,s=n?w.middle:w.end,a=e[i],o=e[s],r={x:i,y:a.left},l={x:s,y:o.left},u=m.getLineYByXCoord(r,l,t);r={x:i,y:a.right},l={x:s,y:o.right};var d=m.getLineYByXCoord(r,l,t);return{left:u,right:d}}t.__esModule=!0;var l=i("../../deps/hammerhead"),u=s(l),d=i("../../deps/testcafe-core"),c=s(d),h=u["default"].shadowUI,f=u["default"].nativeMethods,p=c["default"].styleUtils,m=c["default"].positionUtils,g={time:2800,points:[.815,.395],positionByCompletePercent:{0:{left:-35,right:100},.6:{left:100,right:-90},1:{left:100,right:-90}}},v={time:3e3,points:[.84,1],positionByCompletePercent:{0:{left:-200,right:100},.6:{left:107,right:-8},1:{left:107,right:-8}}},_=1e3,y=10,E=1950,w={start:0,middle:.6,end:1},C="indeterminate",x=function(){function t(e,n,i){a(this,t),this.progressBar=e,this.firstValue=n,this.secondValue=i,this.animationInterval=null,this.secondValueAnimationInterval=null,this.secondValueAnimationTimeout=null,this.restartAnimationTimeout=null}return t._updateValueAnimation=function(t,e,n){var i=n.time,s=n.points,a=n.positionByCompletePercent,l=Date.now()-t,u=l/i,d=o(u,s[0],s[1]),c=r(d,a),h=c.left,f=c.right;p.set(e,"left",Math.round(h)+"%"),p.set(e,"right",Math.round(f)+"%")},t.prototype._clearFirstValueAnimation=function(){this.animationInterval&&(f.clearInterval.call(e,this.animationInterval),this.animationInterval=null),p.set(this.firstValue,"left","-35%"),p.set(this.firstValue,"right","100%")},t.prototype._clearSecondValueAnimation=function(){this.secondValueAnimationInterval&&(f.clearInterval.call(e,this.secondValueAnimationInterval),this.secondValueAnimationInterval=null),p.set(this.secondValue,"left","-200%"),p.set(this.secondValue,"right","100%")},t.prototype._startFirstValueAnimation=function(){var n=this;this._clearFirstValueAnimation();var i=Date.now();this.animationInterval=f.setInterval.call(e,function(){t._updateValueAnimation(i,n.firstValue,g)},y)},t.prototype._startSecondValueAnimation=function(){var n=this;this._clearSecondValueAnimation();var i=Date.now();this.secondValueAnimationInterval=f.setInterval.call(e,function(){t._updateValueAnimation(i,n.secondValue,v)},y)},t.prototype._startAnimation=function(){var t=this;this._startFirstValueAnimation(),this.secondValueAnimationTimeout=f.setTimeout.call(e,function(){return t._startSecondValueAnimation()},_),this.restartAnimationTimeout=f.setTimeout.call(e,function(){return t._startAnimation()},E)},t.prototype._stopAnimation=function(){this._clearFirstValueAnimation(),this._clearSecondValueAnimation(),this.secondValueAnimationTimeout&&(f.clearInterval.call(e,this.secondValueAnimationTimeout),this.secondValueAnimationTimeout=null),this.restartAnimationTimeout&&(f.clearInterval.call(e,this.restartAnimationTimeout),this.restartAnimationTimeout=null)},t.prototype.start=function(){h.addClass(this.progressBar,C),this._startAnimation()},t.prototype.stop=function(){h.removeClass(this.progressBar,C),this._stopAnimation()},t}();t["default"]=x,n.exports=t["default"]},"index.js":function(t,e,i){function s(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var o=i("../../deps/hammerhead"),r=s(o),l=i("../../deps/testcafe-core"),u=s(l),d=i("./determinate-indicator"),c=s(d),h=i("./indeterminate-indicator"),f=s(h),p=r["default"].shadowUI,m=u["default"].styleUtils,g="progress-bar",v="value-container",_="value",y=function(){function t(e){a(this,t),this.progressBar=null,this.firstValueElement=null,this.secondValueElement=null,this._create(e),this.determinateIndicator=new c["default"](this.progressBar,this.firstValueElement),this.indeterminateIndicator=new f["default"](this.progressBar,this.firstValueElement,this.secondValueElement)}return t.prototype._create=function(t){this.progressBar=n.createElement("div"),p.addClass(this.progressBar,g),t.appendChild(this.progressBar);var e=n.createElement("div");p.addClass(e,v),this.progressBar.appendChild(e),this.firstValueElement=n.createElement("div"),p.addClass(this.firstValueElement,_),e.appendChild(this.firstValueElement),this.secondValueElement=n.createElement("div"),p.addClass(this.secondValueElement,_),e.appendChild(this.secondValueElement)},t.prototype.show=function(){m.set(this.progressBar,"visibility","visible")},t.prototype.hide=function(){m.set(this.progressBar,"visibility","hidden")},t}();t["default"]=y,e.exports=t["default"]}}}}}}}})("testcafe/src/client/ui/index")}t(window)}();
!function(){function t(e){var n=e.document;!function(t){"use strict";var e,n,i,s,a,o={".js":[],".json":[],".css":[],".html":[]},r="function"==typeof require?require:null;return s=function(t){var e=new Error("Could not find module '"+t+"'");return e.code="MODULE_NOT_FOUND",e},a=function(t,e,n){var i,s;if("function"==typeof t[e+n])return e+n;for(i=0;s=o[n][i];++i)if("function"==typeof t[e+s])return e+s;return null},e=function(t,i,o,r,l,u){var d,c,h,f,p,m;for(o=o.split(/[\\/]/),d=o.pop(),"."!==d&&".."!==d||(o.push(d),d="");null!=(c=o.shift());)if(c&&"."!==c&&(".."===c?(t=i.pop(),u=u.slice(0,u.lastIndexOf("/"))):(i.push(t),t=t[c],u+="/"+c),!t))throw s(r);if(d&&"function"!=typeof t[d]&&(m=a(t,d,".js"),m||(m=a(t,d,".json")),m||(m=a(t,d,".css")),m||(m=a(t,d,".html")),m?d=m:2!==l&&"object"==typeof t[d]&&(i.push(t),t=t[d],u+="/"+d,d="")),!d)return 1!==l&&t[":mainpath:"]?e(t,i,t[":mainpath:"],r,1,u):e(t,i,"index",r,2,u);if(p=t[d],!p)throw s(r);return p.hasOwnProperty("module")?p.module.exports:(h={},p.module=f={exports:h,id:u+"/"+d},p.call(h,h,f,n(t,i,u)),f.exports)},i=function(n,i,a,o){var l,u=a,d=a.charAt(0),c=0;if("/"===d){if(u=u.slice(1),n=t["/"],!n){if(r)return r(a);throw s(a)}o="/",i=[]}else if("."!==d){if(l=u.split("/",1)[0],n=t[l],!n){if(r)return r(a);throw s(a)}o=l,i=[],u=u.slice(l.length+1),u||(u=n[":mainpath:"],u?c=1:(u="index",c=2))}return e(n,i,u,a,c,o)},(n=function(t,e,n){return function(s){return i(t,[].concat(e),s,n)}})(t,[],"")}({testcafe:{src:{client:{ui:{cursor:{"iframe-cursor.js":function(t,n,i){function s(t){return t&&t.__esModule?t:{"default":t}}t.__esModule=!0;var a=i("../deps/hammerhead"),o=s(a),r=i("../deps/testcafe-core"),l=i("./messages"),u=s(l),d=o["default"].utils.browser,c=d.isIE?1:0;t["default"]={move:function(t,n){var i={cmd:u["default"].moveRequest,x:t+c,y:n+c};return(0,r.sendRequestToFrame)(i,u["default"].moveResponse,e.parent)},leftButtonDown:function(){return(0,r.sendRequestToFrame)({cmd:u["default"].leftButtonDownRequest},u["default"].leftButtonDownResponse,e.parent)},rightButtonDown:function(){return(0,r.sendRequestToFrame)({cmd:u["default"].rightButtonDownRequest},u["default"].rightButtonDownResponse,e.parent)},buttonUp:function(){return(0,r.sendRequestToFrame)({cmd:u["default"].buttonUpRequest},u["default"].buttonUpResponse,e.parent)}},n.exports=t["default"]},"index.js":function(t,i,s){function a(t){return t&&t.__esModule?t:{"default":t}}t.__esModule=!0;var o=s("./../deps/hammerhead"),r=a(o),l=s("./../deps/testcafe-core"),u=a(l),d=s("./messages"),c=a(d),h=r["default"].Promise,f=r["default"].shadowUI,p=r["default"].utils.browser,m=r["default"].eventSandbox.message,g=u["default"].styleUtils,v=u["default"].positionUtils,_=u["default"].eventUtils,y="cursor",E="touch",w="l-mouse-down",C="r-mouse-down",x=[w,C].join(" ");m.on(m.SERVICE_MSG_RECEIVED_EVENT,function(t){var e=t.message;switch(e.cmd){case c["default"].moveRequest:var n=v.getIframePointRelativeToParentFrame({x:e.x,y:e.y},t.source);b.move(n.x,n.y).then(function(){return m.sendServiceMsg({cmd:c["default"].moveResponse},t.source)});break;case c["default"].leftButtonDownRequest:b.leftButtonDown().then(function(){return m.sendServiceMsg({cmd:c["default"].leftButtonDownResponse},t.source)});break;case c["default"].rightButtonDownRequest:b.rightButtonDown().then(function(){return m.sendServiceMsg({cmd:c["default"].rightButtonDownResponse},t.source)});break;case c["default"].buttonUpRequest:b.buttonUp().then(function(){return m.sendServiceMsg({cmd:c["default"].buttonUpResponse},t.source)})}});var b={cursorElement:null,x:50,y:50,pointerOffsetX:0,pointerOffsetY:0,_createElement:function(){var t=this;this.cursorElement=n.createElement("div"),f.addClass(this.cursorElement,y),p.isTouchDevice&&!p.isIE&&(f.addClass(this.cursorElement,E),this.pointerOffsetX=Math.ceil(g.getWidth(this.cursorElement)/2),this.pointerOffsetY=Math.ceil(g.getHeight(this.cursorElement)/2)),f.getRoot().appendChild(this.cursorElement),_.bind(e,"scroll",function(){return t.move(t.x,t.y)})},isVisible:function(){return this.cursorElement&&"hidden"!==g.get(this.cursorElement,"visibility")},hide:function(){this.cursorElement||this._createElement(),g.set(this.cursorElement,"visibility","hidden")},show:function(){this.cursorElement||this._createElement(),g.set(this.cursorElement,"visibility","")},move:function(t,e){return this.x=t,this.y=e,this.cursorElement||this._createElement(),g.set(this.cursorElement,{left:this.x+g.getScrollLeft(n)-this.pointerOffsetX+"px",top:this.y+g.getScrollTop(n)-this.pointerOffsetY+"px"}),h.resolve()},leftButtonDown:function(){return this.cursorElement||this._createElement(),f.removeClass(this.cursorElement,x),f.addClass(this.cursorElement,w),h.resolve()},rightButtonDown:function(){return this.cursorElement||this._createElement(),f.removeClass(this.cursorElement,x),f.addClass(this.cursorElement,C),h.resolve()},buttonUp:function(){return this.cursorElement||this._createElement(),f.removeClass(this.cursorElement,x),h.resolve()}};t["default"]=b,i.exports=t["default"]},"messages.js":function(t,e,n){t.__esModule=!0,t["default"]={moveRequest:"ui|cursor|move|request",leftButtonDownRequest:"ui|cursor|leftbuttondown|request",rightButtonDownRequest:"ui|cursor|rightbuttondown|request",buttonUpRequest:"ui|cursor|buttonup|request",moveResponse:"ui|cursor|move|response",leftButtonDownResponse:"ui|cursor|leftbuttondown|response",rightButtonDownResponse:"ui|cursor|rightbuttondown|response",buttonUpResponse:"ui|cursor|buttonup|response"},e.exports=t["default"]}},deps:{"hammerhead.js":function(t,n,i){t.__esModule=!0,t["default"]=e["%hammerhead%"],n.exports=t["default"]},"testcafe-core.js":function(t,n,i){t.__esModule=!0,t["default"]=e["%testCafeCore%"],n.exports=t["default"]}},"index.js":function(n,i,s){function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function o(t){return t&&t.__esModule?t:{"default":t}}var r=s("./deps/hammerhead"),l=o(r),u=s("./deps/testcafe-core"),d=o(u),c=s("./select-element"),h=a(c),f=s("./modal-background"),p=a(f),m=s("./progress-panel"),g=o(m),v=s("./status-bar"),_=o(v),y=s("./status-bar/iframe-status-bar"),E=o(y),w=s("./cursor"),C=o(w),x=s("./cursor/iframe-cursor"),b=a(x),I=l["default"].Promise,S=l["default"].eventSandbox.message,T=d["default"].sendRequestToFrame,B="ui|hide|request",M="ui|hide|response",D="ui|show|request",V="ui|show|response";S.on(S.SERVICE_MSG_RECEIVED_EVENT,function(t){t.message.cmd===B?(l["default"].shadowUI.getRoot().style.visibility="hidden",S.sendServiceMsg({cmd:M},t.source)):t.message.cmd===D&&(l["default"].shadowUI.getRoot().style.visibility="",S.sendServiceMsg({cmd:V},t.source))}),n.cursorUI=C["default"],n.iframeCursorUI=b,n.selectElement=h,n.modalBackground=p,n.ProgressPanel=g["default"],n.StatusBar=_["default"],n.IframeStatusBar=E["default"],n.get=s,n.hide=function(t){return t?T({cmd:B},M,e.top):(l["default"].shadowUI.getRoot().style.visibility="hidden",I.resolve())},n.show=function(t){return t?T({cmd:D},V,e.top):(l["default"].shadowUI.getRoot().style.visibility="",I.resolve())},Object.defineProperty(e,"%testCafeUI%",{enumerable:!1,configurable:!1,writable:!1,value:n}),l["default"].on(l["default"].EVENTS.evalIframeScript,function(e){return t(e.iframe.contentWindow,!0)})},"modal-background.js":function(t,i,s){function a(t){return t&&t.__esModule?t:{"default":t}}function o(){var t=y.getRoot();M=n.createElement("div"),t.appendChild(M),y.addClass(M,b),D=n.createElement("div"),D.textContent=x,t.appendChild(D),y.addClass(D,I),V=n.createElement("div"),C.set(V,"visibility","hidden"),t.appendChild(V),y.addClass(V,B)}function r(){var t=C.getHeight(e),n=C.getWidth(e),i=!C.hasDimensions(D);i&&(C.set(D,"visibility","hidden"),C.set(D,"display","block")),C.set(D,{left:Math.max((n-C.getWidth(D))/2,0)+"px",top:Math.max((t-C.getHeight(D))/2,0)+"px"}),i&&(C.set(D,"display","none"),C.set(D,"visibility",""))}function l(){var t=function(){var t=C.getHeight(e),n=C.getWidth(e);C.set(M,"width",n+"px"),C.set(M,"height",t+"px"),C.set(V,{left:Math.round((n-C.getWidth(V))/2)+"px",top:Math.round((t-C.getHeight(V))/2)+"px"})};t(),w.bind(e,"resize",t)}function u(){o(),l(),r(),R=!0}function d(){var t=!1,i=function(){u(),C.set(M,"opacity",T),C.set(M,"display","block"),C.set(D,"display","block"),t=!0},s=function a(){t||(n.body?i():E.setTimeout.call(e,a,0))};s(),w.documentReady().then(function(){t||i()})}function c(t){R||u(),C.set(M,"opacity",t?0:S),C.set(M,"display","block")}function h(){R&&(C.set(D,"display","none"),C.set(M,"display","none"))}function f(){C.set(V,"visibility","visible")}function p(){C.set(V,"visibility","hidden")}t.__esModule=!0,t.initAndShowLoadingText=d,t.show=c,t.hide=h,t.showLoadingIcon=f,t.hideLoadingIcon=p;var m=s("./deps/hammerhead"),g=a(m),v=s("./deps/testcafe-core"),_=a(v),y=g["default"].shadowUI,E=g["default"].nativeMethods,w=_["default"].eventUtils,C=_["default"].styleUtils,x="Loading page...",b="modal-background",I="loading-text",S=.7,T=.8,B="loading-icon",M=null,D=null,V=null,R=!1},"progress-panel":{"index.js":function(t,i,s){function a(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=s("../deps/hammerhead"),l=a(r),u=s("../deps/testcafe-core"),d=a(u),c=s("./progress-bar"),h=a(c),f=l["default"].shadowUI,p=l["default"].nativeMethods,m=d["default"].eventUtils,g=d["default"].styleUtils,v="progress-panel",_="title",y="content",E=100,w=10,C=300,x=200,b=600,I=1e3,S=function(){function t(){var e=this;o(this,t),this.startTime=null,this.openingTimeout=null,this.updateInterval=null,this.animationInterval=null,this.panelDiv=n.createElement("div"),f.getRoot().appendChild(this.panelDiv),this.titleDiv=n.createElement("div"),this.panelDiv.appendChild(this.titleDiv),this.contentDiv=n.createElement("div"),this.panelDiv.appendChild(this.contentDiv),f.addClass(this.panelDiv,v),f.addClass(this.titleDiv,_),f.addClass(this.contentDiv,y),t._showAtWindowCenter(this.panelDiv),this.progressBar=new h["default"](this.contentDiv),this.disposePanel=function(){return t._showAtWindowCenter(e.panelDiv)}}return t._getInvisibleElementProperty=function(t,e){var n="none"===g.get(t,"display");n&&g.set(t,"display","block");var i=t[e];return n&&g.set(t,"display","none"),i},t._showAtWindowCenter=function(n){var i=t._getInvisibleElementProperty(n,"offsetHeight"),s=t._getInvisibleElementProperty(n,"offsetWidth"),a=Math.round(g.getHeight(e)/2-i/2),o=Math.round(g.getWidth(e)/2-s/2);g.set(n,{left:o+"px",top:a+"px"})},t.prototype._setCurrentProgress=function(){var t=Math.round((Date.now()-this.startTime)/this.maxTimeout*100);this.progressBar.setValue(t)},t.prototype._setSuccess=function(t){this.progressBar.setSuccess(t)},t.prototype._stopAnimation=function(){p.clearInterval.call(e,this.animationInterval)},t.prototype._animate=function(t,n,i,s){var a=this,o=Date.now(),r=i?0:1,l=0,u=0,d=0;i&&(g.set(t,"opacity",r),g.set(t,"display","block")),this._stopAnimation(),this.animationInterval=p.setInterval.call(e,function(){l=Date.now()-o,u=Math.min(l/n,1),d=.5-Math.cos(u*Math.PI)/2,g.set(t,"opacity",r+(i?d:-d)),1===u&&(a._stopAnimation(),s&&s())},w)},t.prototype._showPanel=function(){m.bind(e,"resize",this.disposePanel),this._animate(this.panelDiv,x,!0)},t.prototype._hidePanel=function(t){var n=this;this.startTime=null,m.unbind(e,"resize",this.disposePanel),this._animate(this.panelDiv,t?0:b,!1,function(){return g.set(n.panelDiv,"display","none")})},t.prototype.show=function(t,n){var i=this;this.startTime=Date.now(),this.maxTimeout=n,this.titleDiv.textContent=t,this._setSuccess(!1),this.openingTimeout=p.setTimeout.call(e,function(){i.openingTimeout=null,i._setCurrentProgress(),i._showPanel(),i.updateInterval=p.setInterval.call(e,function(){return i._setCurrentProgress()},E)},C)},t.prototype.close=function(t){var n=this;t&&this._setSuccess(!0),this.openingTimeout&&(p.clearTimeout.call(e,this.openingTimeout),this.openingTimeout=null),this.updateInterval&&(p.clearInterval.call(e,this.updateInterval),this.updateInterval=null),t?this.startTime&&Date.now()-this.startTime<I?p.setTimeout.call(e,function(){p.setTimeout.call(e,function(){return n._hidePanel(!1)},x)},E):p.setTimeout.call(e,function(){return n._hidePanel(!1)},x):this._hidePanel(!0)},t}();t["default"]=S,i.exports=t["default"]},"progress-bar.js":function(t,e,i){function s(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var o=i("../deps/hammerhead"),r=s(o),l=i("../deps/testcafe-core"),u=s(l),d=r["default"].shadowUI,c=u["default"].styleUtils,h="progress-bar",f="value",p="success",m=function(){function t(e){a(this,t),this.containerElement=n.createElement("div"),this.valueElement=n.createElement("div"),e.appendChild(this.containerElement),this.containerElement.appendChild(this.valueElement),d.addClass(this.containerElement,h),d.addClass(this.valueElement,f)}return t.prototype.setValue=function(t){t="number"!=typeof t?0:Math.min(Math.max(t,0),100),c.set(this.valueElement,"width",t+"%")},t.prototype.setSuccess=function(t){t?d.addClass(this.containerElement,p):d.removeClass(this.containerElement,p)},t}();t["default"]=m,e.exports=t["default"]}},"select-element.js":function(t,i,s){function a(t){return t&&t.__esModule?t:{"default":t}}function o(t){(t.target||t.srcElement)===O||B.containsElement(O,t.target)||B.containsElement(F,t.target)||h()}function r(t,e){var n=O.selectedIndex,i=O.getElementsByTagName("option")[t],s=!e&&t!==n;s&&!b.isIE&&(O.selectedIndex=t),b.isFirefox||b.isIE||!s||S.change(O),(b.isFirefox||b.isIE)&&S.mousedown(b.isFirefox?i:O),b.isTouchDevice||S.mouseup(b.isFirefox?i:O),(b.isFirefox||b.isIE)&&s&&(b.isIE&&(O.selectedIndex=t),S.change(O)),b.isTouchDevice||S.click(b.isFirefox||b.isIE?i:O),e||h()}function l(t,e){var i=n.createElement("div"),s=t.disabled||"optgroup"===B.getTagName(t.parentElement)&&t.parentElement.disabled;i.textContent=t.text,e.appendChild(i),x.addClass(i,U),s&&(x.addClass(i,W),M.set(i,"color",M.get(t,"color"))),s&&b.isWebKit?D.bind(i,"click",function(){return!1}):D.bind(i,"click",function(){var t=V.indexOf(j,this);r(t,s)}),j.push(i)}function u(t,e){var i=n.createElement("div");i.textContent=t.label||" ",e.appendChild(i),x.addClass(i,A),i.disabled&&(x.addClass(i,W),M.set(i,"color",M.get(t,"color"))),d(t.children,i),q.push(i)}function d(t,e){for(var n=0;n<t.length;n++)B.isOptionElement(t[n])?l(t[n],e):"optgroup"===B.getTagName(t[n])&&u(t[n],e)}function c(t){var i=t.children;if(i.length){if(O){var s=t===O;if(h(),s)return}O=t,F=n.createElement("div"),x.getRoot().appendChild(F),x.addClass(F,R),d(i,F),I.setTimeout.call(e,function(){D.bind(n,"mousedown",o)},0),M.set(F,{position:"absolute",fontSize:M.get(O,"fontSize"),fontFamily:M.get(O,"fontFamily"),minWidth:M.getWidth(O)+"px",left:T.getOffsetPosition(O).left+"px",height:B.getSelectVisibleChildren(t).length>P?M.getOptionHeight(t)*P:""});var a=T.getOffsetPosition(O).top,r=M.getHeight(F),l=a+M.getHeight(O)+2;if(l+r>M.getScrollTop(e)+M.getHeight(e)){var u=a-3-r;u>=M.getScrollTop(e)&&(l=u)}M.set(F,"top",l+"px")}}function h(){B.remove(F),D.unbind(n,"mousedown",o),F=null,O=null,j=[],q=[]}function f(t){return t?t===O:!!O}function p(t){var e="optgroup"===B.getTagName(t),n=e?B.getOptionGroupIndex(O,t):B.getOptionIndex(O,t);return e?q[n]:j[n]}function m(t){var e=B.getSelectParent(t);if(e){var n=M.getSelectElementSize(e),i=M.getOptionHeight(e),s=0,a=Math.max(M.getScrollTop(e)/i,0),o=a+n-1,r=B.getChildVisibleIndex(e,t);r<a?(s=i*(a-r),M.setScrollTop(e,Math.max(M.getScrollTop(e)-s,0))):r>o&&(s=i*(r-o),M.setScrollTop(e,M.getScrollTop(e)+s))}}function g(t){var e=B.getSelectParent(t);if(!e)return{x:0,y:0};var n=M.getOptionHeight(e),i=T.getElementRectangle(t);return{x:Math.round(i.left+i.width/2),y:Math.round(i.top+n/2)}}function v(t,e){var n=M.getSelectElementSize(t),i=!M.hasDimensions(x.select("."+R)[0]);if(/down|up/.test(e)||!b.isIE&&(n<=1||b.isFirefox)&&(i||b.isFirefox)&&/left|right/.test(e)){for(var s=t.querySelectorAll("option"),a=[],o=0;o<s.length;o++){var r=s[o].parentElement;s[o].disabled||"optgroup"===B.getTagName(r)&&r.disabled||a.push(s[o])}var l=V.indexOf(a,s[t.selectedIndex]),u=l+(/down|right/.test(e)?1:-1);u>=0&&u<a.length&&(t.selectedIndex=V.indexOf(s,a[u]),S.change(t))}}function _(t){var e=B.getSelectParent(t);if(!e)return!0;var n=f(e),i=M.getSelectElementSize(e);return n||i>1}t.__esModule=!0,t.expandOptionList=c,t.collapseOptionList=h,t.isOptionListExpanded=f,t.getEmulatedChildElement=p,t.scrollOptionListByChild=m,t.getSelectChildCenter=g,t.switchOptionsByKeys=v,t.isOptionElementVisible=_;var y=s("./deps/hammerhead"),E=a(y),w=s("./deps/testcafe-core"),C=a(w),x=E["default"].shadowUI,b=E["default"].utils.browser,I=E["default"].nativeMethods,S=E["default"].eventSandbox.eventSimulator,T=C["default"].positionUtils,B=C["default"].domUtils,M=C["default"].styleUtils,D=C["default"].eventUtils,V=C["default"].arrayUtils,R="tcOptionList",A="tcOptionGroup",U="tcOption",W="disabled",P=b.isIE?30:20,O=null,F=null,q=[],j=[]},"status-bar":{"iframe-status-bar.js":function(t,n,i){function s(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}t.__esModule=!0;var l=i("./../deps/hammerhead"),u=s(l),d=i("./../deps/testcafe-core"),c=s(d),h=i("./messages"),f=s(h),p=i("./index"),m=s(p),g=c["default"].sendRequestToFrame,v=u["default"].eventSandbox.message,_=function(t){function n(){return a(this,n),o(this,t.call(this))}return r(n,t),n.prototype.setWaitingStatus=function(t){v.sendServiceMsg({cmd:f["default"].startWaitingForElement,timeout:t},e.top)},n.prototype.resetWaitingStatus=function(t){var n={cmd:f["default"].stopWaitingForElementRequest,waitingSuccess:t};return g(n,f["default"].stopWaitingForElementResponse,e.top)},n}(m["default"]);t["default"]=_,n.exports=t["default"]},"index.js":function(t,i,s){function a(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=s("./../deps/hammerhead"),l=a(r),u=s("./../deps/testcafe-core"),d=a(u),c=s("./progress-bar"),h=a(c),f=s("./messages"),p=a(f),m=l["default"].Promise,g=l["default"].shadowUI,v=l["default"].nativeMethods,_=l["default"].eventSandbox.message,y=d["default"].styleUtils,E=d["default"].eventUtils,w=d["default"].domUtils,C="status-bar",x="container",b="icon",I="info-container",S="fixture-container",T="fixture",B="user-agent",M="status-container",D="status",V="only-icon",R="icon-status",A="waiting-element-failed",U="waiting-element-success",W="Loading Web Page...",P="Waiting for an element to appear...",O=670,F=380,q=300,j=500,L=10,k=function(){function t(e,n,i){o(this,t),this.userAgent=e,this.fixtureName=n,this.testName=i,this.statusBar=null,this.container=null,this.infoContainer=null,this.icon=null,this.fixtureContainer=null,this.statusDiv=null,this.progressBar=null,this.animationInterval=null,this.showingTimeout=null,this.created=!1,this.showing=!1,this.hidding=!1,this._createBeforeReady(),this._initChildListening()}return t.prototype._createFixtureArea=function(){this.infoContainer=n.createElement("div"),g.addClass(this.infoContainer,I),this.container.appendChild(this.infoContainer),this.icon=n.createElement("div"),g.addClass(this.icon,b),this.infoContainer.appendChild(this.icon),this.fixtureContainer=n.createElement("div"),g.addClass(this.fixtureContainer,S),this.infoContainer.appendChild(this.fixtureContainer);var t=n.createElement("div");t.textContent=this.fixtureName+" - "+this.testName,g.addClass(t,T),this.fixtureContainer.appendChild(t);var e=n.createElement("div");e.textContent=this.userAgent,g.addClass(e,B),this.fixtureContainer.appendChild(e)},t.prototype._createStatusArea=function(){var t=n.createElement("div");g.addClass(t,M),this.container.appendChild(t),this.statusDiv=n.createElement("div"),this.statusDiv.textContent=W,g.addClass(this.statusDiv,D),t.appendChild(this.statusDiv)},t.prototype._create=function(){this.statusBar=n.createElement("div"),this.container=n.createElement("div"),g.addClass(this.statusBar,C),g.addClass(this.container,x),this.statusBar.appendChild(this.container),this._createFixtureArea(),this._createStatusArea(),this.progressBar=new h["default"](this.statusBar),this.progressBar.indeterminateIndicator.start(),this.progressBar.show(),g.getRoot().appendChild(this.statusBar),this._recalculateSizes(),this._bindHandlers(),this.created=!0},t.prototype._createBeforeReady=function(){var t=this;this.created||e!==e.top||(n.body?this._create():v.setTimeout.call(e,function(){return t._createBeforeReady()},0))},t.prototype._setSizeStyle=function(t){t>O?(g.removeClass(this.statusBar,V),g.removeClass(this.statusBar,R)):t<O&&t>F?(g.removeClass(this.statusBar,V),g.addClass(this.statusBar,R)):t<F&&(g.removeClass(this.statusBar,R),g.addClass(this.statusBar,V))},t.prototype._setFixtureContainerWidth=function(){var t=y.getWidth(this.infoContainer),e=y.getWidth(this.icon),n=y.getElementMargin(this.icon),i=t-e-n.left-n.right-1;y.set(this.fixtureContainer,"width",i+"px")},t.prototype._setStatusDivLeftMargin=function(){if("none"!==y.get(this.statusDiv,"display")){var t=y.getWidth(this.infoContainer),e=y.getWidth(this.container),n=y.getWidth(this.statusDiv),i=Math.round(e/2-n/2-t);y.set(this.statusDiv,"marginLeft",Math.max(i,0)+"px")}},t.prototype._recalculateSizes=function(){var t=y.getWidth(e);y.set(this.statusBar,"width",t+"px"),this._setSizeStyle(t),this._setFixtureContainerWidth(),this._setStatusDivLeftMargin()},t.prototype._animate=function(t){var n=this,i=Date.now(),s=parseInt(y.get(this.statusBar,"opacity"),10)||0,a=0,o=0,r=0;this._stopAnimation(),this.animationInterval=v.setInterval.call(e,function(){a=Date.now()-i,o=Math.min(a/j,1),r=.5-Math.cos(o*Math.PI)/2,y.set(n.statusBar,"opacity",s+(t?r:-r)),1===o&&(n._stopAnimation(),n.showing=!1,n.hidding=!1)},L)},t.prototype._stopAnimation=function(){this.animationInterval&&(v.clearInterval.call(e,this.animationInterval),this.animationInterval=null)},t.prototype._bindHandlers=function(){var t=this;E.bind(e,"resize",function(){return t._recalculateSizes()}),E.bind(this.statusBar,"mouseover",function(){t.hidding||(t.showing=!1,t.hidding=!0,t._animate())}),E.bind(this.statusBar,"mouseout",function(e){w.containsElement(t.statusBar,e.relatedTarget)||t.showing||(t.hidding=!1,t.showing=!0,t._animate(!0))})},t.prototype._initChildListening=function(){var t=this;_.on(_.SERVICE_MSG_RECEIVED_EVENT,function(e){var n=e.message;n.cmd===p["default"].startWaitingForElement?t.setWaitingStatus(n.timeout):n.cmd===p["default"].stopWaitingForElementRequest&&t.resetWaitingStatus(n.waitingSuccess).then(function(){return _.sendServiceMsg({cmd:p["default"].stopWaitingForElementResponse},e.source)})})},t.prototype._resetState=function(){this.statusDiv.textContent="",this.progressBar.hide()},t.prototype._showWaitingStatus=function(){this.statusDiv.textContent=P,this._setStatusDivLeftMargin(),this.progressBar.show()},t.prototype._hideWaitingStatus=function(t){var n=this;return new m(function(i){v.setTimeout.call(e,function(){g.removeClass(n.statusBar,U),g.removeClass(n.statusBar,A),n.progressBar.determinateIndicator.reset(),n._resetState(),i()},t?0:j)})},t.prototype.resetPageLoadingStatus=function(){this.created||this._create(),this.progressBar.indeterminateIndicator.stop(),this._resetState()},t.prototype.setWaitingStatus=function(t){var n=this;this.progressBar.determinateIndicator.start(t),this.showingTimeout=v.setTimeout.call(e,function(){n.showingTimeout=null,n._showWaitingStatus()},q)},t.prototype.resetWaitingStatus=function(t){this.progressBar.determinateIndicator.stop(),t?g.addClass(this.statusBar,U):g.addClass(this.statusBar,A);var n=this.showingTimeout&&t;return this.showingTimeout&&(v.clearTimeout.call(e,this.showingTimeout),this.showingTimeout=null,t||this._showWaitingStatus()),this._hideWaitingStatus(n)},t}();t["default"]=k,i.exports=t["default"]},"messages.js":function(t,e,n){t.__esModule=!0,t["default"]={startWaitingForElement:"start-waiting-for-element",stopWaitingForElementRequest:"stop-waiting-for-element-request",stopWaitingForElementResponse:"stop-waiting-for-element-response"},e.exports=t["default"]},"progress-bar":{"determinate-indicator.js":function(t,n,i){function s(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var o=i("../../deps/hammerhead"),r=s(o),l=i("../../deps/testcafe-core"),u=s(l),d=r["default"].shadowUI,c=r["default"].nativeMethods,h=u["default"].styleUtils,f="determinate",p=10,m=function(){function t(e,n){a(this,t),this.progressBar=e,this.firstValueElement=n,this.maxTimeout=null,this.startTime=null,this.animationInterval=null}return t.prototype._setCurrentProgress=function(){var t=(Date.now()-this.startTime)/this.maxTimeout,e=Math.min(Math.max(t,0),1),n=h.getWidth(this.progressBar),i=Math.round(n*e);h.set(this.firstValueElement,"width",i+"px")},t.prototype.start=function(t){var n=this;d.addClass(this.progressBar,f),this.maxTimeout=t,this.startTime=Date.now(),this._setCurrentProgress(),this.animationInterval=c.setInterval.call(e,function(){return n._setCurrentProgress()},p)},t.prototype.stop=function(){this.animationInterval&&(c.clearInterval.call(e,this.animationInterval),this.animationInterval=null)},t.prototype.reset=function(){h.set(this.firstValueElement,"width",0),d.removeClass(this.progressBar,f)},t}();t["default"]=m,n.exports=t["default"]},"indeterminate-indicator.js":function(t,n,i){function s(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e,n){return 3*Math.pow(1-t,2)*t*e+3*(1-t)*t*t*n+t*t*t}function r(t,e){var n=t<w.middle,i=n?w.start:w.middle,s=n?w.middle:w.end,a=e[i],o=e[s],r={x:i,y:a.left},l={x:s,y:o.left},u=m.getLineYByXCoord(r,l,t);r={x:i,y:a.right},l={x:s,y:o.right};var d=m.getLineYByXCoord(r,l,t);return{left:u,right:d}}t.__esModule=!0;var l=i("../../deps/hammerhead"),u=s(l),d=i("../../deps/testcafe-core"),c=s(d),h=u["default"].shadowUI,f=u["default"].nativeMethods,p=c["default"].styleUtils,m=c["default"].positionUtils,g={time:2800,points:[.815,.395],positionByCompletePercent:{0:{left:-35,right:100},.6:{left:100,right:-90},1:{left:100,right:-90}}},v={time:3e3,points:[.84,1],positionByCompletePercent:{0:{left:-200,right:100},.6:{left:107,right:-8},1:{left:107,right:-8}}},_=1e3,y=10,E=1950,w={start:0,middle:.6,end:1},C="indeterminate",x=function(){function t(e,n,i){a(this,t),this.progressBar=e,this.firstValue=n,this.secondValue=i,this.animationInterval=null,this.secondValueAnimationInterval=null,this.secondValueAnimationTimeout=null,this.restartAnimationTimeout=null}return t._updateValueAnimation=function(t,e,n){var i=n.time,s=n.points,a=n.positionByCompletePercent,l=Date.now()-t,u=l/i,d=o(u,s[0],s[1]),c=r(d,a),h=c.left,f=c.right;p.set(e,"left",Math.round(h)+"%"),p.set(e,"right",Math.round(f)+"%")},t.prototype._clearFirstValueAnimation=function(){this.animationInterval&&(f.clearInterval.call(e,this.animationInterval),this.animationInterval=null),p.set(this.firstValue,"left","-35%"),p.set(this.firstValue,"right","100%")},t.prototype._clearSecondValueAnimation=function(){this.secondValueAnimationInterval&&(f.clearInterval.call(e,this.secondValueAnimationInterval),this.secondValueAnimationInterval=null),p.set(this.secondValue,"left","-200%"),p.set(this.secondValue,"right","100%")},t.prototype._startFirstValueAnimation=function(){var n=this;this._clearFirstValueAnimation();var i=Date.now();this.animationInterval=f.setInterval.call(e,function(){t._updateValueAnimation(i,n.firstValue,g)},y)},t.prototype._startSecondValueAnimation=function(){var n=this;this._clearSecondValueAnimation();var i=Date.now();this.secondValueAnimationInterval=f.setInterval.call(e,function(){t._updateValueAnimation(i,n.secondValue,v)},y)},t.prototype._startAnimation=function(){var t=this;this._startFirstValueAnimation(),this.secondValueAnimationTimeout=f.setTimeout.call(e,function(){return t._startSecondValueAnimation()},_),this.restartAnimationTimeout=f.setTimeout.call(e,function(){return t._startAnimation()},E)},t.prototype._stopAnimation=function(){this._clearFirstValueAnimation(),this._clearSecondValueAnimation(),this.secondValueAnimationTimeout&&(f.clearInterval.call(e,this.secondValueAnimationTimeout),this.secondValueAnimationTimeout=null),this.restartAnimationTimeout&&(f.clearInterval.call(e,this.restartAnimationTimeout),this.restartAnimationTimeout=null)},t.prototype.start=function(){h.addClass(this.progressBar,C),this._startAnimation()},t.prototype.stop=function(){h.removeClass(this.progressBar,C),this._stopAnimation()},t}();t["default"]=x,n.exports=t["default"]},"index.js":function(t,e,i){function s(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var o=i("../../deps/hammerhead"),r=s(o),l=i("../../deps/testcafe-core"),u=s(l),d=i("./determinate-indicator"),c=s(d),h=i("./indeterminate-indicator"),f=s(h),p=r["default"].shadowUI,m=u["default"].styleUtils,g="progress-bar",v="value-container",_="value",y=function(){function t(e){a(this,t),this.progressBar=null,this.firstValueElement=null,this.secondValueElement=null,this._create(e),this.determinateIndicator=new c["default"](this.progressBar,this.firstValueElement),this.indeterminateIndicator=new f["default"](this.progressBar,this.firstValueElement,this.secondValueElement)}return t.prototype._create=function(t){this.progressBar=n.createElement("div"),p.addClass(this.progressBar,g),t.appendChild(this.progressBar);var e=n.createElement("div");p.addClass(e,v),this.progressBar.appendChild(e),this.firstValueElement=n.createElement("div"),p.addClass(this.firstValueElement,_),e.appendChild(this.firstValueElement),this.secondValueElement=n.createElement("div"),p.addClass(this.secondValueElement,_),e.appendChild(this.secondValueElement)},t.prototype.show=function(){m.set(this.progressBar,"visibility","visible")},t.prototype.hide=function(){m.set(this.progressBar,"visibility","hidden")},t}();t["default"]=y,e.exports=t["default"]}}}}}}}})("testcafe/src/client/ui/index")}t(window)}();

@@ -39,2 +39,3 @@ 'use strict';

valueIsNotAnObject: '{smthg} is expected to be an object, but it was {type}.',
valueIsNotAString: '{smthg} is expected to be a string, but it was {type}.',
valueIsNotAStringOrRegExp: '{smthg} is expected to be a string or a regular expression, but it was {type}.',

@@ -41,0 +42,0 @@ valueIsNotAFunctionOrString: '{smthg} is expected to be a string or a function, but it was {type}.',

@@ -13,2 +13,3 @@ 'use strict';

exports.assertObject = assertObject;
exports.assertString = assertString;
exports.assertNonNullObject = assertNonNullObject;

@@ -59,2 +60,8 @@ exports.assertFunctionOrString = assertFunctionOrString;

function assertString(callsiteName, what, value) {
var type = typeof value === 'undefined' ? 'undefined' : (0, _typeof3.default)(value);
if (type !== 'string') throw new _.APIError(callsiteName, _message2.default.valueIsNotAString, what, type);
}
function assertNonNullObject(callsiteName, what, value) {

@@ -61,0 +68,0 @@ var type = typeof value === 'undefined' ? 'undefined' : (0, _typeof3.default)(value);

'use strict';
exports.__esModule = true;
exports.WindowDimensionsOverflowError = exports.SetNativeDialogHandlerCodeWrongTypeError = exports.UncaughtErrorInNativeDialogHandler = exports.NativeDialogNotHandledError = exports.CurrentIframeIsInvisibleError = exports.CurrentIframeNotFoundError = exports.CurrentIframeIsNotLoadedError = exports.ActionIframeIsNotLoadedError = exports.ActionElementNotIframeError = exports.ActionElementIsNotFileInputError = exports.ActionCanNotFindFileToUploadError = exports.ActionIncorrectKeysError = exports.ActionRootContainerNotFoundError = exports.ActionElementNonContentEditableError = exports.ActionElementNotTextAreaError = exports.ActionElementNonEditableError = exports.ActionAdditionalSelectorMatchesWrongNodeTypeError = exports.ActionAdditionalElementIsInvisibleError = exports.ActionAdditionalElementNotFoundError = exports.ActionSelectorMatchesWrongNodeTypeError = exports.ActionElementIsInvisibleError = exports.ActionElementNotFoundError = exports.ActionSelectorError = exports.ActionUnsupportedDeviceTypeError = exports.ActionUnsupportedUrlProtocolError = exports.ActionStringArrayElementError = exports.ActionStringOrStringArrayArgumentError = exports.ActionPositiveIntegerArgumentError = exports.ActionIntegerArgumentError = exports.ActionStringArgumentError = exports.ActionOptionsTypeError = exports.ActionBooleanOptionError = exports.ActionPositiveIntegerOptionError = exports.ExternalAssertionLibraryError = exports.UncaughtErrorInClientFunctionCode = exports.UncaughtNonErrorObjectInTestCode = exports.UncaughtErrorInTestCode = exports.UncaughtErrorOnPage = exports.PageLoadError = exports.CantObtainInfoForElementSpecifiedBySelectorError = exports.InvalidSelectorResultError = exports.DomNodeClientFunctionResultError = exports.ClientFunctionExecutionInterruptionError = exports.MissingAwaitError = undefined;
exports.WindowDimensionsOverflowError = exports.SetNativeDialogHandlerCodeWrongTypeError = exports.UncaughtErrorInNativeDialogHandler = exports.NativeDialogNotHandledError = exports.CurrentIframeIsInvisibleError = exports.CurrentIframeNotFoundError = exports.CurrentIframeIsNotLoadedError = exports.ActionIframeIsNotLoadedError = exports.ActionElementNotIframeError = exports.ActionElementIsNotFileInputError = exports.ActionCanNotFindFileToUploadError = exports.ActionIncorrectKeysError = exports.ActionRootContainerNotFoundError = exports.ActionElementNonContentEditableError = exports.ActionElementNotTextAreaError = exports.ActionElementNonEditableError = exports.ActionAdditionalSelectorMatchesWrongNodeTypeError = exports.ActionAdditionalElementIsInvisibleError = exports.ActionAdditionalElementNotFoundError = exports.ActionSelectorMatchesWrongNodeTypeError = exports.ActionElementIsInvisibleError = exports.ActionElementNotFoundError = exports.ActionSelectorError = exports.ActionUnsupportedDeviceTypeError = exports.ActionUnsupportedUrlProtocolError = exports.ActionStringArrayElementError = exports.ActionStringOrStringArrayArgumentError = exports.ActionPositiveIntegerArgumentError = exports.ActionIntegerArgumentError = exports.ActionStringArgumentError = exports.ActionOptionsTypeError = exports.ActionBooleanOptionError = exports.ActionPositiveIntegerOptionError = exports.ActionIntegerOptionError = exports.ExternalAssertionLibraryError = exports.UncaughtErrorInClientFunctionCode = exports.UncaughtNonErrorObjectInTestCode = exports.UncaughtErrorInTestCode = exports.UncaughtErrorOnPage = exports.PageLoadError = exports.CantObtainInfoForElementSpecifiedBySelectorError = exports.InvalidSelectorResultError = exports.DomNodeClientFunctionResultError = exports.ClientFunctionExecutionInterruptionError = exports.MissingAwaitError = undefined;

@@ -269,8 +269,19 @@ var _typeof2 = require('babel-runtime/helpers/typeof');

var ActionPositiveIntegerOptionError = exports.ActionPositiveIntegerOptionError = function (_ActionOptionErrorBas) {
(0, _inherits3.default)(ActionPositiveIntegerOptionError, _ActionOptionErrorBas);
var ActionIntegerOptionError = exports.ActionIntegerOptionError = function (_ActionOptionErrorBas) {
(0, _inherits3.default)(ActionIntegerOptionError, _ActionOptionErrorBas);
function ActionIntegerOptionError(optionName, actualValue) {
(0, _classCallCheck3.default)(this, ActionIntegerOptionError);
return (0, _possibleConstructorReturn3.default)(this, _ActionOptionErrorBas.call(this, _type2.default.actionIntegerOptionError, optionName, actualValue));
}
return ActionIntegerOptionError;
}(ActionOptionErrorBase);
var ActionPositiveIntegerOptionError = exports.ActionPositiveIntegerOptionError = function (_ActionOptionErrorBas2) {
(0, _inherits3.default)(ActionPositiveIntegerOptionError, _ActionOptionErrorBas2);
function ActionPositiveIntegerOptionError(optionName, actualValue) {
(0, _classCallCheck3.default)(this, ActionPositiveIntegerOptionError);
return (0, _possibleConstructorReturn3.default)(this, _ActionOptionErrorBas.call(this, _type2.default.actionPositiveIntegerOptionError, optionName, actualValue));
return (0, _possibleConstructorReturn3.default)(this, _ActionOptionErrorBas2.call(this, _type2.default.actionPositiveIntegerOptionError, optionName, actualValue));
}

@@ -281,8 +292,8 @@

var ActionBooleanOptionError = exports.ActionBooleanOptionError = function (_ActionOptionErrorBas2) {
(0, _inherits3.default)(ActionBooleanOptionError, _ActionOptionErrorBas2);
var ActionBooleanOptionError = exports.ActionBooleanOptionError = function (_ActionOptionErrorBas3) {
(0, _inherits3.default)(ActionBooleanOptionError, _ActionOptionErrorBas3);
function ActionBooleanOptionError(optionName, actualValue) {
(0, _classCallCheck3.default)(this, ActionBooleanOptionError);
return (0, _possibleConstructorReturn3.default)(this, _ActionOptionErrorBas2.call(this, _type2.default.actionBooleanOptionError, optionName, actualValue));
return (0, _possibleConstructorReturn3.default)(this, _ActionOptionErrorBas3.call(this, _type2.default.actionBooleanOptionError, optionName, actualValue));
}

@@ -299,6 +310,6 @@

var _this16 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase14.call(this, _type2.default.actionOptionsTypeError));
var _this17 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase14.call(this, _type2.default.actionOptionsTypeError));
_this16.actualType = actualType;
return _this16;
_this17.actualType = actualType;
return _this17;
}

@@ -362,6 +373,6 @@

var _this21 = (0, _possibleConstructorReturn3.default)(this, _ActionArgumentErrorB5.call(this, _type2.default.actionStringArrayElementError, argumentName, actualValue));
var _this22 = (0, _possibleConstructorReturn3.default)(this, _ActionArgumentErrorB5.call(this, _type2.default.actionStringArrayElementError, argumentName, actualValue));
_this21.elementIndex = elementIndex;
return _this21;
_this22.elementIndex = elementIndex;
return _this22;
}

@@ -378,7 +389,7 @@

var _this22 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase15.call(this, _type2.default.actionUnsupportedUrlProtocolError));
var _this23 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase15.call(this, _type2.default.actionUnsupportedUrlProtocolError));
_this22.argumentName = argumentName;
_this22.protocol = protocol;
return _this22;
_this23.argumentName = argumentName;
_this23.protocol = protocol;
return _this23;
}

@@ -409,7 +420,7 @@

var _this24 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase16.call(this, _type2.default.actionSelectorError));
var _this25 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase16.call(this, _type2.default.actionSelectorError));
_this24.selectorName = selectorName;
_this24.errMsg = errMsg;
return _this24;
_this25.selectorName = selectorName;
_this25.errMsg = errMsg;
return _this25;
}

@@ -452,6 +463,6 @@

var _this27 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase19.call(this, _type2.default.actionSelectorMatchesWrongNodeTypeError));
var _this28 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase19.call(this, _type2.default.actionSelectorMatchesWrongNodeTypeError));
_this27.nodeDescription = nodeDescription;
return _this27;
_this28.nodeDescription = nodeDescription;
return _this28;
}

@@ -468,6 +479,6 @@

var _this28 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase20.call(this, _type2.default.actionAdditionalElementNotFoundError));
var _this29 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase20.call(this, _type2.default.actionAdditionalElementNotFoundError));
_this28.argumentName = argumentName;
return _this28;
_this29.argumentName = argumentName;
return _this29;
}

@@ -484,6 +495,6 @@

var _this29 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase21.call(this, _type2.default.actionAdditionalElementIsInvisibleError));
var _this30 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase21.call(this, _type2.default.actionAdditionalElementIsInvisibleError));
_this29.argumentName = argumentName;
return _this29;
_this30.argumentName = argumentName;
return _this30;
}

@@ -500,7 +511,7 @@

var _this30 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase22.call(this, _type2.default.actionAdditionalSelectorMatchesWrongNodeTypeError));
var _this31 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase22.call(this, _type2.default.actionAdditionalSelectorMatchesWrongNodeTypeError));
_this30.argumentName = argumentName;
_this30.nodeDescription = nodeDescription;
return _this30;
_this31.argumentName = argumentName;
_this31.nodeDescription = nodeDescription;
return _this31;
}

@@ -539,6 +550,6 @@

var _this33 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase25.call(this, _type2.default.actionElementNonContentEditableError));
var _this34 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase25.call(this, _type2.default.actionElementNonContentEditableError));
_this33.argumentName = argumentName;
return _this33;
_this34.argumentName = argumentName;
return _this34;
}

@@ -566,6 +577,6 @@

var _this35 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase27.call(this, _type2.default.actionIncorrectKeysError));
var _this36 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase27.call(this, _type2.default.actionIncorrectKeysError));
_this35.argumentName = argumentName;
return _this35;
_this36.argumentName = argumentName;
return _this36;
}

@@ -582,6 +593,6 @@

var _this36 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase28.call(this, _type2.default.actionCanNotFindFileToUploadError));
var _this37 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase28.call(this, _type2.default.actionCanNotFindFileToUploadError));
_this36.filePaths = filePaths;
return _this36;
_this37.filePaths = filePaths;
return _this37;
}

@@ -670,7 +681,7 @@

var _this43 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase35.call(this, _type2.default.nativeDialogNotHandledError));
var _this44 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase35.call(this, _type2.default.nativeDialogNotHandledError));
_this43.dialogType = dialogType;
_this43.pageUrl = url;
return _this43;
_this44.dialogType = dialogType;
_this44.pageUrl = url;
return _this44;
}

@@ -687,8 +698,8 @@

var _this44 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase36.call(this, _type2.default.uncaughtErrorInNativeDialogHandler));
var _this45 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase36.call(this, _type2.default.uncaughtErrorInNativeDialogHandler));
_this44.dialogType = dialogType;
_this44.errMsg = errMsg;
_this44.pageUrl = url;
return _this44;
_this45.dialogType = dialogType;
_this45.errMsg = errMsg;
_this45.pageUrl = url;
return _this45;
}

@@ -705,6 +716,6 @@

var _this45 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase37.call(this, _type2.default.setNativeDialogHandlerCodeWrongTypeError));
var _this46 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase37.call(this, _type2.default.setNativeDialogHandlerCodeWrongTypeError));
_this45.actualType = actualType;
return _this45;
_this46.actualType = actualType;
return _this46;
}

@@ -721,6 +732,6 @@

var _this46 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase38.call(this, _type2.default.windowDimensionsOverflowError));
var _this47 = (0, _possibleConstructorReturn3.default)(this, _TestRunErrorBase38.call(this, _type2.default.windowDimensionsOverflowError));
_this46.callsite = callsite;
return _this46;
_this47.callsite = callsite;
return _this47;
}

@@ -727,0 +738,0 @@

@@ -5,3 +5,3 @@ 'use strict';

var _TYPE$actionPositiveI;
var _TYPE$actionIntegerOp;

@@ -44,93 +44,95 @@ var _dedent = require('dedent');

exports.default = (_TYPE$actionPositiveI = {}, _TYPE$actionPositiveI[_type2.default.actionPositiveIntegerOptionError] = function (err) {
exports.default = (_TYPE$actionIntegerOp = {}, _TYPE$actionIntegerOp[_type2.default.actionIntegerOptionError] = function (err) {
return markup(err, '\n The "' + err.optionName + '" option is expected to be an integer, but it was ' + err.actualValue + '.\n ');
}, _TYPE$actionIntegerOp[_type2.default.actionPositiveIntegerOptionError] = function (err) {
return markup(err, '\n The "' + err.optionName + '" option is expected to be a positive integer, but it was ' + err.actualValue + '.\n ');
}, _TYPE$actionPositiveI[_type2.default.actionBooleanOptionError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionBooleanOptionError] = function (err) {
return markup(err, '\n The "' + err.optionName + '" option is expected to be a boolean value, but it was ' + err.actualValue + '.\n ');
}, _TYPE$actionPositiveI[_type2.default.pageLoadError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.pageLoadError] = function (err) {
return markup(err, '\n ' + err.errMsg + '\n ');
}, _TYPE$actionPositiveI[_type2.default.uncaughtErrorOnPage] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.uncaughtErrorOnPage] = function (err) {
return markup(err, '\n Error on page <a href="' + err.pageDestUrl + '">' + err.pageDestUrl + '</a>:\n\n ' + (0, _lodash.escape)(err.errMsg) + '\n ');
}, _TYPE$actionPositiveI[_type2.default.uncaughtErrorInTestCode] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.uncaughtErrorInTestCode] = function (err) {
return markup(err, '\n ' + (0, _lodash.escape)(err.errMsg) + '\n ');
}, _TYPE$actionPositiveI[_type2.default.nativeDialogNotHandledError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.nativeDialogNotHandledError] = function (err) {
return markup(err, '\n A native ' + err.dialogType + ' dialog was invoked on page <a href="' + err.pageUrl + '">' + err.pageUrl + '</a>, but no handler was set for it. Use the "setNativeDialogHandler" function to introduce a handler function for native dialogs.\n ');
}, _TYPE$actionPositiveI[_type2.default.uncaughtErrorInNativeDialogHandler] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.uncaughtErrorInNativeDialogHandler] = function (err) {
return markup(err, '\n An error occurred in the native dialog handler called for a native ' + err.dialogType + ' dialog on page <a href="' + err.pageUrl + '">' + err.pageUrl + '</a>:\n\n ' + (0, _lodash.escape)(err.errMsg) + '\n ');
}, _TYPE$actionPositiveI[_type2.default.setNativeDialogHandlerCodeWrongTypeError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.setNativeDialogHandlerCodeWrongTypeError] = function (err) {
return markup(err, '\n The native dialog handler is expected to be specified as a regular function or ClientFunction, but ' + err.actualType + ' was passed.\n ');
}, _TYPE$actionPositiveI[_type2.default.uncaughtErrorInClientFunctionCode] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.uncaughtErrorInClientFunctionCode] = function (err) {
return markup(err, '\n An error occurred in ' + err.instantiationCallsiteName + ' code:\n\n ' + (0, _lodash.escape)(err.errMsg) + '\n ');
}, _TYPE$actionPositiveI[_type2.default.clientFunctionExecutionInterruptionError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.clientFunctionExecutionInterruptionError] = function (err) {
return markup(err, '\n ' + err.instantiationCallsiteName + ' execution was interrupted by page unload. This problem may appear if you trigger page navigation from ' + err.instantiationCallsiteName + ' code.\n ');
}, _TYPE$actionPositiveI[_type2.default.uncaughtNonErrorObjectInTestCode] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.uncaughtNonErrorObjectInTestCode] = function (err) {
return markup(err, '\n Uncaught ' + err.objType + ' "' + (0, _lodash.escape)(err.objStr) + '" was thrown. Throw Error instead.\n ', { withoutCallsite: true });
}, _TYPE$actionPositiveI[_type2.default.actionOptionsTypeError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionOptionsTypeError] = function (err) {
return markup(err, '\n Action options is expected to be an object, null or undefined but it was ' + err.actualType + '.\n ');
}, _TYPE$actionPositiveI[_type2.default.actionUnsupportedUrlProtocolError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionUnsupportedUrlProtocolError] = function (err) {
return markup(err, '\n The "' + err.argumentName + '" argument specifies a URL that uses an unsupported ' + err.protocol + ':// protocol. Only HTTP and HTTPS are supported, as well as protocol-relative and relative URLs.\n ');
}, _TYPE$actionPositiveI[_type2.default.actionStringArgumentError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionStringArgumentError] = function (err) {
return markup(err, '\n The "' + err.argumentName + '" argument is expected to be a non-empty string, but it was ' + err.actualValue + '.\n ');
}, _TYPE$actionPositiveI[_type2.default.actionStringOrStringArrayArgumentError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionStringOrStringArrayArgumentError] = function (err) {
return markup(err, '\n The "' + err.argumentName + '" argument is expected to be a non-empty string or a string array, but it was ' + err.actualValue + '.\n ');
}, _TYPE$actionPositiveI[_type2.default.actionStringArrayElementError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionStringArrayElementError] = function (err) {
return markup(err, '\n Elements of the "' + err.argumentName + '" argument are expected to be non-empty strings, but the element at index ' + err.elementIndex + ' was ' + err.actualValue + '.\n ');
}, _TYPE$actionPositiveI[_type2.default.actionIntegerArgumentError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionIntegerArgumentError] = function (err) {
return markup(err, '\n The "' + err.argumentName + '" argument is expected to be an integer, but it was ' + err.actualValue + '.\n ');
}, _TYPE$actionPositiveI[_type2.default.actionPositiveIntegerArgumentError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionPositiveIntegerArgumentError] = function (err) {
return markup(err, '\n The "' + err.argumentName + '" argument is expected to be a positive integer, but it was ' + err.actualValue + '.\n ');
}, _TYPE$actionPositiveI[_type2.default.actionElementNotFoundError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionElementNotFoundError] = function (err) {
return markup(err, '\n The specified selector does not match any element in the DOM tree.\n ');
}, _TYPE$actionPositiveI[_type2.default.actionElementIsInvisibleError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionElementIsInvisibleError] = function (err) {
return markup(err, '\n The element that matches the specified selector is not visible.\n ');
}, _TYPE$actionPositiveI[_type2.default.actionSelectorMatchesWrongNodeTypeError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionSelectorMatchesWrongNodeTypeError] = function (err) {
return markup(err, '\n The specified selector is expected to match a DOM element, but it matches a ' + err.nodeDescription + ' node.\n ');
}, _TYPE$actionPositiveI[_type2.default.actionAdditionalElementNotFoundError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionAdditionalElementNotFoundError] = function (err) {
return markup(err, '\n The specified "' + err.argumentName + '" does not match any element in the DOM tree.\n ');
}, _TYPE$actionPositiveI[_type2.default.actionAdditionalElementIsInvisibleError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionAdditionalElementIsInvisibleError] = function (err) {
return markup(err, '\n The element that matches the specified "' + err.argumentName + '" is not visible.\n ');
}, _TYPE$actionPositiveI[_type2.default.actionAdditionalSelectorMatchesWrongNodeTypeError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionAdditionalSelectorMatchesWrongNodeTypeError] = function (err) {
return markup(err, '\n The specified "' + err.argumentName + '" is expected to match a DOM element, but it matches a ' + err.nodeDescription + ' node.\n ');
}, _TYPE$actionPositiveI[_type2.default.actionElementNonEditableError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionElementNonEditableError] = function (err) {
return markup(err, '\n The action element is expected to be editable (an input, textarea or element with the contentEditable attribute).\n ');
}, _TYPE$actionPositiveI[_type2.default.actionElementNonContentEditableError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionElementNonContentEditableError] = function (err) {
return markup(err, '\n The element that matches the specified "' + err.argumentName + '" is expected to have the contentEditable attribute enabled or the entire document should be in design mode.\n ');
}, _TYPE$actionPositiveI[_type2.default.actionRootContainerNotFoundError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionRootContainerNotFoundError] = function (err) {
return markup(err, '\n Content between the action elements cannot be selected because the root container for the selection range cannot be found, i.e. these elements do not have a common ancestor with the contentEditable attribute.\n ');
}, _TYPE$actionPositiveI[_type2.default.actionElementIsNotFileInputError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionElementIsNotFileInputError] = function (err) {
return markup(err, '\n The specified selector does not match a file input element.\n ');
}, _TYPE$actionPositiveI[_type2.default.actionCanNotFindFileToUploadError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionCanNotFindFileToUploadError] = function (err) {
return markup(err, '\n Cannot find the following file(s) to upload:\n ' + err.filePaths.map(function (path) {
return ' ' + (0, _lodash.escape)(path);
}).join('\n') + '\n ');
}, _TYPE$actionPositiveI[_type2.default.actionElementNotTextAreaError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionElementNotTextAreaError] = function (err) {
return markup(err, '\n The action element is expected to be a &lt;textarea&gt;.\n ');
}, _TYPE$actionPositiveI[_type2.default.actionElementNotIframeError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionElementNotIframeError] = function (err) {
return markup(err, '\n The action element is expected to be an &lt;iframe&gt.\n ');
}, _TYPE$actionPositiveI[_type2.default.actionIncorrectKeysError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionIncorrectKeysError] = function (err) {
return markup(err, '\n The "' + err.argumentName + '" argument contains an incorrect key or key combination.\n ');
}, _TYPE$actionPositiveI[_type2.default.actionUnsupportedDeviceTypeError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionUnsupportedDeviceTypeError] = function (err) {
return markup(err, '\n The "' + err.argumentName + '" argument specifies an unsupported "' + err.actualValue + '" device. For a list of supported devices, refer to <a href="http://viewportsizes.com">http://viewportsizes.com</a>.\n ');
}, _TYPE$actionPositiveI[_type2.default.actionIframeIsNotLoadedError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionIframeIsNotLoadedError] = function (err) {
return markup(err, '\n Content of the iframe to which you are switching did not load.\n ');
}, _TYPE$actionPositiveI[_type2.default.currentIframeIsNotLoadedError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.currentIframeIsNotLoadedError] = function (err) {
return markup(err, '\n Content of the iframe in which the test is currently operating did not load.\n ');
}, _TYPE$actionPositiveI[_type2.default.currentIframeNotFoundError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.currentIframeNotFoundError] = function (err) {
return markup(err, '\n The iframe in which the test is currently operating does not exist anymore.\n ');
}, _TYPE$actionPositiveI[_type2.default.currentIframeIsInvisibleError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.currentIframeIsInvisibleError] = function (err) {
return markup(err, '\n The iframe in which the test is currently operating is not visible anymore.\n ');
}, _TYPE$actionPositiveI[_type2.default.missingAwaitError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.missingAwaitError] = function (err) {
return markup(err, '\n A call to an async function is not awaited. Use the "await" keyword before actions, assertions or chains of them to ensure that they run in the right sequence.\n ');
}, _TYPE$actionPositiveI[_type2.default.externalAssertionLibraryError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.externalAssertionLibraryError] = function (err) {
return markup(err, '\n ' + (0, _lodash.escape)(err.errMsg) + '\n ');
}, _TYPE$actionPositiveI[_type2.default.domNodeClientFunctionResultError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.domNodeClientFunctionResultError] = function (err) {
return markup(err, '\n ' + err.instantiationCallsiteName + ' cannot return DOM elements. Use Selector functions for this purpose.\n ');
}, _TYPE$actionPositiveI[_type2.default.invalidSelectorResultError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.invalidSelectorResultError] = function (err) {
return markup(err, '\n Function that specifies a selector can only return a DOM node, an array of nodes, NodeList, HTMLCollection, null or undefined. Use ClientFunction to return other values.\n ');
}, _TYPE$actionPositiveI[_type2.default.actionSelectorError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.actionSelectorError] = function (err) {
return markup(err, '\n Action "' + err.selectorName + '" argument error:\n\n ' + (0, _lodash.escape)(err.errMsg) + '\n ');
}, _TYPE$actionPositiveI[_type2.default.cantObtainInfoForElementSpecifiedBySelectorError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.cantObtainInfoForElementSpecifiedBySelectorError] = function (err) {
return markup(err, '\n Cannot obtain information about the node because the specified selector does not match any node in the DOM tree.\n ');
}, _TYPE$actionPositiveI[_type2.default.windowDimensionsOverflowError] = function (err) {
}, _TYPE$actionIntegerOp[_type2.default.windowDimensionsOverflowError] = function (err) {
return markup(err, '\n Unable to resize the window because the specified size exceeds the screen size. On macOS, a window cannot be larger than the screen.\n ');
}, _TYPE$actionPositiveI);
}, _TYPE$actionIntegerOp);
module.exports = exports['default'];

@@ -15,2 +15,3 @@ 'use strict';

missingAwaitError: 'missingAwaitError',
actionIntegerOptionError: 'actionIntegerOptionError',
actionPositiveIntegerOptionError: 'actionPositiveIntegerOptionError',

@@ -17,0 +18,0 @@ actionBooleanOptionError: 'actionBooleanOptionError',

'use strict';
exports.__esModule = true;
exports.ResizeToFitDeviceOptions = exports.TypeOptions = exports.MoveOptions = exports.ClickOptions = exports.MouseOptions = exports.OffsetOptions = exports.booleanOption = exports.positiveIntegerOption = undefined;
exports.ResizeToFitDeviceOptions = exports.TypeOptions = exports.MoveOptions = exports.ClickOptions = exports.MouseOptions = exports.OffsetOptions = exports.booleanOption = exports.positiveIntegerOption = exports.integerOption = undefined;

@@ -28,3 +28,3 @@ var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');

var positiveIntegerOption = exports.positiveIntegerOption = (0, _factories.createPositiveIntegerValidator)(_testRun.ActionPositiveIntegerOptionError); // -------------------------------------------------------------
var integerOption = exports.integerOption = (0, _factories.createIntegerValidator)(_testRun.ActionIntegerOptionError); // -------------------------------------------------------------
// WARNING: this file is used by both the client and the server.

@@ -34,2 +34,3 @@ // Do not use any browser or node-specific API!

var positiveIntegerOption = exports.positiveIntegerOption = (0, _factories.createPositiveIntegerValidator)(_testRun.ActionPositiveIntegerOptionError);
var booleanOption = exports.booleanOption = (0, _factories.createBooleanValidator)(_testRun.ActionBooleanOptionError);

@@ -55,3 +56,3 @@

OffsetOptions.prototype._getAssignableProperties = function _getAssignableProperties() {
return [{ name: 'offsetX', type: positiveIntegerOption }, { name: 'offsetY', type: positiveIntegerOption }];
return [{ name: 'offsetX', type: integerOption }, { name: 'offsetY', type: integerOption }];
};

@@ -58,0 +59,0 @@

@@ -112,2 +112,4 @@ 'use strict';

_this.authCredentials = test.fixture.authCredentials;
_this.pendingRequest = null;

@@ -171,3 +173,3 @@ _this.pendingPageError = null;

TestRun.prototype.getAuthCredentials = function getAuthCredentials() {
// TODO
return this.authCredentials;
};

@@ -174,0 +176,0 @@

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "0.12.0-alpha",
"version": "0.12.0-alpha1",
"author": {

@@ -59,6 +59,7 @@ "name": "Developer Express Inc.",

"babel-runtime": "^6.18.0",
"bin-v8-flags-filter": "^1.0.0",
"callsite": "^1.0.0",
"callsite-record": "^3.2.1",
"chai": "^3.0.0",
"chalk": "^1.1.0",
"chai": "^3.0.0",
"commander": "^2.8.1",

@@ -95,4 +96,4 @@ "debug": "^2.2.0",

"strip-bom": "^2.0.0",
"testcafe-browser-tools": "1.1.6",
"testcafe-hammerhead": "10.1.7",
"testcafe-browser-tools": "1.1.7",
"testcafe-hammerhead": "10.2.0",
"testcafe-legacy-api": "^2.0.0",

@@ -110,2 +111,3 @@ "testcafe-reporter-json": "^2.0.0",

"babel-plugin-add-module-exports": "^0.2.0",
"basic-auth": "^1.1.0",
"broken-link-checker": "^0.7.0",

@@ -122,2 +124,3 @@ "caller": "^1.0.1",

"express": "^4.13.3",
"express-ntlm": "^2.1.5",
"gulp": "^3.9.0",

@@ -124,0 +127,0 @@ "gulp-babel": "^6.1.1",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc