aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing
diff options
context:
space:
mode:
authorDanijel Andjelkovic <adanijel99@gmail.com>2022-03-01 21:54:41 +0100
committerDanijel Andjelkovic <adanijel99@gmail.com>2022-03-01 21:54:41 +0100
commit6c8128f9fd5a5d0be115806c35a21b3d683df8d6 (patch)
treef46c2f6b3b9b294ff32bd75c08ccdc9e7a8cc4ef /sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing
parent2400b84e95913665da6279114168148444b8f9ab (diff)
parent7d3640f824f46490b47bd95f1c5a16644f712068 (diff)
Merge branch 'dev' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into logo
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/ColdObservable.js30
-rw-r--r--sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/ColdObservable.js.map1
-rw-r--r--sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/HotObservable.js34
-rw-r--r--sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/HotObservable.js.map1
-rw-r--r--sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/SubscriptionLog.js7
-rw-r--r--sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/SubscriptionLog.js.map1
-rw-r--r--sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/SubscriptionLoggable.js16
-rw-r--r--sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/SubscriptionLoggable.js.map1
-rw-r--r--sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/TestMessage.js1
-rw-r--r--sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/TestMessage.js.map1
-rw-r--r--sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/TestScheduler.js322
-rw-r--r--sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/TestScheduler.js.map1
12 files changed, 416 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/ColdObservable.js b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/ColdObservable.js
new file mode 100644
index 00000000..4bb51733
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/ColdObservable.js
@@ -0,0 +1,30 @@
+import { Observable } from '../Observable';
+import { Subscription } from '../Subscription';
+import { SubscriptionLoggable } from './SubscriptionLoggable';
+import { applyMixins } from '../util/applyMixins';
+export class ColdObservable extends Observable {
+ constructor(messages, scheduler) {
+ super(function (subscriber) {
+ const observable = this;
+ const index = observable.logSubscribedFrame();
+ const subscription = new Subscription();
+ subscription.add(new Subscription(() => {
+ observable.logUnsubscribedFrame(index);
+ }));
+ observable.scheduleMessages(subscriber);
+ return subscription;
+ });
+ this.messages = messages;
+ this.subscriptions = [];
+ this.scheduler = scheduler;
+ }
+ scheduleMessages(subscriber) {
+ const messagesLength = this.messages.length;
+ for (let i = 0; i < messagesLength; i++) {
+ const message = this.messages[i];
+ subscriber.add(this.scheduler.schedule(({ message, subscriber }) => { message.notification.observe(subscriber); }, message.frame, { message, subscriber }));
+ }
+ }
+}
+applyMixins(ColdObservable, [SubscriptionLoggable]);
+//# sourceMappingURL=ColdObservable.js.map \ No newline at end of file
diff --git a/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/ColdObservable.js.map b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/ColdObservable.js.map
new file mode 100644
index 00000000..a6f9c6d8
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/ColdObservable.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"ColdObservable.js","sources":["../../../src/internal/testing/ColdOb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OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAChG,OAAO,CAAC,KAAK,EACb,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAC3B,CAAC;SACH;IACH,CAAC;CACF;AACD,WAAW,CAAC,cAAc,EAAE,CAAC,oBAAoB,CAAC,CAAC,CAAC"}
diff --git a/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/HotObservable.js b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/HotObservable.js
new file mode 100644
index 00000000..e2ac7630
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/HotObservable.js
@@ -0,0 +1,34 @@
+import { Subject } from '../Subject';
+import { Subscription } from '../Subscription';
+import { SubscriptionLoggable } from './SubscriptionLoggable';
+import { applyMixins } from '../util/applyMixins';
+export class HotObservable extends Subject {
+ constructor(messages, scheduler) {
+ super();
+ this.messages = messages;
+ this.subscriptions = [];
+ this.scheduler = scheduler;
+ }
+ _subscribe(subscriber) {
+ const subject = this;
+ const index = subject.logSubscribedFrame();
+ const subscription = new Subscription();
+ subscription.add(new Subscription(() => {
+ subject.logUnsubscribedFrame(index);
+ }));
+ subscription.add(super._subscribe(subscriber));
+ return subscription;
+ }
+ setup() {
+ const subject = this;
+ const messagesLength = subject.messages.length;
+ for (var i = 0; i < messagesLength; i++) {
+ (() => {
+ var message = subject.messages[i];
+ subject.scheduler.schedule(() => { message.notification.observe(subject); }, message.frame);
+ })();
+ }
+ }
+}
+applyMixins(HotObservable, [SubscriptionLoggable]);
+//# sourceMappingURL=HotObservable.js.map \ No newline at end of file
diff --git a/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/HotObservable.js.map b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/HotObservable.js.map
new file mode 100644
index 00000000..ac44f2af
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/HotObservable.js.map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AO,CAAC,SAAS,CAAC,QAAQ,CACxB,GAAG,EAAE,GAAG,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAChD,OAAO,CAAC,KAAK,CACd,CAAC;YACJ,CAAC,CAAC,EAAE,CAAC;SACN;IACH,CAAC;CACF;AACD,WAAW,CAAC,aAAa,EAAE,CAAC,oBAAoB,CAAC,CAAC,CAAC"}
diff --git a/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/SubscriptionLog.js b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/SubscriptionLog.js
new file mode 100644
index 00000000..c421751b
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/SubscriptionLog.js
@@ -0,0 +1,7 @@
+export class SubscriptionLog {
+ constructor(subscribedFrame, unsubscribedFrame = Number.POSITIVE_INFINITY) {
+ this.subscribedFrame = subscribedFrame;
+ this.unsubscribedFrame = unsubscribedFrame;
+ }
+}
+//# sourceMappingURL=SubscriptionLog.js.map \ No newline at end of file
diff --git a/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/SubscriptionLog.js.map b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/SubscriptionLog.js.map
new file mode 100644
index 00000000..8903b165
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/SubscriptionLog.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"SubscriptionLog.js","sources":["../../../src/internal/testing/SubscriptionLog.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,eAAe;IAC1B,YAAmB,eAAuB,EACvB,oBAA4B,MAAM,CAAC,iBAAiB;QADpD,oBAAe,GAAf,eAAe,CAAQ;QACvB,sBAAiB,GAAjB,iBAAiB,CAAmC;IACvE,CAAC;CACF"}
diff --git a/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/SubscriptionLoggable.js b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/SubscriptionLoggable.js
new file mode 100644
index 00000000..08a00d72
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/SubscriptionLoggable.js
@@ -0,0 +1,16 @@
+import { SubscriptionLog } from './SubscriptionLog';
+export class SubscriptionLoggable {
+ constructor() {
+ this.subscriptions = [];
+ }
+ logSubscribedFrame() {
+ this.subscriptions.push(new SubscriptionLog(this.scheduler.now()));
+ return this.subscriptions.length - 1;
+ }
+ logUnsubscribedFrame(index) {
+ const subscriptionLogs = this.subscriptions;
+ const oldSubscriptionLog = subscriptionLogs[index];
+ subscriptionLogs[index] = new SubscriptionLog(oldSubscriptionLog.subscribedFrame, this.scheduler.now());
+ }
+}
+//# sourceMappingURL=SubscriptionLoggable.js.map \ No newline at end of file
diff --git a/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/SubscriptionLoggable.js.map b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/SubscriptionLoggable.js.map
new file mode 100644
index 00000000..37f16beb
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/SubscriptionLoggable.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"SubscriptionLoggable.js","sources":["../../../src/internal/testing/SubscriptionLoggable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,OAAO,oBAAoB;IAAjC;QACS,kBAAa,GAAsB,EAAE,CAAC;IAgB/C,CAAC;IAbC,kBAAkB;QAChB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QACnE,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC;IACvC,CAAC;IAED,oBAAoB,CAAC,KAAa;QAChC,MAAM,gBAAgB,GAAG,IAAI,CAAC,aAAa,CAAC;QAC5C,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;QACnD,gBAAgB,CAAC,KAAK,CAAC,GAAG,IAAI,eAAe,CAC3C,kBAAkB,CAAC,eAAe,EAClC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CACrB,CAAC;IACJ,CAAC;CACF"}
diff --git a/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/TestMessage.js b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/TestMessage.js
new file mode 100644
index 00000000..908175c7
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/TestMessage.js
@@ -0,0 +1 @@
+//# sourceMappingURL=TestMessage.js.map \ No newline at end of file
diff --git a/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/TestMessage.js.map b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/TestMessage.js.map
new file mode 100644
index 00000000..b19facd5
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/TestMessage.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"TestMessage.js","sources":["../../../src/internal/testing/TestMessage.ts"],"names":[],"mappings":""}
diff --git a/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/TestScheduler.js b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/TestScheduler.js
new file mode 100644
index 00000000..3b8a55fa
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/TestScheduler.js
@@ -0,0 +1,322 @@
+import { Observable } from '../Observable';
+import { Notification } from '../Notification';
+import { ColdObservable } from './ColdObservable';
+import { HotObservable } from './HotObservable';
+import { SubscriptionLog } from './SubscriptionLog';
+import { VirtualTimeScheduler, VirtualAction } from '../scheduler/VirtualTimeScheduler';
+import { AsyncScheduler } from '../scheduler/AsyncScheduler';
+const defaultMaxFrame = 750;
+export class TestScheduler extends VirtualTimeScheduler {
+ constructor(assertDeepEqual) {
+ super(VirtualAction, defaultMaxFrame);
+ this.assertDeepEqual = assertDeepEqual;
+ this.hotObservables = [];
+ this.coldObservables = [];
+ this.flushTests = [];
+ this.runMode = false;
+ }
+ createTime(marbles) {
+ const indexOf = marbles.indexOf('|');
+ if (indexOf === -1) {
+ throw new Error('marble diagram for time should have a completion marker "|"');
+ }
+ return indexOf * TestScheduler.frameTimeFactor;
+ }
+ createColdObservable(marbles, values, error) {
+ if (marbles.indexOf('^') !== -1) {
+ throw new Error('cold observable cannot have subscription offset "^"');
+ }
+ if (marbles.indexOf('!') !== -1) {
+ throw new Error('cold observable cannot have unsubscription marker "!"');
+ }
+ const messages = TestScheduler.parseMarbles(marbles, values, error, undefined, this.runMode);
+ const cold = new ColdObservable(messages, this);
+ this.coldObservables.push(cold);
+ return cold;
+ }
+ createHotObservable(marbles, values, error) {
+ if (marbles.indexOf('!') !== -1) {
+ throw new Error('hot observable cannot have unsubscription marker "!"');
+ }
+ const messages = TestScheduler.parseMarbles(marbles, values, error, undefined, this.runMode);
+ const subject = new HotObservable(messages, this);
+ this.hotObservables.push(subject);
+ return subject;
+ }
+ materializeInnerObservable(observable, outerFrame) {
+ const messages = [];
+ observable.subscribe((value) => {
+ messages.push({ frame: this.frame - outerFrame, notification: Notification.createNext(value) });
+ }, (err) => {
+ messages.push({ frame: this.frame - outerFrame, notification: Notification.createError(err) });
+ }, () => {
+ messages.push({ frame: this.frame - outerFrame, notification: Notification.createComplete() });
+ });
+ return messages;
+ }
+ expectObservable(observable, subscriptionMarbles = null) {
+ const actual = [];
+ const flushTest = { actual, ready: false };
+ const subscriptionParsed = TestScheduler.parseMarblesAsSubscriptions(subscriptionMarbles, this.runMode);
+ const subscriptionFrame = subscriptionParsed.subscribedFrame === Number.POSITIVE_INFINITY ?
+ 0 : subscriptionParsed.subscribedFrame;
+ const unsubscriptionFrame = subscriptionParsed.unsubscribedFrame;
+ let subscription;
+ this.schedule(() => {
+ subscription = observable.subscribe(x => {
+ let value = x;
+ if (x instanceof Observable) {
+ value = this.materializeInnerObservable(value, this.frame);
+ }
+ actual.push({ frame: this.frame, notification: Notification.createNext(value) });
+ }, (err) => {
+ actual.push({ frame: this.frame, notification: Notification.createError(err) });
+ }, () => {
+ actual.push({ frame: this.frame, notification: Notification.createComplete() });
+ });
+ }, subscriptionFrame);
+ if (unsubscriptionFrame !== Number.POSITIVE_INFINITY) {
+ this.schedule(() => subscription.unsubscribe(), unsubscriptionFrame);
+ }
+ this.flushTests.push(flushTest);
+ const { runMode } = this;
+ return {
+ toBe(marbles, values, errorValue) {
+ flushTest.ready = true;
+ flushTest.expected = TestScheduler.parseMarbles(marbles, values, errorValue, true, runMode);
+ }
+ };
+ }
+ expectSubscriptions(actualSubscriptionLogs) {
+ const flushTest = { actual: actualSubscriptionLogs, ready: false };
+ this.flushTests.push(flushTest);
+ const { runMode } = this;
+ return {
+ toBe(marbles) {
+ const marblesArray = (typeof marbles === 'string') ? [marbles] : marbles;
+ flushTest.ready = true;
+ flushTest.expected = marblesArray.map(marbles => TestScheduler.parseMarblesAsSubscriptions(marbles, runMode));
+ }
+ };
+ }
+ flush() {
+ const hotObservables = this.hotObservables;
+ while (hotObservables.length > 0) {
+ hotObservables.shift().setup();
+ }
+ super.flush();
+ this.flushTests = this.flushTests.filter(test => {
+ if (test.ready) {
+ this.assertDeepEqual(test.actual, test.expected);
+ return false;
+ }
+ return true;
+ });
+ }
+ static parseMarblesAsSubscriptions(marbles, runMode = false) {
+ if (typeof marbles !== 'string') {
+ return new SubscriptionLog(Number.POSITIVE_INFINITY);
+ }
+ const len = marbles.length;
+ let groupStart = -1;
+ let subscriptionFrame = Number.POSITIVE_INFINITY;
+ let unsubscriptionFrame = Number.POSITIVE_INFINITY;
+ let frame = 0;
+ for (let i = 0; i < len; i++) {
+ let nextFrame = frame;
+ const advanceFrameBy = (count) => {
+ nextFrame += count * this.frameTimeFactor;
+ };
+ const c = marbles[i];
+ switch (c) {
+ case ' ':
+ if (!runMode) {
+ advanceFrameBy(1);
+ }
+ break;
+ case '-':
+ advanceFrameBy(1);
+ break;
+ case '(':
+ groupStart = frame;
+ advanceFrameBy(1);
+ break;
+ case ')':
+ groupStart = -1;
+ advanceFrameBy(1);
+ break;
+ case '^':
+ if (subscriptionFrame !== Number.POSITIVE_INFINITY) {
+ throw new Error('found a second subscription point \'^\' in a ' +
+ 'subscription marble diagram. There can only be one.');
+ }
+ subscriptionFrame = groupStart > -1 ? groupStart : frame;
+ advanceFrameBy(1);
+ break;
+ case '!':
+ if (unsubscriptionFrame !== Number.POSITIVE_INFINITY) {
+ throw new Error('found a second subscription point \'^\' in a ' +
+ 'subscription marble diagram. There can only be one.');
+ }
+ unsubscriptionFrame = groupStart > -1 ? groupStart : frame;
+ break;
+ default:
+ if (runMode && c.match(/^[0-9]$/)) {
+ if (i === 0 || marbles[i - 1] === ' ') {
+ const buffer = marbles.slice(i);
+ const match = buffer.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);
+ if (match) {
+ i += match[0].length - 1;
+ const duration = parseFloat(match[1]);
+ const unit = match[2];
+ let durationInMs;
+ switch (unit) {
+ case 'ms':
+ durationInMs = duration;
+ break;
+ case 's':
+ durationInMs = duration * 1000;
+ break;
+ case 'm':
+ durationInMs = duration * 1000 * 60;
+ break;
+ default:
+ break;
+ }
+ advanceFrameBy(durationInMs / this.frameTimeFactor);
+ break;
+ }
+ }
+ }
+ throw new Error('there can only be \'^\' and \'!\' markers in a ' +
+ 'subscription marble diagram. Found instead \'' + c + '\'.');
+ }
+ frame = nextFrame;
+ }
+ if (unsubscriptionFrame < 0) {
+ return new SubscriptionLog(subscriptionFrame);
+ }
+ else {
+ return new SubscriptionLog(subscriptionFrame, unsubscriptionFrame);
+ }
+ }
+ static parseMarbles(marbles, values, errorValue, materializeInnerObservables = false, runMode = false) {
+ if (marbles.indexOf('!') !== -1) {
+ throw new Error('conventional marble diagrams cannot have the ' +
+ 'unsubscription marker "!"');
+ }
+ const len = marbles.length;
+ const testMessages = [];
+ const subIndex = runMode ? marbles.replace(/^[ ]+/, '').indexOf('^') : marbles.indexOf('^');
+ let frame = subIndex === -1 ? 0 : (subIndex * -this.frameTimeFactor);
+ const getValue = typeof values !== 'object' ?
+ (x) => x :
+ (x) => {
+ if (materializeInnerObservables && values[x] instanceof ColdObservable) {
+ return values[x].messages;
+ }
+ return values[x];
+ };
+ let groupStart = -1;
+ for (let i = 0; i < len; i++) {
+ let nextFrame = frame;
+ const advanceFrameBy = (count) => {
+ nextFrame += count * this.frameTimeFactor;
+ };
+ let notification;
+ const c = marbles[i];
+ switch (c) {
+ case ' ':
+ if (!runMode) {
+ advanceFrameBy(1);
+ }
+ break;
+ case '-':
+ advanceFrameBy(1);
+ break;
+ case '(':
+ groupStart = frame;
+ advanceFrameBy(1);
+ break;
+ case ')':
+ groupStart = -1;
+ advanceFrameBy(1);
+ break;
+ case '|':
+ notification = Notification.createComplete();
+ advanceFrameBy(1);
+ break;
+ case '^':
+ advanceFrameBy(1);
+ break;
+ case '#':
+ notification = Notification.createError(errorValue || 'error');
+ advanceFrameBy(1);
+ break;
+ default:
+ if (runMode && c.match(/^[0-9]$/)) {
+ if (i === 0 || marbles[i - 1] === ' ') {
+ const buffer = marbles.slice(i);
+ const match = buffer.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);
+ if (match) {
+ i += match[0].length - 1;
+ const duration = parseFloat(match[1]);
+ const unit = match[2];
+ let durationInMs;
+ switch (unit) {
+ case 'ms':
+ durationInMs = duration;
+ break;
+ case 's':
+ durationInMs = duration * 1000;
+ break;
+ case 'm':
+ durationInMs = duration * 1000 * 60;
+ break;
+ default:
+ break;
+ }
+ advanceFrameBy(durationInMs / this.frameTimeFactor);
+ break;
+ }
+ }
+ }
+ notification = Notification.createNext(getValue(c));
+ advanceFrameBy(1);
+ break;
+ }
+ if (notification) {
+ testMessages.push({ frame: groupStart > -1 ? groupStart : frame, notification });
+ }
+ frame = nextFrame;
+ }
+ return testMessages;
+ }
+ run(callback) {
+ const prevFrameTimeFactor = TestScheduler.frameTimeFactor;
+ const prevMaxFrames = this.maxFrames;
+ TestScheduler.frameTimeFactor = 1;
+ this.maxFrames = Number.POSITIVE_INFINITY;
+ this.runMode = true;
+ AsyncScheduler.delegate = this;
+ const helpers = {
+ cold: this.createColdObservable.bind(this),
+ hot: this.createHotObservable.bind(this),
+ flush: this.flush.bind(this),
+ expectObservable: this.expectObservable.bind(this),
+ expectSubscriptions: this.expectSubscriptions.bind(this),
+ };
+ try {
+ const ret = callback(helpers);
+ this.flush();
+ return ret;
+ }
+ finally {
+ TestScheduler.frameTimeFactor = prevFrameTimeFactor;
+ this.maxFrames = prevMaxFrames;
+ this.runMode = false;
+ AsyncScheduler.delegate = undefined;
+ }
+ }
+}
+//# sourceMappingURL=TestScheduler.js.map \ No newline at end of file
diff --git a/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/TestScheduler.js.map b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/TestScheduler.js.map
new file mode 100644
index 00000000..b2c5bdc4
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/rxjs/_esm2015/internal/testing/TestScheduler.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"TestScheduler.js","sources":["../../../src/internal/testing/TestScheduler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACxF,OAAO,EAAE,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