mol_plot_all 1.2.1196 → 1.2.1198
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node.test.js +81 -6
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +81 -6
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -7669,6 +7669,68 @@ var $;
|
|
|
7669
7669
|
});
|
|
7670
7670
|
})($ || ($ = {}));
|
|
7671
7671
|
|
|
7672
|
+
;
|
|
7673
|
+
"use strict";
|
|
7674
|
+
var $;
|
|
7675
|
+
(function ($) {
|
|
7676
|
+
class $mol_after_work extends $mol_object2 {
|
|
7677
|
+
delay;
|
|
7678
|
+
task;
|
|
7679
|
+
id;
|
|
7680
|
+
constructor(delay, task) {
|
|
7681
|
+
super();
|
|
7682
|
+
this.delay = delay;
|
|
7683
|
+
this.task = task;
|
|
7684
|
+
this.id = requestIdleCallback(task, { timeout: delay });
|
|
7685
|
+
}
|
|
7686
|
+
destructor() {
|
|
7687
|
+
cancelIdleCallback(this.id);
|
|
7688
|
+
}
|
|
7689
|
+
}
|
|
7690
|
+
$.$mol_after_work = $mol_after_work;
|
|
7691
|
+
if (typeof requestIdleCallback !== 'function') {
|
|
7692
|
+
$.$mol_after_work = $mol_after_timeout;
|
|
7693
|
+
}
|
|
7694
|
+
})($ || ($ = {}));
|
|
7695
|
+
|
|
7696
|
+
;
|
|
7697
|
+
"use strict";
|
|
7698
|
+
var $;
|
|
7699
|
+
(function ($_1) {
|
|
7700
|
+
$mol_test_mocks.push($ => {
|
|
7701
|
+
$.$mol_after_work = $mol_after_mock_timeout;
|
|
7702
|
+
});
|
|
7703
|
+
})($ || ($ = {}));
|
|
7704
|
+
|
|
7705
|
+
;
|
|
7706
|
+
"use strict";
|
|
7707
|
+
var $;
|
|
7708
|
+
(function ($) {
|
|
7709
|
+
function $mol_wait_rest_async() {
|
|
7710
|
+
return new Promise(done => {
|
|
7711
|
+
new this.$mol_after_work(16, () => done(null));
|
|
7712
|
+
});
|
|
7713
|
+
}
|
|
7714
|
+
$.$mol_wait_rest_async = $mol_wait_rest_async;
|
|
7715
|
+
function $mol_wait_rest() {
|
|
7716
|
+
return this.$mol_wire_sync(this).$mol_wait_rest_async();
|
|
7717
|
+
}
|
|
7718
|
+
$.$mol_wait_rest = $mol_wait_rest;
|
|
7719
|
+
})($ || ($ = {}));
|
|
7720
|
+
|
|
7721
|
+
;
|
|
7722
|
+
"use strict";
|
|
7723
|
+
var $;
|
|
7724
|
+
(function ($_1) {
|
|
7725
|
+
var $$;
|
|
7726
|
+
(function ($$) {
|
|
7727
|
+
$mol_test_mocks.push($ => {
|
|
7728
|
+
$.$mol_wait_timeout = function $mol_wait_timeout_mock(timeout) { };
|
|
7729
|
+
$.$mol_wait_timeout_async = async function $mol_wait_timeout_async_mock(timeout) { };
|
|
7730
|
+
});
|
|
7731
|
+
})($$ = $_1.$$ || ($_1.$$ = {}));
|
|
7732
|
+
})($ || ($ = {}));
|
|
7733
|
+
|
|
7672
7734
|
;
|
|
7673
7735
|
"use strict";
|
|
7674
7736
|
var $;
|
|
@@ -7687,6 +7749,19 @@ var $;
|
|
|
7687
7749
|
$.$mol_wait_timeout = $mol_wait_timeout;
|
|
7688
7750
|
})($ || ($ = {}));
|
|
7689
7751
|
|
|
7752
|
+
;
|
|
7753
|
+
"use strict";
|
|
7754
|
+
var $;
|
|
7755
|
+
(function ($_1) {
|
|
7756
|
+
var $$;
|
|
7757
|
+
(function ($$) {
|
|
7758
|
+
$mol_test_mocks.push($ => {
|
|
7759
|
+
$.$mol_wait_rest = function $mol_wait_rest_mock() { };
|
|
7760
|
+
$.$mol_wait_rest_async = async function $mol_wait_rest_async_mock() { };
|
|
7761
|
+
});
|
|
7762
|
+
})($$ = $_1.$$ || ($_1.$$ = {}));
|
|
7763
|
+
})($ || ($ = {}));
|
|
7764
|
+
|
|
7690
7765
|
;
|
|
7691
7766
|
"use strict";
|
|
7692
7767
|
var $;
|
|
@@ -7709,7 +7784,7 @@ var $;
|
|
|
7709
7784
|
static last = [];
|
|
7710
7785
|
static send(next) {
|
|
7711
7786
|
$mol_wire_sync(this.first).push(next);
|
|
7712
|
-
|
|
7787
|
+
$$.$mol_wait_timeout(0);
|
|
7713
7788
|
this.last.push(next);
|
|
7714
7789
|
}
|
|
7715
7790
|
}
|
|
@@ -7718,15 +7793,15 @@ var $;
|
|
|
7718
7793
|
const promise = name('jin');
|
|
7719
7794
|
$.$mol_after_mock_warp();
|
|
7720
7795
|
await promise;
|
|
7721
|
-
$
|
|
7722
|
-
$
|
|
7796
|
+
$mol_assert_equal(NameLogger.first, ['john', 'jin']);
|
|
7797
|
+
$mol_assert_equal(NameLogger.last, ['jin']);
|
|
7723
7798
|
},
|
|
7724
7799
|
async 'Latest function calls wins'($) {
|
|
7725
7800
|
const first = [];
|
|
7726
7801
|
const last = [];
|
|
7727
7802
|
function send_name(next) {
|
|
7728
7803
|
$mol_wire_sync(first).push(next);
|
|
7729
|
-
|
|
7804
|
+
$$.$mol_wait_timeout(0);
|
|
7730
7805
|
last.push(next);
|
|
7731
7806
|
}
|
|
7732
7807
|
const name = $mol_wire_async(send_name);
|
|
@@ -7734,8 +7809,8 @@ var $;
|
|
|
7734
7809
|
const promise = name('jin');
|
|
7735
7810
|
$.$mol_after_mock_warp();
|
|
7736
7811
|
await promise;
|
|
7737
|
-
$
|
|
7738
|
-
$
|
|
7812
|
+
$mol_assert_equal(first, ['john', 'jin']);
|
|
7813
|
+
$mol_assert_equal(last, ['jin']);
|
|
7739
7814
|
},
|
|
7740
7815
|
});
|
|
7741
7816
|
})($ || ($ = {}));
|