From 47f9212a73a22b50dc984f4037e8ae66d66fddc8 Mon Sep 17 00:00:00 2001 From: Sean Ryan <902seanryan@gmail.com> Date: Fri, 24 Jul 2020 15:38:45 -0300 Subject: [PATCH] updated e2e tests to match new plugins --- dist/SpringRoll-Container-umd.js | 2 +- dist/SpringRoll-Container-umd.js.map | 2 +- dist/index.js | 2 +- dist/index.js.map | 2 +- e2e/e2e.spec.js | 319 ++++++++++++++------------- src/plugins/KeyboardMapPlugin.js | 2 +- src/plugins/SoundPlugin.js | 16 +- 7 files changed, 181 insertions(+), 164 deletions(-) diff --git a/dist/SpringRoll-Container-umd.js b/dist/SpringRoll-Container-umd.js index 364b5e7..2204e0f 100644 --- a/dist/SpringRoll-Container-umd.js +++ b/dist/SpringRoll-Container-umd.js @@ -1,2 +1,2 @@ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("core-js/modules/es6.object.assign"),require("core-js/modules/es6.array.find"),require("core-js/modules/es6.promise"),require("core-js/modules/web.dom.iterable"),require("core-js/modules/es6.array.iterator"),require("core-js/modules/es6.object.to-string"),require("core-js/modules/es6.string.iterator"),require("core-js/modules/es7.symbol.async-iterator"),require("core-js/modules/es6.symbol"),require("core-js/modules/es7.array.includes"),require("core-js/modules/es6.regexp.split"),require("core-js/modules/es6.string.includes"),require("core-js/modules/es7.object.values"),require("core-js/modules/es6.object.keys"),require("core-js/modules/es6.set"),require("core-js/modules/es6.number.constructor"),require("core-js/modules/es6.regexp.to-string")):"function"==typeof define&&define.amd?define(["exports","core-js/modules/es6.object.assign","core-js/modules/es6.array.find","core-js/modules/es6.promise","core-js/modules/web.dom.iterable","core-js/modules/es6.array.iterator","core-js/modules/es6.object.to-string","core-js/modules/es6.string.iterator","core-js/modules/es7.symbol.async-iterator","core-js/modules/es6.symbol","core-js/modules/es7.array.includes","core-js/modules/es6.regexp.split","core-js/modules/es6.string.includes","core-js/modules/es7.object.values","core-js/modules/es6.object.keys","core-js/modules/es6.set","core-js/modules/es6.number.constructor","core-js/modules/es6.regexp.to-string"],e):e((t=t||self).springroll=t.springroll||{})}(this,function(t){"use strict";var e={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};if(e.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&n.indexOf(Object.prototype.toString.call(t))>-1};function o(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function i(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e.iterable&&(n[Symbol.iterator]=function(){return n}),n}function a(t){this.map={},t instanceof a?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function u(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function l(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function c(t){var e=new FileReader,n=l(e);return e.readAsArrayBuffer(t),n}function h(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var n;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&((n=t)&&DataView.prototype.isPrototypeOf(n))?(this._bodyArrayBuffer=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=h(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=u(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(c)}),this.text=function(){var t,e,n,r=u(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=l(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function y(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}}),e}function v(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new a(e.headers),this.url=e.url||"",this._initBody(t)}p.prototype.clone=function(){return new p(this,{body:this._bodyInit})},d.call(p.prototype),d.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new a(this.headers),url:this.url})},v.error=function(){var t=new v(null,{status:0,statusText:""});return t.type="error",t};var g=[301,302,303,307,308];v.redirect=function(t,e){if(-1===g.indexOf(e))throw new RangeError("Invalid status code");return new v(null,{status:e,headers:{location:t}})};var m=self.DOMException;try{new m}catch(t){(m=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),m.prototype.constructor=m}function b(t,n){return new Promise(function(r,o){var i=new p(t,n);if(i.signal&&i.signal.aborted)return o(new m("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var t,e,n={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new a,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}}),e)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new v(o,n))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new m("Aborted","AbortError"))},s.open(i.method,i.url,!0),"include"===i.credentials?s.withCredentials=!0:"omit"===i.credentials&&(s.withCredentials=!1),"responseType"in s&&e.blob&&(s.responseType="blob"),i.headers.forEach(function(t,e){s.setRequestHeader(e,t)}),i.signal&&(i.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&i.signal.removeEventListener("abort",u)}),s.send(void 0===i._bodyInit?null:i._bodyInit)})}b.polyfill=!0,self.fetch||(self.fetch=b,self.Headers=a,self.Request=p,self.Response=v);var S={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},w=function(t,e,n){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},k=function(t){try{return!!t()}catch(t){return!0}},L={}.toString,P=function(t){return L.call(t).slice(8,-1)},E="".split,_=k(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==P(t)?E.call(t,""):Object(t)}:Object,B=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},x=function(t){return Object(B(t))},C=Math.ceil,V=Math.floor,A=function(t){return isNaN(t=+t)?0:(t>0?V:C)(t)},M=Math.min,O=function(t){return t>0?M(A(t),9007199254740991):0},j=function(t){return"object"==typeof t?null!==t:"function"==typeof t},T=Array.isArray||function(t){return"Array"==P(t)};function R(t,e){return t(e={exports:{}},e.exports),e.exports}var K,G,N,F,D,U,I,H,z,q="object"==typeof window&&window&&window.Math==Math?window:"object"==typeof self&&self&&self.Math==Math?self:Function("return this")(),W=!k(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),J=q.document,X=j(J)&&j(J.createElement),Y=function(t){return X?J.createElement(t):{}},$=!W&&!k(function(){return 7!=Object.defineProperty(Y("div"),"a",{get:function(){return 7}}).a}),Q=function(t){if(!j(t))throw TypeError(String(t)+" is not an object");return t},Z=function(t,e){if(!j(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!j(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!j(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!j(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},tt=Object.defineProperty,et={f:W?tt:function(t,e,n){if(Q(t),e=Z(e,!0),Q(n),$)try{return tt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},nt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},rt=W?function(t,e,n){return et.f(t,e,nt(1,n))}:function(t,e,n){return t[e]=n,t},ot=function(t,e){try{rt(q,t,e)}catch(n){q[t]=e}return e},it=R(function(t){var e=q["__core-js_shared__"]||ot("__core-js_shared__",{});(t.exports=function(t,n){return e[t]||(e[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.0.1",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),st=0,at=Math.random(),ut=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++st+at).toString(36))},lt=!k(function(){return!String(Symbol())}),ct=it("wks"),ht=q.Symbol,dt=function(t){return ct[t]||(ct[t]=lt&&ht[t]||(lt?ht:ut)("Symbol."+t))},ft=dt("species"),pt=[].forEach,yt=(N=1==(K=0),F=2==K,D=3==K,U=4==K,I=6==K,H=5==K||I,z=G||function(t,e){var n;return T(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!T(n.prototype)?j(n)&&null===(n=n[ft])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},function(t,e,n){for(var r,o,i=x(t),s=_(i),a=w(e,n,3),u=O(s.length),l=0,c=N?z(t,u):F?z(t,0):void 0;u>l;l++)if((H||l in s)&&(o=a(r=s[l],l,i),K))if(N)c[l]=o;else if(o)switch(K){case 3:return!0;case 5:return r;case 6:return l;case 2:c.push(r)}else if(U)return!1;return I?-1:D||U?U:c}),vt=function(t,e){var n=[][t];return!n||!k(function(){n.call(null,e||function(){throw 1},1)})}("forEach")?function(t){return yt(this,t,arguments[1])}:pt;for(var gt in S){var mt=q[gt],bt=mt&&mt.prototype;if(bt&&bt.forEach!==vt)try{rt(bt,"forEach",vt)}catch(t){bt.forEach=vt}}var St,wt=function(t){return _(B(t))},kt={}.hasOwnProperty,Lt=function(t,e){return kt.call(t,e)},Pt=Math.max,Et=Math.min,_t={},Bt=(St=!1,function(t,e,n){var r,o=wt(t),i=O(o.length),s=function(t,e){var n=A(t);return n<0?Pt(n+e,0):Et(n,e)}(n,i);if(St&&e!=e){for(;i>s;)if((r=o[s++])!=r)return!0}else for(;i>s;s++)if((St||s in o)&&o[s]===e)return St||s||0;return!St&&-1}),xt=function(t,e){var n,r=wt(t),o=0,i=[];for(n in r)!Lt(_t,n)&&Lt(r,n)&&i.push(n);for(;e.length>o;)Lt(r,n=e[o++])&&(~Bt(i,n)||i.push(n));return i},Ct=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Vt=Object.keys||function(t){return xt(t,Ct)},At=W?Object.defineProperties:function(t,e){Q(t);for(var n,r=Vt(e),o=r.length,i=0;o>i;)et.f(t,n=r[i++],e[n]);return t},Mt=q.document,Ot=Mt&&Mt.documentElement,jt=it("keys"),Tt=function(t){return jt[t]||(jt[t]=ut(t))},Rt=Tt("IE_PROTO"),Kt=function(){},Gt=function(){var t,e=Y("iframe"),n=Ct.length;for(e.style.display="none",Ot.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("