Lines Matching refs:test

44 …,M)):d.ba(Q));return d};e.N=E;e.ma=x;e.ha={ua:function(d){return/\.html$/.test(g(d).U())?"text/htm…
45 …unction x(h,d,f){if(!f)return s;var g=(""+h).match(b);return g&&(!g[1]||a.test(g[1]))?f(h,d):s}fun…
47 …G}D=G}else D=a;if(!(w=D,w[E(j)]===a))if(35===I&&/^#(?:[0-9a-f]{3}){1,2}$/.test(j))j=i&2?j:"";else …
48test(A);if(!j){j=D[G].toLowerCase();I=E(j);D=D.splice(G,K-G,"");G=u.cssFns;K=0;for(A=G.length;K<A;…
50test(o)&&(e=x(o.toLowerCase(),[])))"tagName"in e&&(o=e.tagName),++b,y=o;for(l=i=e="";m&&b<f;++b)if…
51 …=C;/^[~^$*|]?=$/.test(a[b])&&(H=a[b++],p=a[b++],/^[0-9A-Za-z:_\-]+$/.test(p)?p='"'+p+'"':"]"===p&&…
52 …^\w-]/g,"\\$&")+H+p+(ca?" i]":"]"))}else if(b<f&&":"===a[b])if(o=a[++b],k.test(o))l+=":"+o;else br…
54 …e&&(b[g++]=e)}b.length=g;b=b.join(" ");return b=!b.length?"":!d.test(b)?"not all":a.test(b)?b:"not…
55 …s"===g||"@-webkit-keyframes"===g){var i=j[0];1===j.length&&!/__$|[^\w\-]/.test(i)?(q.push(g," ",i+…
61 …;)++a;return a<g&&";"===b[a]?a+1:a}function e(b,a,g,f){var h=b[a++];if(!v.test(h))return E(b,a,g);…
83 …eInt(b[1],10)):(b=a.match(B))?String.fromCharCode(parseInt(b[1],16)):r&&F.test(a)?(r.innerHTML="&"…
85 z,j,i=d.length;p<i;){var o=d[p++],l=d[p];switch(o){case "&":I.test(l)?(a.e&&a.e("&"+l,t,A,b(a,d,p,e…
86 …,d,p,e,t));break;case "<\!--":if(!e.C){for(z=p+1;z<i&&!(">"===d[z]&&/--$/.test(d[z-1]));z++);if(z<…
87 t,A,b(a,d,p,e,t));break;case "<!":if(/^\w/.test(l)){if(!e.r){for(z=p+1;z<i&&">"!==d[z];z++);z<i?p=z…
88 …$)","i"));for(var i=T[d.name],k=d.next,l=d.next+1;l<z&&!("</"===a[l-1]&&i.test(a[l]));l++);l<z&&(l…
92 …ion d(a,b,d,f,e){if(!e)return s;try{var g=Y.parse(""+a);if(g&&(!g.K()||ka.test(g.W()))){var h=e(g,…
153 …ay.from(d);if("Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return _arrayLik…
221 …SE_URL=window.DRAWIO_BASE_URL||(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net…
230 "1"==urlParams.extAuth&&/((iPhone|iPod|iPad).*AppleWebKit(?!.*Version)|; wv)/i.test(navigator.userA…
240 ….")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:/Apple Computer, Inc/.test(navigator.vendor),
241 …|ad)/.test(navigator.platform),IS_WEBVIEW:/((iPhone|iPod|iPad).*AppleWebKit(?!.*Version)|; wv)/i.t…
243 …Win"),IS_MAC:0<navigator.appVersion.indexOf("Mac"),IS_CHROMEOS:/\bCrOS\b/.test(navigator.appVersio…
273 …ll!=a&&(null!=a.name?b=a.name:(b=mxUtils.trim(a.toString()),/^function\s/.test(b)&&(b=mxUtils.ltri…
2016 …ipt");for(c=0;c<b.length;c+=1)if(b[c].src&&/(^|\/)jscolor\.js([?#].*)?$/i.test(b[c].src))return a=…
2041 function(){u?this.adjust?!this.required&&/^\s*$/.test(u.value)?(u.value="",x.style.backgroundImage=…
2611 …bstring(0,13)};Graph.isLink=function(a){return null!=a&&Graph.linkPattern.test(a)};Graph.linkPatte…
2636 Graph.prototype.isRelativeUrl=function(a){return null!=a&&!this.absoluteUrlPattern.test(a)&&"data:"…
2658 /\d/.test(a)||(b=a,a=void 0);a=a?new Date(a):new Date;if(isNaN(a))throw SyntaxError("invalid date")…
2994 p=!1,q=null,u=function(a,c,g){if(!p){var m="null"==e?null:e;p=!0;a=/(^#?[a-zA-Z0-9]*$)/.test(a)?a:m…
3123 …ype.addSvgRule=function(a,b,d,e,c,f,k){var h=this.editorUi.editor.graph;k.test(b.selectorText)&&(k…
3677 …=a},ColorDialog=function(a,b,d,e){function c(){var b=k.value;/(^#?[a-zA-Z0-9]*$)/.test(b)?("none"!=
9981 …c),k={},p=this.ui.getHashValueForPages(this.shadowPages,k);"1"==urlParams.test&&EditorUi.debug("Fi…
10033 …this.sync&&this.isOptimisticSync()&&this.sync.fileSaving();"1"==urlParams.test&&EditorUi.debug("Dr…
10034 …Utils.parseXml(this.getData()).documentElement),this.desc),"1"==urlParams.test&&EditorUi.debug("Dr…
10036 …ved",null,this.getMode()+"."+this.getId(),n,f)}}catch(l){}}"1"==urlParams.test&&EditorUi.debug("Dr…
10045 …=b;g||this.updateFileData();var k=this.ui.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());th…
10084 … made using @drawio";c=document.createElement("div");var m=/^https?:\/\//.test(e)||/^mailto:\/\//.…
10119 …i-list")){var f=c.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(f)&&
10147 …f,d,e,l,m,g,p,k,q,t){function n(c,f){if(null==B){var d=c,d=/^https?:\/\//.test(d)&&!b.editor.isCor…
10205 …aTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)($|\?)/i.test(f)&&p(decodeURIComp…
10226 …\.)+[a-zA-Z]{2,}))$/;mxEvent.addListener(n,"change",function(){0<n.value.length&&0<l.test(n.value)?
10227 …disabled")});mxEvent.addListener(n,"keyup",function(){0<n.value.length&&l.test(n.value)?f.removeAt…
10264 …ull==b&&(d&&0<=l.indexOf(f)||!d&&l.substring(0,f.length)===f)||null!=b&&b.test(l))return!0}}return…
10267 0<=label.indexOf(g)||!N&&label.substring(0,g.length)===g||z&&n(K,J.cell,g,N))||null!=K&&(K.test(lab…
10335 …text/uri-list"));(/(\.jpg)($|\?)/i.test(d)||/(\.png)($|\?)/i.test(d)||/(\.gif)($|\?)/i.test(d)||/(…
10339 …on(d,e,l,m,g,k,p,q,t){null!=t&&(/(\.v(dx|sdx?))($|\?)/i.test(t.name)||/(\.vs(x|sx?))($|\?)/i.test(…
10343 …ces.get("export"),function(){var c=b.createLibraryDataFromImages(p),f=t.value;/(\.xml)$/i.test(f)||
10355 …+".svg";return!0}function B(c,f,d,e){function m(c,f){if(null==p){var d=c,d=/^https?:\/\//.test(d)&&
10405 e=!1):"w"!=l||p.test(e)?e=!0:(m.querySelector(".dlg_fontUrl").style.border="1px solid red",e=!1);e&…
10416 …&&null!=k.getTitle()?k.getTitle():b.defaultFilename;d=null;if(/(\.png)$/i.test(e)){var n=1,f=0;e=b…
10443 …or&&("1"==urlParams.offline||/.*\.diagrams\.net$/.test(window.location.hostname)||/.*\.draw\.io$/.
10454test&&1==b.vertices.length&&0==b.edges.length&&f.isTableCell(b.vertices[0])}},{name:"rowspan",disp…
10518test(b)&&c.push("");return c};Editor.prototype.isCorsEnabledForUrl=function(b){if(mxClient.IS_CHRO…
10520 …nction(){f=!1;c(Editor.svgBrokenImage.src)}),this.timeout);if(/(\.svg)$/i.test(b))mxUtils.get(b,mx…
10524 …ry{var p=!m&&(d||/(\.png)($|\?)/i.test(b)||/(\.jpe?g)($|\?)/i.test(b)||/(\.gif)($|\?)/i.test(b)||/…
10529test(b))c="image/svg+xml";else if("otf"==g||"embedded-opentype"==g||/(\.otf)($|\?)/i.test(b))c="ap…
10688 …alth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net…
10694 …{}};EditorUi.debug=function(){try{if(null!=window.console&&"1"==urlParams.test){for(var b=[(new Da…
10716 …/(\.html)$/i.test(d.getTitle())))z=this.getHtml2(mxUtils.getXml(m),c,null!=d?d.getTitle():null,f,l…
10720 …se()!=e?f.push(String.fromCharCode(97+Math.round(25*Math.random()))):/\s/.test(e)?f.push(" "):f.pu…
10726 …:!0;k=null!=k?k:!1;var f=this.editor.graph;if(c||!b&&null!=x&&/(\.svg)$/i.test(x.getTitle())){var …
10737 …(/(\.xml)$/i.test(c)||/(\.html)$/i.test(c)||/(\.svg)$/i.test(c)||/(\.png)$/i.test(c))c=c.substring…
10776 …d(l),l=null)});null!=y&&null!=q&&(/(\.v(dx|sdx?))($|\?)/i.test(q)||/(\.vs(x|sx?))($|\?)/i.test(q))…
10804 …,c,d,e,g,k){"text/xml"!=d||/(\.drawio)$/i.test(c)||/(\.xml)$/i.test(c)||/(\.svg)$/i.test(c)||/(\.h…
10811 …raw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net…
10837 …htboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hos…
10886 …sRemoteVisioFormat=function(b){return/(\.v(sd|dx))($|\?)/i.test(b)||/(\.vs(s|x))($|\?)/i.test(b)};…
10888 p.open("POST",VSD_CONVERT_URL+(/(\.vss|\.vsx)$/.test(e)?"?stencil=1":""));p.responseType="blob";thi…
10900 b.substring(0,5)||!this.isOffline()&&(g||/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(b))){var f=this.edi…
11554 …ow.TrelloClient=null)}null!=b&&b(c);"0"!=urlParams.chrome&&"1"==urlParams.test&&(EditorUi.debug("A…
11559 …)};if(window.top==window.self&&(/ac\.draw\.io$/.test(window.location.hostname)||/ac-ent\.draw\.io$…
11560 /aj\.draw\.io$/.test(window.location.hostname)))document.body.innerHTML='<div style="margin-top:10%…
11562 …try{Editor.enableServiceWorker&&("0"==urlParams.offline||/www\.draw\.io$/.test(window.location.hos…
11637 …ElectronApp||this.isOfflineApp()||null!=urlParams.open||!/www\.draw\.io$/.test(window.location.hos…
11679 …his,g,mxUtils.bind(this,function(b,e,f){null!=b&&0<b.length&&(/(\.pdf)$/i.test(b)?this.confirm(mxR…
11682 this.getFileData(/(\.xml)$/i.test(b)||0>b.indexOf(".")||/(\.drawio)$/i.test(b),/(\.svg)$/i.test(b),…
11683 …IE11?Base64.decode(c):atob(c):c,n=/(\.v(dx|sdx?))($|\?)/i.test(f)||/(\.vs(x|sx?))($|\?)/i.test(f);…
11685test(f)||this.isPngData(l))l=this.extractGraphModelFromPng(c);e(l)}}catch(q){d(q)}}),d,/(\.png)($|…
11691 …ocation.protocol+"//"+window.location.hostname+k,l=n,m=null;null!=n&&/\.svg$/i.test(b.getTitle())&&
11739test(l)||(l=l.substring(0,e.lastIndexOf("."))+c);var m=!1;null!=this.gitHub&&b.substring(0,this.gi…
11740 …rror=k;p.send()}else{var t=mxUtils.bind(this,function(c){try{if(/\.pdf$/i.test(e)){var d=Editor.ex…
11741 d,l,!0))}else/\.png$/i.test(e)?(d=this.extractGraphModelFromPng(c),null!=d?g(new LocalFile(this,d,l…
11742test(e)||/\.jpe?g$/i.test(e)||/\.pdf$/i.test(e)||null!=d&&"image/"==d.substring(0,6);m?mxUtils.get…
11844 …rt support - forkme downloadDesktop - about".split(" "),d)}"1"==urlParams.test&&(b.addSeparator(d)…
11845 …(Graph.diagramLanguage=0<b.length?b:null,g.refresh())});if("1"==urlParams.test){mxResources.parse(…
11871 …image/"==b.getData().substring(0,11)?p(b.getTitle()):"text/xml";/\.svg$/i.test(b.getTitle())&&!c.e…
11873 …r c="text/xml";/\.png$/i.test(b)?c="image/png":/\.jpe?g$/i.test(b)?c="image/jpg":/\.gif$/i.test(b)…
11877 …er.spin(document.body,mxResources.get("loading"))){var d=/(\.png)($|\?)/i.test(b)?"image/png":"tex…
11887 …|e.getMode()!=App.MODE_GOOGLE&&e.getMode()!=App.MODE_GITHUB||!/(\.png)$/i.test(e.getTitle())||this…
11921 …=null!=e.getTitle()?e.getTitle():c.defaultFilename,/(\.html)$/i.test(e)||/(\.svg)$/i.test(e)||this…
11993 …htboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hos…
12099 …=null!=e.getTitle()?e.getTitle():c.defaultFilename,/(\.html)$/i.test(e)||/(\.svg)$/i.test(e)||this…