Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FW] Master xlsx tests wait lul #5170

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
263 changes: 35 additions & 228 deletions tests/xlsx/__snapshots__/xlsx_export.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -29024,10 +29024,7 @@ exports[`Test XLSX export formulas All non-exportable formulas 1`] = `
</cols>
<sheetData>
<row r="1">
<c r="A1" t="s">
<v>
0
</v>
<c r="A1">
</c>
</row>
<row r="2">
Expand All @@ -29038,9 +29035,12 @@ exports[`Test XLSX export formulas All non-exportable formulas 1`] = `
</c>
</row>
<row r="3">
<c r="A3" t="s">
<c r="A3" t="n">
<f>
SUM(A1,ABS(100))
</f>
<v>
1
100
</v>
</c>
<c r="B3">
Expand Down Expand Up @@ -29130,9 +29130,9 @@ exports[`Test XLSX export formulas All non-exportable formulas 1`] = `
</c>
</row>
<row r="9">
<c r="A9" t="s">
<c r="A9" t="b">
<v>
2
1
</v>
</c>
</row>
Expand Down Expand Up @@ -29221,12 +29221,12 @@ exports[`Test XLSX export formulas All non-exportable formulas 1`] = `
</c>
</row>
<row r="22">
<c r="A22" t="str">
<c r="A22" t="n">
<f>
SUM(A3:Z3)
</f>
<v>
#NAME?
100
</v>
</c>
</row>
Expand All @@ -29236,7 +29236,7 @@ exports[`Test XLSX export formulas All non-exportable formulas 1`] = `
SUM(A3:A100)
</f>
<v>
#NAME?
#CYCLE
</v>
</c>
</row>
Expand Down Expand Up @@ -29601,22 +29601,7 @@ exports[`Test XLSX export formulas All non-exportable formulas 1`] = `
"path": "xl/styles.xml",
},
{
"content": "<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="3" uniqueCount="3">
<si>
<t>
=WAIT(100)
</t>
</si>
<si>
<t>
=sum(A1,wait(100))
</t>
</si>
<si>
<t>
=LT(4;42)
</t>
</si>
"content": "<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="0" uniqueCount="0">
</sst>",
"contentType": "sharedStrings",
"path": "xl/sharedStrings.xml",
Expand Down Expand Up @@ -29662,199 +29647,6 @@ exports[`Test XLSX export formulas All non-exportable formulas 1`] = `
}
`;

exports[`Test XLSX export formulas Multi-Sheet export async functions without cross references across sheets 1`] = `
{
"files": [
{
"content": "<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
<sheets>
<sheet state="visible" name="Sheet1" sheetId="1" r:id="rId1"/>
<sheet state="visible" name="Sheet2" sheetId="2" r:id="rId2"/>
</sheets>
</workbook>",
"contentType": "workbook",
"path": "xl/workbook.xml",
},
{
"content": "<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
<sheetViews>
<sheetView showGridLines="1" workbookViewId="0">
</sheetView>
</sheetViews>
<sheetFormatPr defaultRowHeight="17.25" defaultColWidth="13.73"/>
<cols>
<col min="1" max="1" width="13.73" customWidth="1" hidden="0"/>
<col min="2" max="2" width="13.73" customWidth="1" hidden="0"/>
<col min="3" max="3" width="13.73" customWidth="1" hidden="0"/>
<col min="4" max="4" width="13.73" customWidth="1" hidden="0"/>
<col min="5" max="5" width="13.73" customWidth="1" hidden="0"/>
<col min="6" max="6" width="13.73" customWidth="1" hidden="0"/>
<col min="7" max="7" width="13.73" customWidth="1" hidden="0"/>
<col min="8" max="8" width="13.73" customWidth="1" hidden="0"/>
<col min="9" max="9" width="13.73" customWidth="1" hidden="0"/>
<col min="10" max="10" width="13.73" customWidth="1" hidden="0"/>
<col min="11" max="11" width="13.73" customWidth="1" hidden="0"/>
<col min="12" max="12" width="13.73" customWidth="1" hidden="0"/>
<col min="13" max="13" width="13.73" customWidth="1" hidden="0"/>
<col min="14" max="14" width="13.73" customWidth="1" hidden="0"/>
<col min="15" max="15" width="13.73" customWidth="1" hidden="0"/>
<col min="16" max="16" width="13.73" customWidth="1" hidden="0"/>
<col min="17" max="17" width="13.73" customWidth="1" hidden="0"/>
<col min="18" max="18" width="13.73" customWidth="1" hidden="0"/>
<col min="19" max="19" width="13.73" customWidth="1" hidden="0"/>
<col min="20" max="20" width="13.73" customWidth="1" hidden="0"/>
<col min="21" max="21" width="13.73" customWidth="1" hidden="0"/>
<col min="22" max="22" width="13.73" customWidth="1" hidden="0"/>
<col min="23" max="23" width="13.73" customWidth="1" hidden="0"/>
<col min="24" max="24" width="13.73" customWidth="1" hidden="0"/>
<col min="25" max="25" width="13.73" customWidth="1" hidden="0"/>
<col min="26" max="26" width="13.73" customWidth="1" hidden="0"/>
</cols>
<sheetData>
</sheetData>
</worksheet>",
"contentType": "sheet",
"path": "xl/worksheets/sheet0.xml",
},
{
"content": "<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
<sheetViews>
<sheetView showGridLines="1" workbookViewId="0">
</sheetView>
</sheetViews>
<sheetFormatPr defaultRowHeight="17.25" defaultColWidth="13.73"/>
<cols>
<col min="1" max="1" width="13.73" customWidth="1" hidden="0"/>
<col min="2" max="2" width="13.73" customWidth="1" hidden="0"/>
<col min="3" max="3" width="13.73" customWidth="1" hidden="0"/>
<col min="4" max="4" width="13.73" customWidth="1" hidden="0"/>
<col min="5" max="5" width="13.73" customWidth="1" hidden="0"/>
<col min="6" max="6" width="13.73" customWidth="1" hidden="0"/>
<col min="7" max="7" width="13.73" customWidth="1" hidden="0"/>
<col min="8" max="8" width="13.73" customWidth="1" hidden="0"/>
<col min="9" max="9" width="13.73" customWidth="1" hidden="0"/>
<col min="10" max="10" width="13.73" customWidth="1" hidden="0"/>
<col min="11" max="11" width="13.73" customWidth="1" hidden="0"/>
<col min="12" max="12" width="13.73" customWidth="1" hidden="0"/>
<col min="13" max="13" width="13.73" customWidth="1" hidden="0"/>
<col min="14" max="14" width="13.73" customWidth="1" hidden="0"/>
<col min="15" max="15" width="13.73" customWidth="1" hidden="0"/>
<col min="16" max="16" width="13.73" customWidth="1" hidden="0"/>
<col min="17" max="17" width="13.73" customWidth="1" hidden="0"/>
<col min="18" max="18" width="13.73" customWidth="1" hidden="0"/>
<col min="19" max="19" width="13.73" customWidth="1" hidden="0"/>
<col min="20" max="20" width="13.73" customWidth="1" hidden="0"/>
<col min="21" max="21" width="13.73" customWidth="1" hidden="0"/>
<col min="22" max="22" width="13.73" customWidth="1" hidden="0"/>
<col min="23" max="23" width="13.73" customWidth="1" hidden="0"/>
<col min="24" max="24" width="13.73" customWidth="1" hidden="0"/>
<col min="25" max="25" width="13.73" customWidth="1" hidden="0"/>
<col min="26" max="26" width="13.73" customWidth="1" hidden="0"/>
</cols>
<sheetData>
<row r="1">
<c r="A1">
<v>
5
</v>
</c>
</row>
</sheetData>
</worksheet>",
"contentType": "sheet",
"path": "xl/worksheets/sheet1.xml",
},
{
"content": "<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
<numFmts count="0">
</numFmts>
<fonts count="1">
<font>
<sz val="10"/>
<color rgb="000000"/>
<name val="Arial"/>
</font>
</fonts>
<fills count="2">
<fill>
<patternFill patternType="none"/>
</fill>
<fill>
<patternFill patternType="gray125"/>
</fill>
</fills>
<borders count="1">
<border>
<left>
</left>
<right>
</right>
<top>
</top>
<bottom>
</bottom>
<diagonal>
</diagonal>
</border>
</borders>
<cellXfs count="1">
<xf numFmtId="0" fillId="0" fontId="0" borderId="0"/>
</cellXfs>
<dxfs count="0">
</dxfs>
</styleSheet>",
"contentType": "styles",
"path": "xl/styles.xml",
},
{
"content": "<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="0" uniqueCount="0">
</sst>",
"contentType": "sharedStrings",
"path": "xl/sharedStrings.xml",
},
{
"content": "<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
<Relationship Id="rId1" Target="worksheets/sheet0.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"/>
<Relationship Id="rId2" Target="worksheets/sheet1.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"/>
<Relationship Id="rId3" Target="sharedStrings.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings"/>
<Relationship Id="rId4" Target="styles.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles"/>
</Relationships>",
"contentType": undefined,
"path": "xl/_rels/workbook.xml.rels",
},
{
"content": "<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
<Default Extension="avif" ContentType="image/avif"/>
<Default Extension="bmp" ContentType="image/bmp"/>
<Default Extension="gif" ContentType="image/gif"/>
<Default Extension="ico" ContentType="image/vnd.microsoft.icon"/>
<Default Extension="jpeg" ContentType="image/jpeg"/>
<Default Extension="png" ContentType="image/png"/>
<Default Extension="tiff" ContentType="image/tiff"/>
<Default Extension="webp" ContentType="image/webp"/>
<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
<Default Extension="xml" ContentType="application/xml"/>
<Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" PartName="/xl/workbook.xml"/>
<Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet0.xml"/>
<Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet1.xml"/>
<Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" PartName="/xl/styles.xml"/>
<Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" PartName="/xl/sharedStrings.xml"/>
</Types>",
"contentType": undefined,
"path": "[Content_Types].xml",
},
{
"content": "<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/>
</Relationships>",
"contentType": undefined,
"path": "_rels/.rels",
},
],
"name": "my_spreadsheet.xlsx",
}
`;

exports[`Test XLSX export formulas Multi-Sheet export functions with cross references across sheets 1`] = `
{
"files": [
Expand Down Expand Up @@ -29914,6 +29706,13 @@ exports[`Test XLSX export formulas Multi-Sheet export functions with cross refer
</v>
</c>
</row>
<row r="2">
<c r="A2">
<v>
2
</v>
</c>
</row>
</sheetData>
</worksheet>",
"contentType": "sheet",
Expand Down Expand Up @@ -29962,6 +29761,16 @@ exports[`Test XLSX export formulas Multi-Sheet export functions with cross refer
</v>
</c>
</row>
<row r="2">
<c r="A2" t="n">
<f>
SUM(Sheet1!A2)
</f>
<v>
2
</v>
</c>
</row>
</sheetData>
</worksheet>",
"contentType": "sheet",
Expand Down Expand Up @@ -32162,9 +31971,12 @@ exports[`Test XLSX export formulas Multi-Sheets exportable functions 1`] = `
</cols>
<sheetData>
<row r="1">
<c r="A1" t="s">
<c r="A1" t="n">
<f>
ABS(10)
</f>
<v>
20
10
</v>
</c>
</row>
Expand Down Expand Up @@ -32216,7 +32028,7 @@ exports[`Test XLSX export formulas Multi-Sheets exportable functions 1`] = `
"path": "xl/styles.xml",
},
{
"content": "<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="21" uniqueCount="21">
"content": "<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="20" uniqueCount="20">
<si>
<t>
evaluation
Expand Down Expand Up @@ -32317,11 +32129,6 @@ exports[`Test XLSX export formulas Multi-Sheets exportable functions 1`] = `
&gt;25
</t>
</si>
<si>
<t>
=wait(10)
</t>
</si>
</sst>",
"contentType": "sharedStrings",
"path": "xl/sharedStrings.xml",
Expand Down
Loading