Skip to content

Commit 0ea81d5

Browse files
committed
[opfs] Full test suite, excluding auto-load
1 parent fa2618c commit 0ea81d5

File tree

5 files changed

+593
-210
lines changed

5 files changed

+593
-210
lines changed

test/unit/persisters/__snapshots__/mergeable.test.ts.snap

Lines changed: 347 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5276,6 +5276,353 @@ exports[`Persists to/from mockMergeableNoContentListener saves 2`] = `
52765276
]
52775277
`;
52785278

5279+
exports[`Persists to/from opfs autoSaves: delCell 1`] = `
5280+
[
5281+
[
5282+
{
5283+
"t1": [
5284+
{
5285+
"r1": [
5286+
{
5287+
"c1": [
5288+
1,
5289+
"Nn1JUF-----7JQY8",
5290+
1003668370,
5291+
],
5292+
"c2": [
5293+
"",
5294+
"Nn1JULF----7JQY8",
5295+
648462603,
5296+
],
5297+
},
5298+
"",
5299+
3357699233,
5300+
],
5301+
},
5302+
"",
5303+
2815185716,
5304+
],
5305+
},
5306+
"",
5307+
3170789466,
5308+
],
5309+
[
5310+
{
5311+
"v1": [
5312+
1,
5313+
"Nn1JUF----07JQY8",
5314+
1130939691,
5315+
],
5316+
"v2": [
5317+
2,
5318+
"Nn1JUI7----7JQY8",
5319+
3249802078,
5320+
],
5321+
},
5322+
"",
5323+
3437734041,
5324+
],
5325+
]
5326+
`;
5327+
5328+
exports[`Persists to/from opfs autoSaves: delValue 1`] = `
5329+
[
5330+
[
5331+
{
5332+
"t1": [
5333+
{
5334+
"r1": [
5335+
{
5336+
"c1": [
5337+
1,
5338+
"Nn1JUF-----7JQY8",
5339+
1003668370,
5340+
],
5341+
"c2": [
5342+
"",
5343+
"Nn1JULF----7JQY8",
5344+
648462603,
5345+
],
5346+
},
5347+
"",
5348+
3357699233,
5349+
],
5350+
},
5351+
"",
5352+
2815185716,
5353+
],
5354+
},
5355+
"",
5356+
3170789466,
5357+
],
5358+
[
5359+
{
5360+
"v1": [
5361+
1,
5362+
"Nn1JUF----07JQY8",
5363+
1130939691,
5364+
],
5365+
"v2": [
5366+
"",
5367+
"Nn1JUON----7JQY8",
5368+
3937611782,
5369+
],
5370+
},
5371+
"",
5372+
4130093655,
5373+
],
5374+
]
5375+
`;
5376+
5377+
exports[`Persists to/from opfs autoSaves: initial 1`] = `
5378+
[
5379+
[
5380+
{
5381+
"t1": [
5382+
{
5383+
"r1": [
5384+
{
5385+
"c1": [
5386+
1,
5387+
"Nn1JUF-----7JQY8",
5388+
1003668370,
5389+
],
5390+
},
5391+
"",
5392+
550994372,
5393+
],
5394+
},
5395+
"",
5396+
1072852846,
5397+
],
5398+
},
5399+
"",
5400+
1771939739,
5401+
],
5402+
[
5403+
{
5404+
"v1": [
5405+
1,
5406+
"Nn1JUF----07JQY8",
5407+
1130939691,
5408+
],
5409+
},
5410+
"",
5411+
3877632732,
5412+
],
5413+
]
5414+
`;
5415+
5416+
exports[`Persists to/from opfs autoSaves: setTables 1`] = `
5417+
[
5418+
[
5419+
{
5420+
"t1": [
5421+
{
5422+
"r1": [
5423+
{
5424+
"c1": [
5425+
1,
5426+
"Nn1JUF-----7JQY8",
5427+
1003668370,
5428+
],
5429+
"c2": [
5430+
2,
5431+
"Nn1JUF----17JQY8",
5432+
1804136345,
5433+
],
5434+
},
5435+
"",
5436+
3439185877,
5437+
],
5438+
},
5439+
"",
5440+
855391547,
5441+
],
5442+
},
5443+
"",
5444+
262414121,
5445+
],
5446+
[
5447+
{
5448+
"v1": [
5449+
1,
5450+
"Nn1JUF----07JQY8",
5451+
1130939691,
5452+
],
5453+
},
5454+
"",
5455+
3877632732,
5456+
],
5457+
]
5458+
`;
5459+
5460+
exports[`Persists to/from opfs autoSaves: setValues 1`] = `
5461+
[
5462+
[
5463+
{
5464+
"t1": [
5465+
{
5466+
"r1": [
5467+
{
5468+
"c1": [
5469+
1,
5470+
"Nn1JUF-----7JQY8",
5471+
1003668370,
5472+
],
5473+
"c2": [
5474+
2,
5475+
"Nn1JUF----17JQY8",
5476+
1804136345,
5477+
],
5478+
},
5479+
"",
5480+
3439185877,
5481+
],
5482+
},
5483+
"",
5484+
855391547,
5485+
],
5486+
},
5487+
"",
5488+
262414121,
5489+
],
5490+
[
5491+
{
5492+
"v1": [
5493+
1,
5494+
"Nn1JUF----07JQY8",
5495+
1130939691,
5496+
],
5497+
"v2": [
5498+
2,
5499+
"Nn1JUI7----7JQY8",
5500+
3249802078,
5501+
],
5502+
},
5503+
"",
5504+
3437734041,
5505+
],
5506+
]
5507+
`;
5508+
5509+
exports[`Persists to/from opfs loads 1`] = `
5510+
[
5511+
[
5512+
{
5513+
"t1": [
5514+
{
5515+
"r1": [
5516+
{
5517+
"c1": [
5518+
1,
5519+
"_",
5520+
4065945599,
5521+
],
5522+
},
5523+
"",
5524+
1279994494,
5525+
],
5526+
},
5527+
"",
5528+
1293085726,
5529+
],
5530+
},
5531+
"",
5532+
4033596827,
5533+
],
5534+
[
5535+
{
5536+
"v1": [
5537+
1,
5538+
"_",
5539+
4065945599,
5540+
],
5541+
},
5542+
"",
5543+
2304392760,
5544+
],
5545+
]
5546+
`;
5547+
5548+
exports[`Persists to/from opfs saves 1`] = `
5549+
[
5550+
[
5551+
{
5552+
"t1": [
5553+
{
5554+
"r1": [
5555+
{
5556+
"c1": [
5557+
1,
5558+
"Nn1JUF-----7JQY8",
5559+
1003668370,
5560+
],
5561+
},
5562+
"",
5563+
550994372,
5564+
],
5565+
},
5566+
"",
5567+
1072852846,
5568+
],
5569+
},
5570+
"",
5571+
1771939739,
5572+
],
5573+
[
5574+
{
5575+
"v1": [
5576+
1,
5577+
"Nn1JUF----07JQY8",
5578+
1130939691,
5579+
],
5580+
},
5581+
"",
5582+
3877632732,
5583+
],
5584+
]
5585+
`;
5586+
5587+
exports[`Persists to/from opfs saves 2`] = `
5588+
[
5589+
[
5590+
{
5591+
"t1": [
5592+
{
5593+
"r1": [
5594+
{
5595+
"c1": [
5596+
1,
5597+
"Nn1JUF-----7JQY8",
5598+
1003668370,
5599+
],
5600+
},
5601+
"",
5602+
550994372,
5603+
],
5604+
},
5605+
"",
5606+
1072852846,
5607+
],
5608+
},
5609+
"",
5610+
1771939739,
5611+
],
5612+
[
5613+
{
5614+
"v1": [
5615+
1,
5616+
"Nn1JUF----07JQY8",
5617+
1130939691,
5618+
],
5619+
},
5620+
"",
5621+
3877632732,
5622+
],
5623+
]
5624+
`;
5625+
52795626
exports[`Persists to/from pglite autoLoads 1`] = `
52805627
[
52815628
[

0 commit comments

Comments
 (0)