mol_plot_all 1.2.522 → 1.2.524
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 +242 -242
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +364 -364
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -6160,25 +6160,25 @@ var $;
|
|
|
6160
6160
|
//mol/log3/log3.test.ts
|
|
6161
6161
|
;
|
|
6162
6162
|
"use strict";
|
|
6163
|
-
//mol/type/
|
|
6163
|
+
//mol/type/partial/deep/deep.ts
|
|
6164
6164
|
;
|
|
6165
6165
|
"use strict";
|
|
6166
|
-
//mol/type/
|
|
6166
|
+
//mol/type/error/error.ts
|
|
6167
6167
|
;
|
|
6168
6168
|
"use strict";
|
|
6169
6169
|
//mol/type/assert/assert.ts
|
|
6170
6170
|
;
|
|
6171
6171
|
"use strict";
|
|
6172
|
-
//mol/type/
|
|
6172
|
+
//mol/type/assert/assert.test.ts
|
|
6173
6173
|
;
|
|
6174
6174
|
"use strict";
|
|
6175
6175
|
//mol/type/equals/equals.ts
|
|
6176
6176
|
;
|
|
6177
6177
|
"use strict";
|
|
6178
|
-
//mol/type/
|
|
6178
|
+
//mol/type/equals/equals.test.ts
|
|
6179
6179
|
;
|
|
6180
6180
|
"use strict";
|
|
6181
|
-
//mol/type/partial/deep/deep.ts
|
|
6181
|
+
//mol/type/partial/deep/deep.test.ts
|
|
6182
6182
|
;
|
|
6183
6183
|
"use strict";
|
|
6184
6184
|
var $;
|
|
@@ -6500,38 +6500,6 @@ var $;
|
|
|
6500
6500
|
;
|
|
6501
6501
|
"use strict";
|
|
6502
6502
|
var $;
|
|
6503
|
-
(function ($) {
|
|
6504
|
-
$mol_test({
|
|
6505
|
-
'must be false'() {
|
|
6506
|
-
$mol_assert_not(0);
|
|
6507
|
-
},
|
|
6508
|
-
'must be true'() {
|
|
6509
|
-
$mol_assert_ok(1);
|
|
6510
|
-
},
|
|
6511
|
-
'two must be equal'() {
|
|
6512
|
-
$mol_assert_equal(2, 2);
|
|
6513
|
-
},
|
|
6514
|
-
'three must be equal'() {
|
|
6515
|
-
$mol_assert_equal(2, 2, 2);
|
|
6516
|
-
},
|
|
6517
|
-
'two must be unique'() {
|
|
6518
|
-
$mol_assert_unique([3], [3]);
|
|
6519
|
-
},
|
|
6520
|
-
'three must be unique'() {
|
|
6521
|
-
$mol_assert_unique([3], [3], [3]);
|
|
6522
|
-
},
|
|
6523
|
-
'two must be alike'() {
|
|
6524
|
-
$mol_assert_like([3], [3]);
|
|
6525
|
-
},
|
|
6526
|
-
'three must be alike'() {
|
|
6527
|
-
$mol_assert_like([3], [3], [3]);
|
|
6528
|
-
},
|
|
6529
|
-
});
|
|
6530
|
-
})($ || ($ = {}));
|
|
6531
|
-
//mol/assert/assert.test.ts
|
|
6532
|
-
;
|
|
6533
|
-
"use strict";
|
|
6534
|
-
var $;
|
|
6535
6503
|
(function ($) {
|
|
6536
6504
|
function $mol_assert_ok(value) {
|
|
6537
6505
|
if (value)
|
|
@@ -6626,6 +6594,38 @@ var $;
|
|
|
6626
6594
|
;
|
|
6627
6595
|
"use strict";
|
|
6628
6596
|
var $;
|
|
6597
|
+
(function ($) {
|
|
6598
|
+
$mol_test({
|
|
6599
|
+
'must be false'() {
|
|
6600
|
+
$mol_assert_not(0);
|
|
6601
|
+
},
|
|
6602
|
+
'must be true'() {
|
|
6603
|
+
$mol_assert_ok(1);
|
|
6604
|
+
},
|
|
6605
|
+
'two must be equal'() {
|
|
6606
|
+
$mol_assert_equal(2, 2);
|
|
6607
|
+
},
|
|
6608
|
+
'three must be equal'() {
|
|
6609
|
+
$mol_assert_equal(2, 2, 2);
|
|
6610
|
+
},
|
|
6611
|
+
'two must be unique'() {
|
|
6612
|
+
$mol_assert_unique([3], [3]);
|
|
6613
|
+
},
|
|
6614
|
+
'three must be unique'() {
|
|
6615
|
+
$mol_assert_unique([3], [3], [3]);
|
|
6616
|
+
},
|
|
6617
|
+
'two must be alike'() {
|
|
6618
|
+
$mol_assert_like([3], [3]);
|
|
6619
|
+
},
|
|
6620
|
+
'three must be alike'() {
|
|
6621
|
+
$mol_assert_like([3], [3], [3]);
|
|
6622
|
+
},
|
|
6623
|
+
});
|
|
6624
|
+
})($ || ($ = {}));
|
|
6625
|
+
//mol/assert/assert.test.ts
|
|
6626
|
+
;
|
|
6627
|
+
"use strict";
|
|
6628
|
+
var $;
|
|
6629
6629
|
(function ($_1) {
|
|
6630
6630
|
$mol_test({
|
|
6631
6631
|
'FQN of anon function'($) {
|
|
@@ -6706,44 +6706,6 @@ var $;
|
|
|
6706
6706
|
;
|
|
6707
6707
|
"use strict";
|
|
6708
6708
|
var $;
|
|
6709
|
-
(function ($) {
|
|
6710
|
-
$.$mol_after_mock_queue = [];
|
|
6711
|
-
function $mol_after_mock_warp() {
|
|
6712
|
-
const queue = $.$mol_after_mock_queue.splice(0);
|
|
6713
|
-
for (const task of queue)
|
|
6714
|
-
task();
|
|
6715
|
-
}
|
|
6716
|
-
$.$mol_after_mock_warp = $mol_after_mock_warp;
|
|
6717
|
-
class $mol_after_mock_commmon extends $mol_object2 {
|
|
6718
|
-
task;
|
|
6719
|
-
promise = Promise.resolve();
|
|
6720
|
-
cancelled = false;
|
|
6721
|
-
id;
|
|
6722
|
-
constructor(task) {
|
|
6723
|
-
super();
|
|
6724
|
-
this.task = task;
|
|
6725
|
-
$.$mol_after_mock_queue.push(task);
|
|
6726
|
-
}
|
|
6727
|
-
destructor() {
|
|
6728
|
-
const index = $.$mol_after_mock_queue.indexOf(this.task);
|
|
6729
|
-
if (index >= 0)
|
|
6730
|
-
$.$mol_after_mock_queue.splice(index, 1);
|
|
6731
|
-
}
|
|
6732
|
-
}
|
|
6733
|
-
$.$mol_after_mock_commmon = $mol_after_mock_commmon;
|
|
6734
|
-
class $mol_after_mock_timeout extends $mol_after_mock_commmon {
|
|
6735
|
-
delay;
|
|
6736
|
-
constructor(delay, task) {
|
|
6737
|
-
super(task);
|
|
6738
|
-
this.delay = delay;
|
|
6739
|
-
}
|
|
6740
|
-
}
|
|
6741
|
-
$.$mol_after_mock_timeout = $mol_after_mock_timeout;
|
|
6742
|
-
})($ || ($ = {}));
|
|
6743
|
-
//mol/after/mock/mock.test.ts
|
|
6744
|
-
;
|
|
6745
|
-
"use strict";
|
|
6746
|
-
var $;
|
|
6747
6709
|
(function ($_1) {
|
|
6748
6710
|
$mol_test({
|
|
6749
6711
|
'tree parsing'() {
|
|
@@ -6804,6 +6766,44 @@ var $;
|
|
|
6804
6766
|
;
|
|
6805
6767
|
"use strict";
|
|
6806
6768
|
var $;
|
|
6769
|
+
(function ($) {
|
|
6770
|
+
$.$mol_after_mock_queue = [];
|
|
6771
|
+
function $mol_after_mock_warp() {
|
|
6772
|
+
const queue = $.$mol_after_mock_queue.splice(0);
|
|
6773
|
+
for (const task of queue)
|
|
6774
|
+
task();
|
|
6775
|
+
}
|
|
6776
|
+
$.$mol_after_mock_warp = $mol_after_mock_warp;
|
|
6777
|
+
class $mol_after_mock_commmon extends $mol_object2 {
|
|
6778
|
+
task;
|
|
6779
|
+
promise = Promise.resolve();
|
|
6780
|
+
cancelled = false;
|
|
6781
|
+
id;
|
|
6782
|
+
constructor(task) {
|
|
6783
|
+
super();
|
|
6784
|
+
this.task = task;
|
|
6785
|
+
$.$mol_after_mock_queue.push(task);
|
|
6786
|
+
}
|
|
6787
|
+
destructor() {
|
|
6788
|
+
const index = $.$mol_after_mock_queue.indexOf(this.task);
|
|
6789
|
+
if (index >= 0)
|
|
6790
|
+
$.$mol_after_mock_queue.splice(index, 1);
|
|
6791
|
+
}
|
|
6792
|
+
}
|
|
6793
|
+
$.$mol_after_mock_commmon = $mol_after_mock_commmon;
|
|
6794
|
+
class $mol_after_mock_timeout extends $mol_after_mock_commmon {
|
|
6795
|
+
delay;
|
|
6796
|
+
constructor(delay, task) {
|
|
6797
|
+
super(task);
|
|
6798
|
+
this.delay = delay;
|
|
6799
|
+
}
|
|
6800
|
+
}
|
|
6801
|
+
$.$mol_after_mock_timeout = $mol_after_mock_timeout;
|
|
6802
|
+
})($ || ($ = {}));
|
|
6803
|
+
//mol/after/mock/mock.test.ts
|
|
6804
|
+
;
|
|
6805
|
+
"use strict";
|
|
6806
|
+
var $;
|
|
6807
6807
|
(function ($_1) {
|
|
6808
6808
|
$mol_test_mocks.push($ => {
|
|
6809
6809
|
$.$mol_after_tick = $mol_after_mock_commmon;
|
|
@@ -6813,6 +6813,25 @@ var $;
|
|
|
6813
6813
|
;
|
|
6814
6814
|
"use strict";
|
|
6815
6815
|
var $;
|
|
6816
|
+
(function ($) {
|
|
6817
|
+
$mol_test({
|
|
6818
|
+
'init with overload'() {
|
|
6819
|
+
class X extends $mol_object {
|
|
6820
|
+
foo() {
|
|
6821
|
+
return 1;
|
|
6822
|
+
}
|
|
6823
|
+
}
|
|
6824
|
+
var x = X.make({
|
|
6825
|
+
foo: () => 2,
|
|
6826
|
+
});
|
|
6827
|
+
$mol_assert_equal(x.foo(), 2);
|
|
6828
|
+
},
|
|
6829
|
+
});
|
|
6830
|
+
})($ || ($ = {}));
|
|
6831
|
+
//mol/object/object.test.ts
|
|
6832
|
+
;
|
|
6833
|
+
"use strict";
|
|
6834
|
+
var $;
|
|
6816
6835
|
(function ($_1) {
|
|
6817
6836
|
$mol_test({
|
|
6818
6837
|
'Collect deps'() {
|
|
@@ -6970,6 +6989,9 @@ var $;
|
|
|
6970
6989
|
//mol/wire/fiber/fiber.test.ts
|
|
6971
6990
|
;
|
|
6972
6991
|
"use strict";
|
|
6992
|
+
//mol/type/tail/tail.test.ts
|
|
6993
|
+
;
|
|
6994
|
+
"use strict";
|
|
6973
6995
|
var $;
|
|
6974
6996
|
(function ($) {
|
|
6975
6997
|
function $mol_promise() {
|
|
@@ -7076,9 +7098,6 @@ var $;
|
|
|
7076
7098
|
//mol/wire/async/async.test.ts
|
|
7077
7099
|
;
|
|
7078
7100
|
"use strict";
|
|
7079
|
-
//mol/type/tail/tail.test.ts
|
|
7080
|
-
;
|
|
7081
|
-
"use strict";
|
|
7082
7101
|
var $;
|
|
7083
7102
|
(function ($_1) {
|
|
7084
7103
|
$mol_test({
|
|
@@ -7669,25 +7688,6 @@ var $;
|
|
|
7669
7688
|
;
|
|
7670
7689
|
"use strict";
|
|
7671
7690
|
var $;
|
|
7672
|
-
(function ($) {
|
|
7673
|
-
$mol_test({
|
|
7674
|
-
'init with overload'() {
|
|
7675
|
-
class X extends $mol_object {
|
|
7676
|
-
foo() {
|
|
7677
|
-
return 1;
|
|
7678
|
-
}
|
|
7679
|
-
}
|
|
7680
|
-
var x = X.make({
|
|
7681
|
-
foo: () => 2,
|
|
7682
|
-
});
|
|
7683
|
-
$mol_assert_equal(x.foo(), 2);
|
|
7684
|
-
},
|
|
7685
|
-
});
|
|
7686
|
-
})($ || ($ = {}));
|
|
7687
|
-
//mol/object/object.test.ts
|
|
7688
|
-
;
|
|
7689
|
-
"use strict";
|
|
7690
|
-
var $;
|
|
7691
7691
|
(function ($) {
|
|
7692
7692
|
$mol_test({
|
|
7693
7693
|
'run callback'() {
|
|
@@ -7831,6 +7831,64 @@ var $;
|
|
|
7831
7831
|
;
|
|
7832
7832
|
"use strict";
|
|
7833
7833
|
var $;
|
|
7834
|
+
(function ($) {
|
|
7835
|
+
$mol_test({
|
|
7836
|
+
'Primitives'() {
|
|
7837
|
+
$mol_assert_equal($mol_key(null), 'null');
|
|
7838
|
+
$mol_assert_equal($mol_key(false), 'false');
|
|
7839
|
+
$mol_assert_equal($mol_key(true), 'true');
|
|
7840
|
+
$mol_assert_equal($mol_key(0), '0');
|
|
7841
|
+
$mol_assert_equal($mol_key(''), '""');
|
|
7842
|
+
},
|
|
7843
|
+
'Array & POJO'() {
|
|
7844
|
+
$mol_assert_equal($mol_key([null]), '[null]');
|
|
7845
|
+
$mol_assert_equal($mol_key({ foo: 0 }), '{"foo":0}');
|
|
7846
|
+
$mol_assert_equal($mol_key({ foo: [false] }), '{"foo":[false]}');
|
|
7847
|
+
},
|
|
7848
|
+
'Function'() {
|
|
7849
|
+
const func = () => { };
|
|
7850
|
+
$mol_assert_equal($mol_key(func), $mol_key(func));
|
|
7851
|
+
$mol_assert_unique($mol_key(func), $mol_key(() => { }));
|
|
7852
|
+
},
|
|
7853
|
+
'Objects'() {
|
|
7854
|
+
class User {
|
|
7855
|
+
}
|
|
7856
|
+
const jin = new User();
|
|
7857
|
+
$mol_assert_equal($mol_key(jin), $mol_key(jin));
|
|
7858
|
+
$mol_assert_unique($mol_key(jin), $mol_key(new User()));
|
|
7859
|
+
},
|
|
7860
|
+
'Elements'() {
|
|
7861
|
+
const foo = $mol_jsx("div", null, "bar");
|
|
7862
|
+
$mol_assert_equal($mol_key(foo), $mol_key(foo));
|
|
7863
|
+
$mol_assert_unique($mol_key(foo), $mol_key($mol_jsx("div", null, "bar")));
|
|
7864
|
+
},
|
|
7865
|
+
'Custom JSON representation'() {
|
|
7866
|
+
class User {
|
|
7867
|
+
name;
|
|
7868
|
+
age;
|
|
7869
|
+
constructor(name, age) {
|
|
7870
|
+
this.name = name;
|
|
7871
|
+
this.age = age;
|
|
7872
|
+
}
|
|
7873
|
+
toJSON() { return { name: this.name }; }
|
|
7874
|
+
}
|
|
7875
|
+
$mol_assert_equal($mol_key(new User('jin', 18)), '{"name":"jin"}');
|
|
7876
|
+
},
|
|
7877
|
+
'Special native classes'() {
|
|
7878
|
+
$mol_assert_equal($mol_key(new Date('xyz')), 'null');
|
|
7879
|
+
$mol_assert_equal($mol_key(new Date('2001-01-02T03:04:05.678Z')), '"2001-01-02T03:04:05.678Z"');
|
|
7880
|
+
$mol_assert_equal($mol_key(/./), '"/./"');
|
|
7881
|
+
$mol_assert_equal($mol_key(/\./gimsu), '"/\\\\./gimsu"');
|
|
7882
|
+
},
|
|
7883
|
+
});
|
|
7884
|
+
})($ || ($ = {}));
|
|
7885
|
+
//mol/key/key.test.tsx
|
|
7886
|
+
;
|
|
7887
|
+
"use strict";
|
|
7888
|
+
//mol/type/foot/foot.test.ts
|
|
7889
|
+
;
|
|
7890
|
+
"use strict";
|
|
7891
|
+
var $;
|
|
7834
7892
|
(function ($) {
|
|
7835
7893
|
class $mol_wire_log extends $mol_object2 {
|
|
7836
7894
|
static watch(task) {
|
|
@@ -7897,64 +7955,6 @@ var $;
|
|
|
7897
7955
|
;
|
|
7898
7956
|
"use strict";
|
|
7899
7957
|
var $;
|
|
7900
|
-
(function ($) {
|
|
7901
|
-
$mol_test({
|
|
7902
|
-
'Primitives'() {
|
|
7903
|
-
$mol_assert_equal($mol_key(null), 'null');
|
|
7904
|
-
$mol_assert_equal($mol_key(false), 'false');
|
|
7905
|
-
$mol_assert_equal($mol_key(true), 'true');
|
|
7906
|
-
$mol_assert_equal($mol_key(0), '0');
|
|
7907
|
-
$mol_assert_equal($mol_key(''), '""');
|
|
7908
|
-
},
|
|
7909
|
-
'Array & POJO'() {
|
|
7910
|
-
$mol_assert_equal($mol_key([null]), '[null]');
|
|
7911
|
-
$mol_assert_equal($mol_key({ foo: 0 }), '{"foo":0}');
|
|
7912
|
-
$mol_assert_equal($mol_key({ foo: [false] }), '{"foo":[false]}');
|
|
7913
|
-
},
|
|
7914
|
-
'Function'() {
|
|
7915
|
-
const func = () => { };
|
|
7916
|
-
$mol_assert_equal($mol_key(func), $mol_key(func));
|
|
7917
|
-
$mol_assert_unique($mol_key(func), $mol_key(() => { }));
|
|
7918
|
-
},
|
|
7919
|
-
'Objects'() {
|
|
7920
|
-
class User {
|
|
7921
|
-
}
|
|
7922
|
-
const jin = new User();
|
|
7923
|
-
$mol_assert_equal($mol_key(jin), $mol_key(jin));
|
|
7924
|
-
$mol_assert_unique($mol_key(jin), $mol_key(new User()));
|
|
7925
|
-
},
|
|
7926
|
-
'Elements'() {
|
|
7927
|
-
const foo = $mol_jsx("div", null, "bar");
|
|
7928
|
-
$mol_assert_equal($mol_key(foo), $mol_key(foo));
|
|
7929
|
-
$mol_assert_unique($mol_key(foo), $mol_key($mol_jsx("div", null, "bar")));
|
|
7930
|
-
},
|
|
7931
|
-
'Custom JSON representation'() {
|
|
7932
|
-
class User {
|
|
7933
|
-
name;
|
|
7934
|
-
age;
|
|
7935
|
-
constructor(name, age) {
|
|
7936
|
-
this.name = name;
|
|
7937
|
-
this.age = age;
|
|
7938
|
-
}
|
|
7939
|
-
toJSON() { return { name: this.name }; }
|
|
7940
|
-
}
|
|
7941
|
-
$mol_assert_equal($mol_key(new User('jin', 18)), '{"name":"jin"}');
|
|
7942
|
-
},
|
|
7943
|
-
'Special native classes'() {
|
|
7944
|
-
$mol_assert_equal($mol_key(new Date('xyz')), 'null');
|
|
7945
|
-
$mol_assert_equal($mol_key(new Date('2001-01-02T03:04:05.678Z')), '"2001-01-02T03:04:05.678Z"');
|
|
7946
|
-
$mol_assert_equal($mol_key(/./), '"/./"');
|
|
7947
|
-
$mol_assert_equal($mol_key(/\./gimsu), '"/\\\\./gimsu"');
|
|
7948
|
-
},
|
|
7949
|
-
});
|
|
7950
|
-
})($ || ($ = {}));
|
|
7951
|
-
//mol/key/key.test.tsx
|
|
7952
|
-
;
|
|
7953
|
-
"use strict";
|
|
7954
|
-
//mol/type/foot/foot.test.ts
|
|
7955
|
-
;
|
|
7956
|
-
"use strict";
|
|
7957
|
-
var $;
|
|
7958
7958
|
(function ($) {
|
|
7959
7959
|
$mol_wire_log.active();
|
|
7960
7960
|
})($ || ($ = {}));
|
|
@@ -8282,40 +8282,6 @@ var $;
|
|
|
8282
8282
|
;
|
|
8283
8283
|
"use strict";
|
|
8284
8284
|
var $;
|
|
8285
|
-
(function ($) {
|
|
8286
|
-
$mol_test_mocks.push(context => {
|
|
8287
|
-
class $mol_state_local_mock extends $mol_state_local {
|
|
8288
|
-
static state = {};
|
|
8289
|
-
static value(key, next = this.state[key]) {
|
|
8290
|
-
return this.state[key] = (next || null);
|
|
8291
|
-
}
|
|
8292
|
-
}
|
|
8293
|
-
__decorate([
|
|
8294
|
-
$mol_mem_key
|
|
8295
|
-
], $mol_state_local_mock, "value", null);
|
|
8296
|
-
context.$mol_state_local = $mol_state_local_mock;
|
|
8297
|
-
});
|
|
8298
|
-
})($ || ($ = {}));
|
|
8299
|
-
//mol/state/local/local.mock.test.ts
|
|
8300
|
-
;
|
|
8301
|
-
"use strict";
|
|
8302
|
-
var $;
|
|
8303
|
-
(function ($) {
|
|
8304
|
-
$mol_test({
|
|
8305
|
-
'local get set delete'() {
|
|
8306
|
-
var key = '$mol_state_local_test:' + Math.random();
|
|
8307
|
-
$mol_assert_equal($mol_state_local.value(key), null);
|
|
8308
|
-
$mol_state_local.value(key, 123);
|
|
8309
|
-
$mol_assert_equal($mol_state_local.value(key), 123);
|
|
8310
|
-
$mol_state_local.value(key, null);
|
|
8311
|
-
$mol_assert_equal($mol_state_local.value(key), null);
|
|
8312
|
-
},
|
|
8313
|
-
});
|
|
8314
|
-
})($ || ($ = {}));
|
|
8315
|
-
//mol/state/local/local.test.ts
|
|
8316
|
-
;
|
|
8317
|
-
"use strict";
|
|
8318
|
-
var $;
|
|
8319
8285
|
(function ($) {
|
|
8320
8286
|
class $mol_state_local extends $mol_object {
|
|
8321
8287
|
static 'native()';
|
|
@@ -8372,25 +8338,41 @@ var $;
|
|
|
8372
8338
|
//mol/state/local/local.ts
|
|
8373
8339
|
;
|
|
8374
8340
|
"use strict";
|
|
8375
|
-
|
|
8341
|
+
var $;
|
|
8342
|
+
(function ($) {
|
|
8343
|
+
$mol_test_mocks.push(context => {
|
|
8344
|
+
class $mol_state_local_mock extends $mol_state_local {
|
|
8345
|
+
static state = {};
|
|
8346
|
+
static value(key, next = this.state[key]) {
|
|
8347
|
+
return this.state[key] = (next || null);
|
|
8348
|
+
}
|
|
8349
|
+
}
|
|
8350
|
+
__decorate([
|
|
8351
|
+
$mol_mem_key
|
|
8352
|
+
], $mol_state_local_mock, "value", null);
|
|
8353
|
+
context.$mol_state_local = $mol_state_local_mock;
|
|
8354
|
+
});
|
|
8355
|
+
})($ || ($ = {}));
|
|
8356
|
+
//mol/state/local/local.mock.test.ts
|
|
8376
8357
|
;
|
|
8377
8358
|
"use strict";
|
|
8378
8359
|
var $;
|
|
8379
8360
|
(function ($) {
|
|
8380
8361
|
$mol_test({
|
|
8381
|
-
'
|
|
8382
|
-
|
|
8383
|
-
|
|
8384
|
-
$
|
|
8385
|
-
$mol_assert_equal($
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
const encoded = new Uint8Array([]);
|
|
8389
|
-
$mol_assert_equal($mol_charset_decode(encoded), '');
|
|
8362
|
+
'local get set delete'() {
|
|
8363
|
+
var key = '$mol_state_local_test:' + Math.random();
|
|
8364
|
+
$mol_assert_equal($mol_state_local.value(key), null);
|
|
8365
|
+
$mol_state_local.value(key, 123);
|
|
8366
|
+
$mol_assert_equal($mol_state_local.value(key), 123);
|
|
8367
|
+
$mol_state_local.value(key, null);
|
|
8368
|
+
$mol_assert_equal($mol_state_local.value(key), null);
|
|
8390
8369
|
},
|
|
8391
8370
|
});
|
|
8392
8371
|
})($ || ($ = {}));
|
|
8393
|
-
//mol/
|
|
8372
|
+
//mol/state/local/local.test.ts
|
|
8373
|
+
;
|
|
8374
|
+
"use strict";
|
|
8375
|
+
//mol/charset/encoding/encoding.ts
|
|
8394
8376
|
;
|
|
8395
8377
|
"use strict";
|
|
8396
8378
|
var $;
|
|
@@ -8410,14 +8392,19 @@ var $;
|
|
|
8410
8392
|
var $;
|
|
8411
8393
|
(function ($) {
|
|
8412
8394
|
$mol_test({
|
|
8413
|
-
'
|
|
8395
|
+
'decode utf8 string'() {
|
|
8414
8396
|
const str = 'Hello, ΧΨΩЫ';
|
|
8415
8397
|
const encoded = new Uint8Array([72, 101, 108, 108, 111, 44, 32, 206, 167, 206, 168, 206, 169, 208, 171]);
|
|
8416
|
-
$
|
|
8398
|
+
$mol_assert_equal($mol_charset_decode(encoded), str);
|
|
8399
|
+
$mol_assert_equal($mol_charset_decode(encoded, 'utf8'), str);
|
|
8400
|
+
},
|
|
8401
|
+
'decode empty string'() {
|
|
8402
|
+
const encoded = new Uint8Array([]);
|
|
8403
|
+
$mol_assert_equal($mol_charset_decode(encoded), '');
|
|
8417
8404
|
},
|
|
8418
8405
|
});
|
|
8419
8406
|
})($ || ($ = {}));
|
|
8420
|
-
//mol/charset/
|
|
8407
|
+
//mol/charset/decode/decode.test.ts
|
|
8421
8408
|
;
|
|
8422
8409
|
"use strict";
|
|
8423
8410
|
var $;
|
|
@@ -8433,6 +8420,19 @@ var $;
|
|
|
8433
8420
|
;
|
|
8434
8421
|
"use strict";
|
|
8435
8422
|
var $;
|
|
8423
|
+
(function ($) {
|
|
8424
|
+
$mol_test({
|
|
8425
|
+
'encode utf8 string'() {
|
|
8426
|
+
const str = 'Hello, ΧΨΩЫ';
|
|
8427
|
+
const encoded = new Uint8Array([72, 101, 108, 108, 111, 44, 32, 206, 167, 206, 168, 206, 169, 208, 171]);
|
|
8428
|
+
$mol_assert_like($mol_charset_encode(str), encoded);
|
|
8429
|
+
},
|
|
8430
|
+
});
|
|
8431
|
+
})($ || ($ = {}));
|
|
8432
|
+
//mol/charset/encode/encode.test.ts
|
|
8433
|
+
;
|
|
8434
|
+
"use strict";
|
|
8435
|
+
var $;
|
|
8436
8436
|
(function ($) {
|
|
8437
8437
|
class $mol_file_not_found extends Error {
|
|
8438
8438
|
}
|
|
@@ -8552,24 +8552,6 @@ var $;
|
|
|
8552
8552
|
;
|
|
8553
8553
|
"use strict";
|
|
8554
8554
|
var $;
|
|
8555
|
-
(function ($) {
|
|
8556
|
-
class TestClass extends Uint8Array {
|
|
8557
|
-
}
|
|
8558
|
-
$mol_test({
|
|
8559
|
-
'Uint8Array vs itself'() {
|
|
8560
|
-
$mol_assert_ok($mol_compare_array(new Uint8Array, new Uint8Array));
|
|
8561
|
-
$mol_assert_ok($mol_compare_array(new Uint8Array([0]), new Uint8Array([0])));
|
|
8562
|
-
$mol_assert_not($mol_compare_array(new Uint8Array([0]), new Uint8Array([1])));
|
|
8563
|
-
},
|
|
8564
|
-
'Uint8Array vs subclassed array'() {
|
|
8565
|
-
$mol_assert_not($mol_compare_array(new Uint8Array, new TestClass));
|
|
8566
|
-
},
|
|
8567
|
-
});
|
|
8568
|
-
})($ || ($ = {}));
|
|
8569
|
-
//mol/compare/array/array.test.ts
|
|
8570
|
-
;
|
|
8571
|
-
"use strict";
|
|
8572
|
-
var $;
|
|
8573
8555
|
(function ($) {
|
|
8574
8556
|
function $mol_compare_array(a, b) {
|
|
8575
8557
|
if (a === b)
|
|
@@ -8589,6 +8571,24 @@ var $;
|
|
|
8589
8571
|
;
|
|
8590
8572
|
"use strict";
|
|
8591
8573
|
var $;
|
|
8574
|
+
(function ($) {
|
|
8575
|
+
class TestClass extends Uint8Array {
|
|
8576
|
+
}
|
|
8577
|
+
$mol_test({
|
|
8578
|
+
'Uint8Array vs itself'() {
|
|
8579
|
+
$mol_assert_ok($mol_compare_array(new Uint8Array, new Uint8Array));
|
|
8580
|
+
$mol_assert_ok($mol_compare_array(new Uint8Array([0]), new Uint8Array([0])));
|
|
8581
|
+
$mol_assert_not($mol_compare_array(new Uint8Array([0]), new Uint8Array([1])));
|
|
8582
|
+
},
|
|
8583
|
+
'Uint8Array vs subclassed array'() {
|
|
8584
|
+
$mol_assert_not($mol_compare_array(new Uint8Array, new TestClass));
|
|
8585
|
+
},
|
|
8586
|
+
});
|
|
8587
|
+
})($ || ($ = {}));
|
|
8588
|
+
//mol/compare/array/array.test.ts
|
|
8589
|
+
;
|
|
8590
|
+
"use strict";
|
|
8591
|
+
var $;
|
|
8592
8592
|
(function ($) {
|
|
8593
8593
|
function stat_convert(stat) {
|
|
8594
8594
|
if (!stat)
|
|
@@ -8775,27 +8775,6 @@ var $;
|
|
|
8775
8775
|
;
|
|
8776
8776
|
"use strict";
|
|
8777
8777
|
var $;
|
|
8778
|
-
(function ($_1) {
|
|
8779
|
-
$mol_test_mocks.push($ => {
|
|
8780
|
-
class $mol_locale_mock extends $mol_locale {
|
|
8781
|
-
lang(next = 'en') { return next; }
|
|
8782
|
-
static source(lang) {
|
|
8783
|
-
return {};
|
|
8784
|
-
}
|
|
8785
|
-
}
|
|
8786
|
-
__decorate([
|
|
8787
|
-
$mol_mem
|
|
8788
|
-
], $mol_locale_mock.prototype, "lang", null);
|
|
8789
|
-
__decorate([
|
|
8790
|
-
$mol_mem_key
|
|
8791
|
-
], $mol_locale_mock, "source", null);
|
|
8792
|
-
$.$mol_locale = $mol_locale_mock;
|
|
8793
|
-
});
|
|
8794
|
-
})($ || ($ = {}));
|
|
8795
|
-
//mol/locale/locale.test.ts
|
|
8796
|
-
;
|
|
8797
|
-
"use strict";
|
|
8798
|
-
var $;
|
|
8799
8778
|
(function ($) {
|
|
8800
8779
|
class $mol_locale extends $mol_object {
|
|
8801
8780
|
static lang_default() {
|
|
@@ -8860,6 +8839,27 @@ var $;
|
|
|
8860
8839
|
;
|
|
8861
8840
|
"use strict";
|
|
8862
8841
|
var $;
|
|
8842
|
+
(function ($_1) {
|
|
8843
|
+
$mol_test_mocks.push($ => {
|
|
8844
|
+
class $mol_locale_mock extends $mol_locale {
|
|
8845
|
+
lang(next = 'en') { return next; }
|
|
8846
|
+
static source(lang) {
|
|
8847
|
+
return {};
|
|
8848
|
+
}
|
|
8849
|
+
}
|
|
8850
|
+
__decorate([
|
|
8851
|
+
$mol_mem
|
|
8852
|
+
], $mol_locale_mock.prototype, "lang", null);
|
|
8853
|
+
__decorate([
|
|
8854
|
+
$mol_mem_key
|
|
8855
|
+
], $mol_locale_mock, "source", null);
|
|
8856
|
+
$.$mol_locale = $mol_locale_mock;
|
|
8857
|
+
});
|
|
8858
|
+
})($ || ($ = {}));
|
|
8859
|
+
//mol/locale/locale.test.ts
|
|
8860
|
+
;
|
|
8861
|
+
"use strict";
|
|
8862
|
+
var $;
|
|
8863
8863
|
(function ($) {
|
|
8864
8864
|
function $mol_view_tree_trim_remarks(def) {
|
|
8865
8865
|
return def.transform(([node], sub) => (node.type === '-') ? null : node.clone({ sub: sub() }));
|