You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

7 lines
4.5 KiB

'use strict';
/**
* @license Angular
* (c) 2010-2025 Google LLC. https://angular.dev/
* License: MIT
*/
var O=Object.defineProperty,I=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var C=(a,o,c)=>o in a?O(a,o,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[o]=c,w=(a,o)=>{for(var c in o||(o={}))R.call(o,c)&&C(a,c,o[c]);if(b)for(var c of b(o))v.call(o,c)&&C(a,c,o[c]);return a},E=(a,o)=>I(a,D(o));function d(a){a.__load_patch("jasmine",(o,c,M)=>{var P;let Z=function(n,e){for(let i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)};if(!c)throw new Error("Missing: zone.js");if(typeof jest!="undefined"||typeof jasmine=="undefined"||jasmine.__zone_patch__)return;jasmine.__zone_patch__=!0;let _=c.SyncTestZoneSpec,g=c.ProxyZoneSpec;if(!_)throw new Error("Missing: SyncTestZoneSpec");if(!g)throw new Error("Missing: ProxyZoneSpec");let h=c.current,r=c.__symbol__,x=o[r("fakeAsyncDisablePatchingClock")]===!0,T=!x&&(o[r("fakeAsyncPatchLock")]===!0||o[r("fakeAsyncAutoFakeAsyncWhenClockPatched")]===!0),p=jasmine.getEnv();if(["describe","xdescribe","fdescribe"].forEach(n=>{let e=p[n];p[n]=function(t,i){return e.call(this,t,F(t,i))}}),["it","xit","fit"].forEach(n=>{let e=p[n];p[r(n)]=e,p[n]=function(t,i,s){return arguments[1]=j(i),e.apply(this,arguments)}}),["beforeEach","afterEach","beforeAll","afterAll"].forEach(n=>{let e=p[n];p[r(n)]=e,p[n]=function(t,i){return arguments[0]=j(t),e.apply(this,arguments)}}),!x){let n=jasmine[r("clock")]=jasmine.clock;jasmine.clock=function(){let e=n.apply(this,arguments);if(!e[r("patched")]){e[r("patched")]=r("patched");let t=e[r("tick")]=e.tick;e.tick=function(){let s=c.current.get("FakeAsyncTestZoneSpec");return s?s.tick.apply(s,arguments):t.apply(this,arguments)};let i=e[r("mockDate")]=e.mockDate;e.mockDate=function(){let s=c.current.get("FakeAsyncTestZoneSpec");if(s){let l=arguments.length>0?arguments[0]:new Date;return s.setFakeBaseSystemTime.apply(s,l&&typeof l.getTime=="function"?[l.getTime()]:arguments)}return i.apply(this,arguments)},T&&["install","uninstall"].forEach(s=>{let l=e[r(s)]=e[s];e[s]=function(){if(c.FakeAsyncTestZoneSpec){jasmine[r("clockInstalled")]=s==="install";return}return l.apply(this,arguments)}})}return e}}if(!jasmine[c.__symbol__("createSpyObj")]){let n=jasmine.createSpyObj;jasmine[c.__symbol__("createSpyObj")]=n,jasmine.createSpyObj=function(){let e=Array.prototype.slice.call(arguments),t=e.length>=3?e[2]:null,i;if(t){let s=Object.defineProperty;Object.defineProperty=function(l,u,y){return s.call(this,l,u,E(w({},y),{configurable:!0,enumerable:!0}))};try{i=n.apply(this,e)}finally{Object.defineProperty=s}}else i=n.apply(this,e);return i}}function F(n,e){return function(){return h.fork(new _(`jasmine.describe#${n}`)).run(e,this,arguments)}}function S(n,e,t,i){let s=!!jasmine[r("clockInstalled")],l=t.testProxyZoneSpec,u=t.testProxyZone,y;if(s&&T){let m=c[c.__symbol__("fakeAsyncTest")];m&&typeof m.fakeAsync=="function"&&(n=m.fakeAsync(n))}return i?u.run(n,e,[i]):u.run(n,e)}function j(n){return n&&(n.length?function(e){return S(n,this,this.queueRunner,e)}:function(){return S(n,this,this.queueRunner)})}let f=jasmine,k=(P=f==null?void 0:f.private)!=null&&P.QueueRunner?f==null?void 0:f.private:f,A=k.QueueRunner;k.QueueRunner=function(n){Z(e,n);function e(t){t.onComplete&&(t.onComplete=(u=>()=>{this.testProxyZone=null,this.testProxyZoneSpec=null,h.scheduleMicroTask("jasmine.onComplete",u)})(t.onComplete));let i=o[c.__symbol__("setTimeout")],s=o[c.__symbol__("clearTimeout")];i&&(t.timeout={setTimeout:i||o.setTimeout,clearTimeout:s||o.clearTimeout}),k.UserContext?(t.userContext||(t.userContext=new k.UserContext),t.userContext.queueRunner=this):(t.userContext||(t.userContext={}),t.userContext.queueRunner=this);let l=t.onException;t.onException=function(u){if(u&&u.message==="Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL."){let y=this&&this.testProxyZoneSpec;if(y){let m=y.getAndClearPendingTasksInfo();try{u.message+=m}catch(J){}}}l&&l.call(this,u)},n.call(this,t)}return e.prototype.execute=function(){let t=c.current,i=!1;for(;t;){if(t===h){i=!0;break}t=t.parent}if(!i)throw new Error("Unexpected Zone: "+c.current.name);this.testProxyZoneSpec=new g,this.testProxyZone=h.fork(this.testProxyZoneSpec),c.currentTask?n.prototype.execute.call(this):c.current.scheduleMicroTask("jasmine.execute().forceTask",()=>A.prototype.execute.call(this))},e}(A)})}d(Zone);