diff options
| author | Randy Morgan <[email protected]> | 2012-12-14 13:15:16 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-12-14 13:16:04 +0900 |
| commit | b1600deadaafdb396c5cc7ca9d448e8adab8ac11 (patch) | |
| tree | ba560b3826c22c51d37c515d6b0232bf2a4de94e /test/workbook/worksheet/tc_sheet_format_pr.rb | |
| parent | 890b404c8f748a332c8c0cbcfec6aa44b7384fa4 (diff) | |
| download | caxlsx-b1600deadaafdb396c5cc7ca9d448e8adab8ac11.tar.gz caxlsx-b1600deadaafdb396c5cc7ca9d448e8adab8ac11.zip | |
Added formula_values options and specs for sheet format pr.
This lets cache formula values and specify the default row height so
that iOS and Max OSX previews render properly
Diffstat (limited to 'test/workbook/worksheet/tc_sheet_format_pr.rb')
| -rw-r--r-- | test/workbook/worksheet/tc_sheet_format_pr.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/workbook/worksheet/tc_sheet_format_pr.rb b/test/workbook/worksheet/tc_sheet_format_pr.rb index 0f3a7703..6b19860f 100644 --- a/test/workbook/worksheet/tc_sheet_format_pr.rb +++ b/test/workbook/worksheet/tc_sheet_format_pr.rb @@ -71,9 +71,18 @@ class TestSheetFormatPr < Test::Unit::TestCase assert_raise(ArgumentError) { @sheet_format_pr.thick_bottom= :foo } assert_nothing_raised { @sheet_format_pr.thick_bottom = true } end + def test_to_xml_string doc = Nokogiri::XML(@sheet_format_pr.to_xml_string) assert doc.xpath("sheetFormatPr[@thickBottom='true']") + assert doc.xpath("sheetFormatPr[@baseColWidth=5]") + assert doc.xpath("sheetFormatPr[@default_col_width=7.2]") + assert doc.xpath("sheetFormatPr[@default_row_height=5.2]") + assert doc.xpath("sheetFormatPr[@custom_height='true']") + assert doc.xpath("sheetFormatPr[@zero_height='false']") + assert doc.xpath("sheetFormatPr[@thick_top='true']") + assert doc.xpath("sheetFormatPr[@outline_level_row=0]") + assert doc.xpath("sheetFormatPr[@outline_level_col=0]") end end |
