/**
 * QUnit Composite v1.0.2-pre commit 2e5299c63179a6f8b7fa9a3a34a31848708486e9
 *
 * https://github.com/JamesMGreene/qunit-composite
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license/
 */
(function(Q){var a,h,m=1,b=false;function c(e,n){return(" "+e.className+" ").indexOf(" "+n+" ")>-1;}function d(e,n){if(!c(e,n)){e.className+=(e.className?" ":"")+n;}}function f(e,t,i){if(e){if(e.addEventListener){e.addEventListener(t,i,false);}else if(e.attachEvent){e.attachEvent("on"+t,i);}}}function g(u,p){p=p.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var e="[\\?&]"+p+"=([^&#]*)";var i=new RegExp(e);var k=i.exec(u);if(k==null){return"";}else{return k[1];}}function r(s){var p;if(Q.is("object",s)){p=s.path;s=s.name;}else{p=s;}Q.asyncTest(s,function(){a.setAttribute("src",p);var F=g(p,'sap-ui-width'),i=g(p,'sap-ui-height');if(F){a.style.width=F;}if(i){a.style.height=i;}});}function j(){var i,e=document.body;function o(){var k,t,l=0;if(!a.src){return;}i.QUnit.moduleStart(function(n){k=n.name;});i.QUnit.testStart(function(n){t=n.name;});i.QUnit.testDone(function(){t=undefined;});i.QUnit.log(function(n){if(t===undefined){return;}var p=(k?k+": ":"")+t+": "+(n.message||(n.result?"okay":"failed"));Q.expect(++l);Q.push(n.result,n.actual,n.expected,p);});i.QUnit.done(Q.start);}a=document.createElement("iframe");a.className="qunit-composite-suite";e.appendChild(a);f(a,"load",o);i=a.contentWindow;}Q.testSuites=function(n,s){var i,e=0;if(arguments.length===1){s=n;n="Composition #"+m++;}if(s){e=s.length;}if(!h){h=true;Q.begin(j);Q.moduleDone(function(){b=false;});Q.done(function(){a.style.display="none";});}Q.module(n,{setup:function(){b=true;}});for(i=0;i<e;i++){r(s[i]);}};Q.testDone(function(k){if(!b){return;}var i,l,t=Q.config.current.testNumber!=null?"qunit-test-output"+Q.config.current.testNumber:Q.config.current.id,n=k.testNumber!=null?"qunit-test-output"+k.testNumber:t,o=document.getElementById(n),p=o!=null?o.children:null,s=a.src;f(o,"dblclick",function(e){var q=e&&e.target?e.target:window.event.srcElement;if(q.nodeName.toLowerCase()==="span"||q.nodeName.toLowerCase()==="b"){q=q.parentNode;}if(window.location&&q.nodeName.toLowerCase()==="strong"){window.location=s;}});if(p){for(i=0,l=p.length;i<l;i++){if(p[i].nodeName.toLowerCase()==="ol"){d(p[i],"qunit-collapsed");}}}if(o){o.getElementsByTagName("a")[0].href=s;}});})(QUnit);
