Skip to content

Commit

Permalink
hyperlink_stress_test_2011 and text_and_numbers
Browse files Browse the repository at this point in the history
ootest script added, files to be added later
  • Loading branch information
SheetJSDev committed Apr 14, 2014
1 parent 5591611 commit b422ac3
Show file tree
Hide file tree
Showing 12 changed files with 240 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ xlrd
roo
spreadsheet-parsexlsx
oo34xml
ootest
# Files
apachepoi_*.x*
excel-reader-xlsx_*.x*
Expand All @@ -19,3 +20,4 @@ xlrd_*.x*
roo_*.x*
spreadsheet-parsexlsx_*.x*
oo34xml_*.x*
ootest_*.x*
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,7 @@ spreadsheet-parsexlsx:
oo34xml:
$(GSVN) https://svn.apache.org/repos/asf/openoffice/branches/AOO34/main/testautomation/xml/optional/input/calc/ExcelXML $@
$(CPUP)

.PHONY: ootest
ootest:
bash tests/ootest.sh
Binary file added hyperlink_stress_test_2011.xls
Binary file not shown.
Binary file added hyperlink_stress_test_2011.xlsb
Binary file not shown.
Binary file added hyperlink_stress_test_2011.xlsx
Binary file not shown.
87 changes: 87 additions & 0 deletions hyperlink_stress_test_2011.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<?xml version="1.0"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:html="http://www.w3.org/TR/REC-html40">
<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
<Author>God</Author>
<LastAuthor>God</LastAuthor>
<Created>2014-04-10T09:10:27Z</Created>
<LastSaved>2014-04-10T09:14:42Z</LastSaved>
<Version>14.0</Version>
</DocumentProperties>
<OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
<AllowPNG/>
</OfficeDocumentSettings>
<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
<WindowHeight>15260</WindowHeight>
<WindowWidth>25600</WindowWidth>
<WindowTopX>0</WindowTopX>
<WindowTopY>0</WindowTopY>
<ProtectStructure>False</ProtectStructure>
<ProtectWindows>False</ProtectWindows>
</ExcelWorkbook>
<Styles>
<Style ss:ID="Default" ss:Name="Normal">
<Alignment ss:Vertical="Bottom"/>
<Borders/>
<Font ss:FontName="Calibri" x:CharSet="134" x:Family="Swiss" ss:Size="12"
ss:Color="#000000"/>
<Interior/>
<NumberFormat/>
<Protection/>
</Style>
<Style ss:ID="s62" ss:Name="Hyperlink">
<Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="12" ss:Color="#0000D4"
ss:Underline="Single"/>
</Style>
</Styles>
<Worksheet ss:Name="Sheet1">
<Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="7" x:FullColumns="1"
x:FullRows="1" ss:DefaultColumnWidth="65" ss:DefaultRowHeight="15">
<Row>
<Cell ss:StyleID="s62" ss:HRef="http://www.sheetjs.com"><Data ss:Type="String">http://www.sheetjs.com</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s62" ss:HRef="http://oss.sheetjs.com"><Data ss:Type="String">OSS</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s62" ss:HRef="http://oss.sheetjs.com#foo"><Data
ss:Type="String">OSS#foo</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s62" ss:HRef="mailto:dev@sheetjs.com"><Data ss:Type="String">dev at sheetjs dot com</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s62" ss:HRef="mailto:dev@sheetjs.com?subject=hyperlink"><Data
ss:Type="String">dev at sheetjs.com subject hyperlink</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s62" ss:HRef="../../sheetjs/Documents/Test.xlsx"><Data
ss:Type="String">file://localhost/Users/sheetjs/Documents/Test.xlsx</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s62" ss:HRef="http://sheetjs.com"
x:HRefScreenTip="foo bar baz"><Data ss:Type="String">http://sheetjs.com screentip foo bar baz</Data></Cell>
</Row>
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
<Print>
<ValidPrinterInfo/>
<HorizontalResolution>-4</HorizontalResolution>
<VerticalResolution>-4</VerticalResolution>
</Print>
<PageLayoutZoom>0</PageLayoutZoom>
<Selected/>
<Panes>
<Pane>
<Number>3</Number>
<ActiveRow>7</ActiveRow>
</Pane>
</Panes>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
</Worksheet>
</Workbook>
12 changes: 12 additions & 0 deletions tests/ootest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
# ootest.sh -- Download from http://www.openoffice.org/sc/testdocs/filetype/
# Copyright (C) 2014 SheetJS

mkdir -p ootest
curl http://www.openoffice.org/sc/testdocs/ | grep -o '"[^"]*xls"' | awk -F'"' '{print $2}' | while read x; do
y=${x##*/};
if [ ! -e ootest_"$y" ]; then
curl -o "ootest_$y" "http://www.openoffice.org/sc/testdocs/$x"
fi
done

Binary file added text_and_numbers.txt
Binary file not shown.
Binary file added text_and_numbers.xls
Binary file not shown.
Binary file added text_and_numbers.xlsb
Binary file not shown.
Binary file added text_and_numbers.xlsx
Binary file not shown.
135 changes: 135 additions & 0 deletions text_and_numbers.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:html="http://www.w3.org/TR/REC-html40">
<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
<Author>Windows User</Author>
<LastAuthor>Windows User</LastAuthor>
<Created>2014-04-06T08:36:58Z</Created>
<LastSaved>2014-04-06T08:39:18Z</LastSaved>
<Version>14.00</Version>
</DocumentProperties>
<OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
<AllowPNG/>
</OfficeDocumentSettings>
<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
<WindowHeight>6795</WindowHeight>
<WindowWidth>18075</WindowWidth>
<WindowTopX>360</WindowTopX>
<WindowTopY>45</WindowTopY>
<ProtectStructure>False</ProtectStructure>
<ProtectWindows>False</ProtectWindows>
</ExcelWorkbook>
<Styles>
<Style ss:ID="Default" ss:Name="Normal">
<Alignment ss:Vertical="Bottom"/>
<Borders/>
<Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#000000"/>
<Interior/>
<NumberFormat/>
<Protection/>
</Style>
<Style ss:ID="s16" ss:Name="Currency">
<NumberFormat
ss:Format="_(&quot;$&quot;* #,##0.00_);_(&quot;$&quot;* \(#,##0.00\);_(&quot;$&quot;* &quot;-&quot;??_);_(@_)"/>
</Style>
<Style ss:ID="s17" ss:Name="Percent">
<NumberFormat ss:Format="0%"/>
</Style>
<Style ss:ID="s18">
<Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#000000"
ss:Bold="1"/>
</Style>
<Style ss:ID="s19" ss:Parent="s16">
<Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#000000"/>
</Style>
<Style ss:ID="s20" ss:Parent="s17">
<Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#FF0000"/>
</Style>
<Style ss:ID="s21">
<Interior/>
</Style>
</Styles>
<Worksheet ss:Name="Sheet1">
<Table ss:ExpandedColumnCount="5" ss:ExpandedRowCount="5" x:FullColumns="1"
x:FullRows="1" ss:DefaultRowHeight="15">
<Column ss:Index="3" ss:Width="55.5" ss:Span="1"/>
<Row>
<Cell><Data ss:Type="String">English</Data></Cell>
<Cell><Data ss:Type="String">Hello</Data></Cell>
<Cell><Data ss:Type="String">World</Data></Cell>
</Row>
<Row>
<Cell><Data ss:Type="String">Hebrew</Data></Cell>
<Cell><Data ss:Type="String">שלום</Data></Cell>
<Cell><Data ss:Type="String">עולם</Data></Cell>
</Row>
<Row>
<Cell ss:Index="2" ss:StyleID="s18"/>
</Row>
<Row>
<Cell><Data ss:Type="Number">1337</Data></Cell>
<Cell><Data ss:Type="Number">13.37</Data></Cell>
<Cell ss:StyleID="s19"><Data ss:Type="Number">1337</Data></Cell>
</Row>
<Row>
<Cell ss:Index="3" ss:StyleID="s21"/>
<Cell ss:StyleID="s19"/>
<Cell ss:StyleID="s20"/>
</Row>
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
<PageSetup>
<Header x:Margin="0.3"/>
<Footer x:Margin="0.3"/>
<PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
</PageSetup>
<Print>
<ValidPrinterInfo/>
<HorizontalResolution>600</HorizontalResolution>
<VerticalResolution>600</VerticalResolution>
</Print>
<Selected/>
<Panes>
<Pane>
<Number>3</Number>
<ActiveRow>4</ActiveRow>
<ActiveCol>7</ActiveCol>
</Pane>
</Panes>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
</Worksheet>
<Worksheet ss:Name="Sheet2">
<Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
x:FullRows="1" ss:DefaultRowHeight="15">
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
<PageSetup>
<Header x:Margin="0.3"/>
<Footer x:Margin="0.3"/>
<PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
</PageSetup>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
</Worksheet>
<Worksheet ss:Name="Sheet3">
<Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
x:FullRows="1" ss:DefaultRowHeight="15">
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
<PageSetup>
<Header x:Margin="0.3"/>
<Footer x:Margin="0.3"/>
<PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
</PageSetup>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
</Worksheet>
</Workbook>

0 comments on commit b422ac3

Please sign in to comment.