Browse Source

Add test for opening workbooks containing chartsheets

Brian Smith 10 years ago
parent
commit
93baff76b5
2 changed files with 6 additions and 0 deletions
  1. 6 0
      file_test.go
  2. BIN
      testdocs/testchartsheet.xlsx

+ 6 - 0
file_test.go

@@ -31,6 +31,12 @@ func (l *FileSuite) TestOpenFileWithoutStyleAndSharedStrings(c *C) {
 	c.Assert(xlsxFile, NotNil)
 	c.Assert(xlsxFile, NotNil)
 }
 }
 
 
+func (l *FileSuite) TestOpenFileWithChartsheet(c *C) {
+	xlsxFile, error := OpenFile("./testdocs/testchartsheet.xlsx")
+	c.Assert(error, IsNil)
+	c.Assert(xlsxFile, NotNil)
+}
+
 // Test that we can correctly extract a reference table from the
 // Test that we can correctly extract a reference table from the
 // sharedStrings.xml file embedded in the XLSX file and return a
 // sharedStrings.xml file embedded in the XLSX file and return a
 // reference table of string values from it.
 // reference table of string values from it.

BIN
testdocs/testchartsheet.xlsx