write_xlsx 0.51.0 → 0.54.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. data/.gitignore +39 -0
  2. data/Gemfile +4 -14
  3. data/LICENSE.txt +3 -1
  4. data/README.rdoc +5 -0
  5. data/Rakefile +4 -71
  6. data/examples/chart_radar.rb +127 -0
  7. data/examples/chart_secondary_axis.rb +1 -1
  8. data/lib/write_xlsx/chart/area.rb +7 -18
  9. data/lib/write_xlsx/chart/bar.rb +20 -23
  10. data/lib/write_xlsx/chart/column.rb +7 -20
  11. data/lib/write_xlsx/chart/radar.rb +94 -0
  12. data/lib/write_xlsx/chart/stock.rb +6 -0
  13. data/lib/write_xlsx/chart.rb +317 -116
  14. data/lib/write_xlsx/package/xml_writer_simple.rb +2 -2
  15. data/lib/write_xlsx/version.rb +5 -0
  16. data/test/chart/test_write_a_latin.rb +22 -0
  17. data/test/chart/test_write_auto.rb +1 -1
  18. data/test/chart/test_write_ax_id.rb +1 -1
  19. data/test/chart/test_write_ax_pos.rb +1 -1
  20. data/test/chart/test_write_cross_ax.rb +1 -1
  21. data/test/chart/test_write_crosses.rb +1 -1
  22. data/test/chart/test_write_d_lbls.rb +18 -18
  23. data/test/chart/test_write_idx.rb +1 -1
  24. data/test/chart/test_write_label_align.rb +1 -1
  25. data/test/chart/test_write_label_offset.rb +1 -1
  26. data/test/chart/test_write_lang.rb +1 -1
  27. data/test/chart/test_write_layout.rb +1 -1
  28. data/test/chart/test_write_legend.rb +1 -1
  29. data/test/chart/test_write_legend_pos.rb +1 -1
  30. data/test/chart/test_write_major_gridlines.rb +2 -2
  31. data/test/chart/test_write_marker.rb +1 -1
  32. data/test/chart/test_write_marker_size.rb +1 -1
  33. data/test/chart/test_write_marker_value.rb +1 -1
  34. data/test/chart/test_write_num_cache.rb +1 -1
  35. data/test/chart/test_write_number_format.rb +40 -2
  36. data/test/chart/test_write_order.rb +1 -1
  37. data/test/chart/test_write_orientation.rb +1 -1
  38. data/test/chart/test_write_page_margins.rb +1 -1
  39. data/test/chart/test_write_page_setup.rb +1 -1
  40. data/test/chart/test_write_plot_vis_only.rb +1 -1
  41. data/test/chart/test_write_pt_count.rb +1 -1
  42. data/test/chart/test_write_style.rb +1 -1
  43. data/test/chart/test_write_symbol.rb +1 -1
  44. data/test/chart/test_write_tick_lbl_pos.rb +1 -1
  45. data/test/drawing/test_write_a_graphic_frame_locks.rb +1 -1
  46. data/test/drawing/test_write_c_chart.rb +1 -1
  47. data/test/drawing/test_write_c_nv_graphic_frame_pr.rb +2 -2
  48. data/test/drawing/test_write_c_nv_pr.rb +1 -1
  49. data/test/drawing/test_write_ext.rb +1 -1
  50. data/test/drawing/test_write_pos.rb +1 -1
  51. data/test/drawing/test_write_xfrm_extension.rb +1 -1
  52. data/test/drawing/test_write_xfrm_offset.rb +1 -1
  53. data/test/helper.rb +1 -1
  54. data/test/package/content_types/test_write_default.rb +1 -1
  55. data/test/package/content_types/test_write_override.rb +1 -1
  56. data/test/package/table/test_write_auto_filter.rb +1 -1
  57. data/test/package/table/test_write_table_column.rb +1 -1
  58. data/test/package/table/test_write_table_style_info.rb +1 -1
  59. data/test/package/vml/test_write_fill.rb +1 -1
  60. data/test/package/vml/test_write_idmap.rb +1 -1
  61. data/test/package/vml/test_write_move_with_cells.rb +1 -1
  62. data/test/package/vml/test_write_path.rb +2 -2
  63. data/test/package/vml/test_write_shadow.rb +1 -1
  64. data/test/package/vml/test_write_shapelayout.rb +1 -1
  65. data/test/package/vml/test_write_shapetype.rb +1 -1
  66. data/test/package/vml/test_write_size_with_cells.rb +1 -1
  67. data/test/package/vml/test_write_stroke.rb +1 -1
  68. data/test/perl_output/chart_radar.xlsx +0 -0
  69. data/test/perl_output/chart_secondary_axis.xlsx +0 -0
  70. data/test/regression/test_chart_axis22.rb +45 -0
  71. data/test/regression/test_chart_axis23.rb +46 -0
  72. data/test/regression/test_chart_axis24.rb +46 -0
  73. data/test/regression/test_chart_font01.rb +54 -0
  74. data/test/regression/test_chart_font02.rb +56 -0
  75. data/test/regression/test_chart_font03.rb +59 -0
  76. data/test/regression/test_chart_font04.rb +57 -0
  77. data/test/regression/test_chart_font05.rb +54 -0
  78. data/test/regression/test_chart_font06.rb +84 -0
  79. data/test/regression/test_chart_radar01.rb +39 -0
  80. data/test/regression/test_chart_radar02.rb +43 -0
  81. data/test/regression/test_chart_radar03.rb +43 -0
  82. data/test/regression/test_escapes04.rb +30 -0
  83. data/test/regression/test_escapes05.rb +31 -0
  84. data/test/regression/test_rich_string01.rb +1 -1
  85. data/test/regression/test_rich_string02.rb +1 -1
  86. data/test/regression/test_rich_string03.rb +1 -1
  87. data/test/regression/test_rich_string04.rb +1 -1
  88. data/test/regression/test_rich_string05.rb +1 -1
  89. data/test/regression/test_rich_string06.rb +1 -1
  90. data/test/regression/test_rich_string07.rb +1 -1
  91. data/test/regression/test_rich_string08.rb +1 -1
  92. data/test/regression/test_rich_string09.rb +1 -1
  93. data/test/regression/test_rich_string10.rb +1 -1
  94. data/test/regression/test_rich_string11.rb +1 -1
  95. data/test/regression/test_shape_connect01.rb +1 -1
  96. data/test/regression/test_shape_connect02.rb +1 -1
  97. data/test/regression/test_shape_connect03.rb +1 -1
  98. data/test/regression/test_shape_connect04.rb +1 -1
  99. data/test/regression/xlsx_files/chart_axis22.xlsx +0 -0
  100. data/test/regression/xlsx_files/chart_axis23.xlsx +0 -0
  101. data/test/regression/xlsx_files/chart_axis24.xlsx +0 -0
  102. data/test/regression/xlsx_files/chart_font01.xlsx +0 -0
  103. data/test/regression/xlsx_files/chart_font02.xlsx +0 -0
  104. data/test/regression/xlsx_files/chart_font03.xlsx +0 -0
  105. data/test/regression/xlsx_files/chart_font04.xlsx +0 -0
  106. data/test/regression/xlsx_files/chart_font05.xlsx +0 -0
  107. data/test/regression/xlsx_files/chart_font06.xlsx +0 -0
  108. data/test/regression/xlsx_files/chart_radar01.xlsx +0 -0
  109. data/test/regression/xlsx_files/chart_radar02.xlsx +0 -0
  110. data/test/regression/xlsx_files/chart_radar03.xlsx +0 -0
  111. data/test/regression/xlsx_files/escapes04.xlsx +0 -0
  112. data/test/regression/xlsx_files/escapes05.xlsx +0 -0
  113. data/test/test_example_match.rb +119 -1
  114. data/test/test_xml_writer_simple.rb +4 -4
  115. data/test/worksheet/test_write_autofilter.rb +21 -21
  116. data/test/worksheet/test_write_brk.rb +1 -1
  117. data/test/worksheet/test_write_col_breaks.rb +2 -2
  118. data/test/worksheet/test_write_col_info.rb +6 -6
  119. data/test/worksheet/test_write_custom_filter.rb +1 -1
  120. data/test/worksheet/test_write_custom_filters.rb +2 -2
  121. data/test/worksheet/test_write_dimension.rb +9 -9
  122. data/test/worksheet/test_write_ext.rb +1 -1
  123. data/test/worksheet/test_write_ext_lst.rb +1 -1
  124. data/test/worksheet/test_write_filter.rb +1 -1
  125. data/test/worksheet/test_write_filter_column.rb +1 -1
  126. data/test/worksheet/test_write_filters.rb +3 -3
  127. data/test/worksheet/test_write_hyperlink.rb +4 -4
  128. data/test/worksheet/test_write_hyperlinks.rb +2 -2
  129. data/test/worksheet/test_write_legacy_drawing.rb +1 -1
  130. data/test/worksheet/test_write_merge_cell.rb +1 -1
  131. data/test/worksheet/test_write_mx_plv.rb +1 -1
  132. data/test/worksheet/test_write_page_margins.rb +11 -11
  133. data/test/worksheet/test_write_page_set_up_pr.rb +1 -1
  134. data/test/worksheet/test_write_page_setup.rb +4 -4
  135. data/test/worksheet/test_write_pane.rb +14 -14
  136. data/test/worksheet/test_write_phonetic_pr.rb +1 -1
  137. data/test/worksheet/test_write_print_options.rb +5 -5
  138. data/test/worksheet/test_write_row_breaks.rb +2 -2
  139. data/test/worksheet/test_write_row_element.rb +1 -1
  140. data/test/worksheet/test_write_selection.rb +1 -1
  141. data/test/worksheet/test_write_sheet_calc_pr.rb +1 -1
  142. data/test/worksheet/test_write_sheet_data.rb +1 -1
  143. data/test/worksheet/test_write_sheet_format_pr.rb +1 -1
  144. data/test/worksheet/test_write_sheet_pr.rb +3 -3
  145. data/test/worksheet/test_write_sheet_protection.rb +18 -18
  146. data/test/worksheet/test_write_sheet_view.rb +6 -6
  147. data/test/worksheet/test_write_sheet_view1.rb +6 -6
  148. data/test/worksheet/test_write_sheet_view2.rb +5 -5
  149. data/test/worksheet/test_write_sheet_view3.rb +8 -8
  150. data/test/worksheet/test_write_sheet_view4.rb +8 -8
  151. data/test/worksheet/test_write_sheet_view5.rb +7 -7
  152. data/test/worksheet/test_write_sheet_view6.rb +4 -4
  153. data/test/worksheet/test_write_sheet_view7.rb +6 -6
  154. data/test/worksheet/test_write_sheet_view8.rb +4 -4
  155. data/test/worksheet/test_write_sheet_view9.rb +4 -4
  156. data/test/worksheet/test_write_tab_color.rb +1 -1
  157. data/write_xlsx.gemspec +18 -935
  158. metadata +881 -32
  159. data/VERSION +0 -1
  160. data/test/chart/test_write_num_fmt.rb +0 -16
@@ -14,7 +14,7 @@ class TestWriteSheetView3 < Test::Unit::TestCase
14
14
  @worksheet.split_panes(15)
15
15
  @worksheet.__send__('write_sheet_views')
16
16
  result = @worksheet.instance_variable_get(:@writer).string
17
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="600" topLeftCell="A2" /><selection pane="bottomLeft" activeCell="A2" sqref="A2" /></sheetView></sheetViews>'
17
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="600" topLeftCell="A2"/><selection pane="bottomLeft" activeCell="A2" sqref="A2"/></sheetView></sheetViews>'
18
18
  assert_equal(expected, result)
19
19
  end
20
20
 
@@ -23,7 +23,7 @@ class TestWriteSheetView3 < Test::Unit::TestCase
23
23
  @worksheet.split_panes(30)
24
24
  @worksheet.__send__('write_sheet_views')
25
25
  result = @worksheet.instance_variable_get(:@writer).string
26
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="900" topLeftCell="A3" /><selection pane="bottomLeft" activeCell="A3" sqref="A3" /></sheetView></sheetViews>'
26
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="900" topLeftCell="A3"/><selection pane="bottomLeft" activeCell="A3" sqref="A3"/></sheetView></sheetViews>'
27
27
  assert_equal(expected, result)
28
28
  end
29
29
 
@@ -32,7 +32,7 @@ class TestWriteSheetView3 < Test::Unit::TestCase
32
32
  @worksheet.split_panes(105)
33
33
  @worksheet.__send__('write_sheet_views')
34
34
  result = @worksheet.instance_variable_get(:@writer).string
35
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="2400" topLeftCell="A8" /><selection pane="bottomLeft" activeCell="A8" sqref="A8" /></sheetView></sheetViews>'
35
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="2400" topLeftCell="A8"/><selection pane="bottomLeft" activeCell="A8" sqref="A8"/></sheetView></sheetViews>'
36
36
  assert_equal(expected, result)
37
37
  end
38
38
 
@@ -41,7 +41,7 @@ class TestWriteSheetView3 < Test::Unit::TestCase
41
41
  @worksheet.split_panes(0, 8.43)
42
42
  @worksheet.__send__('write_sheet_views')
43
43
  result = @worksheet.instance_variable_get(:@writer).string
44
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="1350" topLeftCell="B1" /><selection pane="topRight" activeCell="B1" sqref="B1" /></sheetView></sheetViews>'
44
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="1350" topLeftCell="B1"/><selection pane="topRight" activeCell="B1" sqref="B1"/></sheetView></sheetViews>'
45
45
  assert_equal(expected, result)
46
46
  end
47
47
 
@@ -50,7 +50,7 @@ class TestWriteSheetView3 < Test::Unit::TestCase
50
50
  @worksheet.split_panes(0, 17.57)
51
51
  @worksheet.__send__('write_sheet_views')
52
52
  result = @worksheet.instance_variable_get(:@writer).string
53
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="2310" topLeftCell="C1" /><selection pane="topRight" activeCell="C1" sqref="C1" /></sheetView></sheetViews>'
53
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="2310" topLeftCell="C1"/><selection pane="topRight" activeCell="C1" sqref="C1"/></sheetView></sheetViews>'
54
54
  assert_equal(expected, result)
55
55
  end
56
56
 
@@ -59,7 +59,7 @@ class TestWriteSheetView3 < Test::Unit::TestCase
59
59
  @worksheet.split_panes(0, 45)
60
60
  @worksheet.__send__('write_sheet_views')
61
61
  result = @worksheet.instance_variable_get(:@writer).string
62
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="5190" topLeftCell="F1" /><selection pane="topRight" activeCell="F1" sqref="F1" /></sheetView></sheetViews>'
62
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="5190" topLeftCell="F1"/><selection pane="topRight" activeCell="F1" sqref="F1"/></sheetView></sheetViews>'
63
63
  assert_equal(expected, result)
64
64
  end
65
65
 
@@ -68,7 +68,7 @@ class TestWriteSheetView3 < Test::Unit::TestCase
68
68
  @worksheet.split_panes(15, 8.43)
69
69
  @worksheet.__send__('write_sheet_views')
70
70
  result = @worksheet.instance_variable_get(:@writer).string
71
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="1350" ySplit="600" topLeftCell="B2" /><selection pane="topRight" activeCell="B1" sqref="B1" /><selection pane="bottomLeft" activeCell="A2" sqref="A2" /><selection pane="bottomRight" activeCell="B2" sqref="B2" /></sheetView></sheetViews>'
71
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="1350" ySplit="600" topLeftCell="B2"/><selection pane="topRight" activeCell="B1" sqref="B1"/><selection pane="bottomLeft" activeCell="A2" sqref="A2"/><selection pane="bottomRight" activeCell="B2" sqref="B2"/></sheetView></sheetViews>'
72
72
  assert_equal(expected, result)
73
73
  end
74
74
 
@@ -77,7 +77,7 @@ class TestWriteSheetView3 < Test::Unit::TestCase
77
77
  @worksheet.split_panes(45, 54.14)
78
78
  @worksheet.__send__('write_sheet_views')
79
79
  result = @worksheet.instance_variable_get(:@writer).string
80
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="6150" ySplit="1200" topLeftCell="G4" /><selection pane="topRight" activeCell="G1" sqref="G1" /><selection pane="bottomLeft" activeCell="A4" sqref="A4" /><selection pane="bottomRight" activeCell="G4" sqref="G4" /></sheetView></sheetViews>'
80
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="6150" ySplit="1200" topLeftCell="G4"/><selection pane="topRight" activeCell="G1" sqref="G1"/><selection pane="bottomLeft" activeCell="A4" sqref="A4"/><selection pane="bottomRight" activeCell="G4" sqref="G4"/></sheetView></sheetViews>'
81
81
  assert_equal(expected, result)
82
82
  end
83
83
  end
@@ -14,7 +14,7 @@ class TestWriteSheetView4 < Test::Unit::TestCase
14
14
  @worksheet.split_panes(15, 0, 1, 0)
15
15
  @worksheet.__send__('write_sheet_views')
16
16
  result = @worksheet.instance_variable_get(:@writer).string
17
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="600" topLeftCell="A2" /><selection pane="bottomLeft" activeCell="A2" sqref="A2" /></sheetView></sheetViews>'
17
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="600" topLeftCell="A2"/><selection pane="bottomLeft" activeCell="A2" sqref="A2"/></sheetView></sheetViews>'
18
18
  assert_equal(expected, result)
19
19
  end
20
20
 
@@ -23,7 +23,7 @@ class TestWriteSheetView4 < Test::Unit::TestCase
23
23
  @worksheet.split_panes(30, 0, 2, 0)
24
24
  @worksheet.__send__('write_sheet_views')
25
25
  result = @worksheet.instance_variable_get(:@writer).string
26
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="900" topLeftCell="A3" /><selection pane="bottomLeft" activeCell="A3" sqref="A3" /></sheetView></sheetViews>'
26
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="900" topLeftCell="A3"/><selection pane="bottomLeft" activeCell="A3" sqref="A3"/></sheetView></sheetViews>'
27
27
  assert_equal(expected, result)
28
28
  end
29
29
 
@@ -32,7 +32,7 @@ class TestWriteSheetView4 < Test::Unit::TestCase
32
32
  @worksheet.split_panes(105, 0, 7, 0)
33
33
  @worksheet.__send__('write_sheet_views')
34
34
  result = @worksheet.instance_variable_get(:@writer).string
35
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="2400" topLeftCell="A8" /><selection pane="bottomLeft" activeCell="A8" sqref="A8" /></sheetView></sheetViews>'
35
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="2400" topLeftCell="A8"/><selection pane="bottomLeft" activeCell="A8" sqref="A8"/></sheetView></sheetViews>'
36
36
  assert_equal(expected, result)
37
37
  end
38
38
 
@@ -41,7 +41,7 @@ class TestWriteSheetView4 < Test::Unit::TestCase
41
41
  @worksheet.split_panes(0, 8.43, 0, 1)
42
42
  @worksheet.__send__('write_sheet_views')
43
43
  result = @worksheet.instance_variable_get(:@writer).string
44
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="1350" topLeftCell="B1" /><selection pane="topRight" activeCell="B1" sqref="B1" /></sheetView></sheetViews>'
44
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="1350" topLeftCell="B1"/><selection pane="topRight" activeCell="B1" sqref="B1"/></sheetView></sheetViews>'
45
45
  assert_equal(expected, result)
46
46
  end
47
47
 
@@ -50,7 +50,7 @@ class TestWriteSheetView4 < Test::Unit::TestCase
50
50
  @worksheet.split_panes(0, 17.57, 0, 2)
51
51
  @worksheet.__send__('write_sheet_views')
52
52
  result = @worksheet.instance_variable_get(:@writer).string
53
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="2310" topLeftCell="C1" /><selection pane="topRight" activeCell="C1" sqref="C1" /></sheetView></sheetViews>'
53
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="2310" topLeftCell="C1"/><selection pane="topRight" activeCell="C1" sqref="C1"/></sheetView></sheetViews>'
54
54
  assert_equal(expected, result)
55
55
  end
56
56
 
@@ -59,7 +59,7 @@ class TestWriteSheetView4 < Test::Unit::TestCase
59
59
  @worksheet.split_panes(0, 45, 0, 5)
60
60
  @worksheet.__send__('write_sheet_views')
61
61
  result = @worksheet.instance_variable_get(:@writer).string
62
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="5190" topLeftCell="F1" /><selection pane="topRight" activeCell="F1" sqref="F1" /></sheetView></sheetViews>'
62
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="5190" topLeftCell="F1"/><selection pane="topRight" activeCell="F1" sqref="F1"/></sheetView></sheetViews>'
63
63
  assert_equal(expected, result)
64
64
  end
65
65
 
@@ -68,7 +68,7 @@ class TestWriteSheetView4 < Test::Unit::TestCase
68
68
  @worksheet.split_panes(15, 8.43, 1, 1)
69
69
  @worksheet.__send__('write_sheet_views')
70
70
  result = @worksheet.instance_variable_get(:@writer).string
71
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="1350" ySplit="600" topLeftCell="B2" /><selection pane="topRight" activeCell="B1" sqref="B1" /><selection pane="bottomLeft" activeCell="A2" sqref="A2" /><selection pane="bottomRight" activeCell="B2" sqref="B2" /></sheetView></sheetViews>'
71
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="1350" ySplit="600" topLeftCell="B2"/><selection pane="topRight" activeCell="B1" sqref="B1"/><selection pane="bottomLeft" activeCell="A2" sqref="A2"/><selection pane="bottomRight" activeCell="B2" sqref="B2"/></sheetView></sheetViews>'
72
72
  assert_equal(expected, result)
73
73
  end
74
74
 
@@ -77,7 +77,7 @@ class TestWriteSheetView4 < Test::Unit::TestCase
77
77
  @worksheet.split_panes(45, 54.14, 3, 6)
78
78
  @worksheet.__send__('write_sheet_views')
79
79
  result = @worksheet.instance_variable_get(:@writer).string
80
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="6150" ySplit="1200" topLeftCell="G4" /><selection pane="topRight" activeCell="G1" sqref="G1" /><selection pane="bottomLeft" activeCell="A4" sqref="A4" /><selection pane="bottomRight" activeCell="G4" sqref="G4" /></sheetView></sheetViews>'
80
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="6150" ySplit="1200" topLeftCell="G4"/><selection pane="topRight" activeCell="G1" sqref="G1"/><selection pane="bottomLeft" activeCell="A4" sqref="A4"/><selection pane="bottomRight" activeCell="G4" sqref="G4"/></sheetView></sheetViews>'
81
81
  assert_equal(expected, result)
82
82
  end
83
83
  end
@@ -14,7 +14,7 @@ class TestWriteSheetView5 < Test::Unit::TestCase
14
14
  @worksheet.set_selection('A1')
15
15
  @worksheet.__send__('write_sheet_views')
16
16
  result = @worksheet.instance_variable_get(:@writer).string
17
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0" /></sheetViews>'
17
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"/></sheetViews>'
18
18
  assert_equal(expected, result)
19
19
  end
20
20
 
@@ -23,7 +23,7 @@ class TestWriteSheetView5 < Test::Unit::TestCase
23
23
  @worksheet.set_selection('A2')
24
24
  @worksheet.__send__('write_sheet_views')
25
25
  result = @worksheet.instance_variable_get(:@writer).string
26
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><selection activeCell="A2" sqref="A2" /></sheetView></sheetViews>'
26
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><selection activeCell="A2" sqref="A2"/></sheetView></sheetViews>'
27
27
  assert_equal(expected, result)
28
28
  end
29
29
 
@@ -32,7 +32,7 @@ class TestWriteSheetView5 < Test::Unit::TestCase
32
32
  @worksheet.set_selection('B1')
33
33
  @worksheet.__send__('write_sheet_views')
34
34
  result = @worksheet.instance_variable_get(:@writer).string
35
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><selection activeCell="B1" sqref="B1" /></sheetView></sheetViews>'
35
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><selection activeCell="B1" sqref="B1"/></sheetView></sheetViews>'
36
36
  assert_equal(expected, result)
37
37
  end
38
38
 
@@ -41,7 +41,7 @@ class TestWriteSheetView5 < Test::Unit::TestCase
41
41
  @worksheet.set_selection('D3')
42
42
  @worksheet.__send__('write_sheet_views')
43
43
  result = @worksheet.instance_variable_get(:@writer).string
44
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><selection activeCell="D3" sqref="D3" /></sheetView></sheetViews>'
44
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><selection activeCell="D3" sqref="D3"/></sheetView></sheetViews>'
45
45
  assert_equal(expected, result)
46
46
  end
47
47
 
@@ -50,7 +50,7 @@ class TestWriteSheetView5 < Test::Unit::TestCase
50
50
  @worksheet.set_selection('D3:F4')
51
51
  @worksheet.__send__('write_sheet_views')
52
52
  result = @worksheet.instance_variable_get(:@writer).string
53
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><selection activeCell="D3" sqref="D3:F4" /></sheetView></sheetViews>'
53
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><selection activeCell="D3" sqref="D3:F4"/></sheetView></sheetViews>'
54
54
  assert_equal(expected, result)
55
55
  end
56
56
 
@@ -59,7 +59,7 @@ class TestWriteSheetView5 < Test::Unit::TestCase
59
59
  @worksheet.set_selection('F4:D3')
60
60
  @worksheet.__send__('write_sheet_views')
61
61
  result = @worksheet.instance_variable_get(:@writer).string
62
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><selection activeCell="F4" sqref="D3:F4" /></sheetView></sheetViews>'
62
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><selection activeCell="F4" sqref="D3:F4"/></sheetView></sheetViews>'
63
63
  assert_equal(expected, result)
64
64
  end
65
65
 
@@ -68,7 +68,7 @@ class TestWriteSheetView5 < Test::Unit::TestCase
68
68
  @worksheet.set_selection('A2:A2')
69
69
  @worksheet.__send__('write_sheet_views')
70
70
  result = @worksheet.instance_variable_get(:@writer).string
71
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><selection activeCell="A2" sqref="A2" /></sheetView></sheetViews>'
71
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><selection activeCell="A2" sqref="A2"/></sheetView></sheetViews>'
72
72
  assert_equal(expected, result)
73
73
  end
74
74
  end
@@ -15,7 +15,7 @@ class TestWriteSheetView6 < Test::Unit::TestCase
15
15
  @worksheet.freeze_panes(1, 0)
16
16
  @worksheet.__send__('write_sheet_views')
17
17
  result = @worksheet.instance_variable_get(:@writer).string
18
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="1" topLeftCell="A2" activePane="bottomLeft" state="frozen" /><selection pane="bottomLeft" activeCell="A2" sqref="A2" /></sheetView></sheetViews>'
18
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="1" topLeftCell="A2" activePane="bottomLeft" state="frozen"/><selection pane="bottomLeft" activeCell="A2" sqref="A2"/></sheetView></sheetViews>'
19
19
  assert_equal(expected, result)
20
20
  end
21
21
 
@@ -25,7 +25,7 @@ class TestWriteSheetView6 < Test::Unit::TestCase
25
25
  @worksheet.freeze_panes(0, 1)
26
26
  @worksheet.__send__('write_sheet_views')
27
27
  result = @worksheet.instance_variable_get(:@writer).string
28
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="1" topLeftCell="B1" activePane="topRight" state="frozen" /><selection pane="topRight" activeCell="B1" sqref="B1" /></sheetView></sheetViews>'
28
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="1" topLeftCell="B1" activePane="topRight" state="frozen"/><selection pane="topRight" activeCell="B1" sqref="B1"/></sheetView></sheetViews>'
29
29
  assert_equal(expected, result)
30
30
  end
31
31
 
@@ -35,7 +35,7 @@ class TestWriteSheetView6 < Test::Unit::TestCase
35
35
  @worksheet.freeze_panes('G4')
36
36
  @worksheet.__send__('write_sheet_views')
37
37
  result = @worksheet.instance_variable_get(:@writer).string
38
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="6" ySplit="3" topLeftCell="G4" activePane="bottomRight" state="frozen" /><selection pane="topRight" activeCell="G1" sqref="G1" /><selection pane="bottomLeft" activeCell="A4" sqref="A4" /><selection pane="bottomRight" activeCell="G4" sqref="G4" /></sheetView></sheetViews>'
38
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="6" ySplit="3" topLeftCell="G4" activePane="bottomRight" state="frozen"/><selection pane="topRight" activeCell="G1" sqref="G1"/><selection pane="bottomLeft" activeCell="A4" sqref="A4"/><selection pane="bottomRight" activeCell="G4" sqref="G4"/></sheetView></sheetViews>'
39
39
  assert_equal(expected, result)
40
40
  end
41
41
 
@@ -45,7 +45,7 @@ class TestWriteSheetView6 < Test::Unit::TestCase
45
45
  @worksheet.freeze_panes('G4')
46
46
  @worksheet.__send__('write_sheet_views')
47
47
  result = @worksheet.instance_variable_get(:@writer).string
48
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="6" ySplit="3" topLeftCell="G4" activePane="bottomRight" state="frozen" /><selection pane="topRight" activeCell="G1" sqref="G1" /><selection pane="bottomLeft" activeCell="A4" sqref="A4" /><selection pane="bottomRight" activeCell="I5" sqref="I5" /></sheetView></sheetViews>'
48
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="6" ySplit="3" topLeftCell="G4" activePane="bottomRight" state="frozen"/><selection pane="topRight" activeCell="G1" sqref="G1"/><selection pane="bottomLeft" activeCell="A4" sqref="A4"/><selection pane="bottomRight" activeCell="I5" sqref="I5"/></sheetView></sheetViews>'
49
49
  assert_equal(expected, result)
50
50
  end
51
51
  end
@@ -15,7 +15,7 @@ class TestWriteSheetView7 < Test::Unit::TestCase
15
15
  @worksheet.freeze_panes(1, 0, 20, 0)
16
16
  @worksheet.__send__('write_sheet_views')
17
17
  result = @worksheet.instance_variable_get(:@writer).string
18
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="1" topLeftCell="A21" activePane="bottomLeft" state="frozen" /><selection pane="bottomLeft" activeCell="A2" sqref="A2" /></sheetView></sheetViews>'
18
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="1" topLeftCell="A21" activePane="bottomLeft" state="frozen"/><selection pane="bottomLeft" activeCell="A2" sqref="A2"/></sheetView></sheetViews>'
19
19
  assert_equal(expected, result)
20
20
  end
21
21
 
@@ -25,7 +25,7 @@ class TestWriteSheetView7 < Test::Unit::TestCase
25
25
  @worksheet.freeze_panes(1, 0, 20, 0)
26
26
  @worksheet.__send__('write_sheet_views')
27
27
  result = @worksheet.instance_variable_get(:@writer).string
28
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="1" topLeftCell="A21" activePane="bottomLeft" state="frozen" /><selection pane="bottomLeft" /></sheetView></sheetViews>'
28
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="1" topLeftCell="A21" activePane="bottomLeft" state="frozen"/><selection pane="bottomLeft"/></sheetView></sheetViews>'
29
29
  assert_equal(expected, result)
30
30
  end
31
31
 
@@ -35,7 +35,7 @@ class TestWriteSheetView7 < Test::Unit::TestCase
35
35
  @worksheet.freeze_panes(0, 1, 0, 4)
36
36
  @worksheet.__send__('write_sheet_views')
37
37
  result = @worksheet.instance_variable_get(:@writer).string
38
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="1" topLeftCell="E1" activePane="topRight" state="frozen" /><selection pane="topRight" activeCell="B1" sqref="B1" /></sheetView></sheetViews>'
38
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="1" topLeftCell="E1" activePane="topRight" state="frozen"/><selection pane="topRight" activeCell="B1" sqref="B1"/></sheetView></sheetViews>'
39
39
  assert_equal(expected, result)
40
40
  end
41
41
 
@@ -45,7 +45,7 @@ class TestWriteSheetView7 < Test::Unit::TestCase
45
45
  @worksheet.freeze_panes(0, 1, 0, 4)
46
46
  @worksheet.__send__('write_sheet_views')
47
47
  result = @worksheet.instance_variable_get(:@writer).string
48
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="1" topLeftCell="E1" activePane="topRight" state="frozen" /><selection pane="topRight" /></sheetView></sheetViews>'
48
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="1" topLeftCell="E1" activePane="topRight" state="frozen"/><selection pane="topRight"/></sheetView></sheetViews>'
49
49
  assert_equal(expected, result)
50
50
  end
51
51
 
@@ -55,7 +55,7 @@ class TestWriteSheetView7 < Test::Unit::TestCase
55
55
  @worksheet.freeze_panes(3, 6, 6, 8)
56
56
  @worksheet.__send__('write_sheet_views')
57
57
  result = @worksheet.instance_variable_get(:@writer).string
58
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="6" ySplit="3" topLeftCell="I7" activePane="bottomRight" state="frozen" /><selection pane="topRight" activeCell="G1" sqref="G1" /><selection pane="bottomLeft" activeCell="A4" sqref="A4" /><selection pane="bottomRight" activeCell="G4" sqref="G4" /></sheetView></sheetViews>'
58
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="6" ySplit="3" topLeftCell="I7" activePane="bottomRight" state="frozen"/><selection pane="topRight" activeCell="G1" sqref="G1"/><selection pane="bottomLeft" activeCell="A4" sqref="A4"/><selection pane="bottomRight" activeCell="G4" sqref="G4"/></sheetView></sheetViews>'
59
59
  assert_equal(expected, result)
60
60
  end
61
61
 
@@ -65,7 +65,7 @@ class TestWriteSheetView7 < Test::Unit::TestCase
65
65
  @worksheet.freeze_panes(3, 6, 6, 8)
66
66
  @worksheet.__send__('write_sheet_views')
67
67
  result = @worksheet.instance_variable_get(:@writer).string
68
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="6" ySplit="3" topLeftCell="I7" activePane="bottomRight" state="frozen" /><selection pane="topRight" activeCell="G1" sqref="G1" /><selection pane="bottomLeft" activeCell="A4" sqref="A4" /><selection pane="bottomRight" /></sheetView></sheetViews>'
68
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="6" ySplit="3" topLeftCell="I7" activePane="bottomRight" state="frozen"/><selection pane="topRight" activeCell="G1" sqref="G1"/><selection pane="bottomLeft" activeCell="A4" sqref="A4"/><selection pane="bottomRight"/></sheetView></sheetViews>'
69
69
  assert_equal(expected, result)
70
70
  end
71
71
  end
@@ -15,7 +15,7 @@ class TestWriteSheetView8 < Test::Unit::TestCase
15
15
  @worksheet.split_panes(15, 0)
16
16
  @worksheet.__send__('write_sheet_views')
17
17
  result = @worksheet.instance_variable_get(:@writer).string
18
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="600" topLeftCell="A2" activePane="bottomLeft" /><selection pane="bottomLeft" activeCell="A2" sqref="A2" /></sheetView></sheetViews>'
18
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="600" topLeftCell="A2" activePane="bottomLeft"/><selection pane="bottomLeft" activeCell="A2" sqref="A2"/></sheetView></sheetViews>'
19
19
  assert_equal(expected, result)
20
20
  end
21
21
 
@@ -25,7 +25,7 @@ class TestWriteSheetView8 < Test::Unit::TestCase
25
25
  @worksheet.split_panes(0, 8.43)
26
26
  @worksheet.__send__('write_sheet_views')
27
27
  result = @worksheet.instance_variable_get(:@writer).string
28
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="1350" topLeftCell="B1" activePane="topRight" /><selection pane="topRight" activeCell="B1" sqref="B1" /></sheetView></sheetViews>'
28
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="1350" topLeftCell="B1" activePane="topRight"/><selection pane="topRight" activeCell="B1" sqref="B1"/></sheetView></sheetViews>'
29
29
  assert_equal(expected, result)
30
30
  end
31
31
 
@@ -35,7 +35,7 @@ class TestWriteSheetView8 < Test::Unit::TestCase
35
35
  @worksheet.split_panes(45, 54.14)
36
36
  @worksheet.__send__('write_sheet_views')
37
37
  result = @worksheet.instance_variable_get(:@writer).string
38
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="6150" ySplit="1200" topLeftCell="G4" activePane="bottomRight" /><selection pane="topRight" activeCell="G1" sqref="G1" /><selection pane="bottomLeft" activeCell="A4" sqref="A4" /><selection pane="bottomRight" activeCell="G4" sqref="G4" /></sheetView></sheetViews>'
38
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="6150" ySplit="1200" topLeftCell="G4" activePane="bottomRight"/><selection pane="topRight" activeCell="G1" sqref="G1"/><selection pane="bottomLeft" activeCell="A4" sqref="A4"/><selection pane="bottomRight" activeCell="G4" sqref="G4"/></sheetView></sheetViews>'
39
39
  assert_equal(expected, result)
40
40
  end
41
41
 
@@ -45,7 +45,7 @@ class TestWriteSheetView8 < Test::Unit::TestCase
45
45
  @worksheet.split_panes(45, 54.14)
46
46
  @worksheet.__send__('write_sheet_views')
47
47
  result = @worksheet.instance_variable_get(:@writer).string
48
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="6150" ySplit="1200" topLeftCell="G4" activePane="bottomRight" /><selection pane="topRight" activeCell="G1" sqref="G1" /><selection pane="bottomLeft" activeCell="A4" sqref="A4" /><selection pane="bottomRight" activeCell="I5" sqref="I5" /></sheetView></sheetViews>'
48
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="6150" ySplit="1200" topLeftCell="G4" activePane="bottomRight"/><selection pane="topRight" activeCell="G1" sqref="G1"/><selection pane="bottomLeft" activeCell="A4" sqref="A4"/><selection pane="bottomRight" activeCell="I5" sqref="I5"/></sheetView></sheetViews>'
49
49
  assert_equal(expected, result)
50
50
  end
51
51
  end
@@ -15,7 +15,7 @@ class TestWriteSheetView9 < Test::Unit::TestCase
15
15
  @worksheet.split_panes(15, 0, 20, 0)
16
16
  @worksheet.__send__('write_sheet_views')
17
17
  result = @worksheet.instance_variable_get(:@writer).string
18
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="600" topLeftCell="A21" activePane="bottomLeft" /><selection pane="bottomLeft" activeCell="A2" sqref="A2" /></sheetView></sheetViews>'
18
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="600" topLeftCell="A21" activePane="bottomLeft"/><selection pane="bottomLeft" activeCell="A2" sqref="A2"/></sheetView></sheetViews>'
19
19
  assert_equal(expected, result)
20
20
  end
21
21
 
@@ -25,7 +25,7 @@ class TestWriteSheetView9 < Test::Unit::TestCase
25
25
  @worksheet.split_panes(15, 0, 20, 0)
26
26
  @worksheet.__send__('write_sheet_views')
27
27
  result = @worksheet.instance_variable_get(:@writer).string
28
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="600" topLeftCell="A21" activePane="bottomLeft" /><selection pane="bottomLeft" activeCell="A21" sqref="A21" /></sheetView></sheetViews>'
28
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="600" topLeftCell="A21" activePane="bottomLeft"/><selection pane="bottomLeft" activeCell="A21" sqref="A21"/></sheetView></sheetViews>'
29
29
  assert_equal(expected, result)
30
30
  end
31
31
 
@@ -35,7 +35,7 @@ class TestWriteSheetView9 < Test::Unit::TestCase
35
35
  @worksheet.split_panes(0, 8.43, 0, 4)
36
36
  @worksheet.__send__('write_sheet_views')
37
37
  result = @worksheet.instance_variable_get(:@writer).string
38
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="1350" topLeftCell="E1" activePane="topRight" /><selection pane="topRight" activeCell="B1" sqref="B1" /></sheetView></sheetViews>'
38
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="1350" topLeftCell="E1" activePane="topRight"/><selection pane="topRight" activeCell="B1" sqref="B1"/></sheetView></sheetViews>'
39
39
  assert_equal(expected, result)
40
40
  end
41
41
 
@@ -45,7 +45,7 @@ class TestWriteSheetView9 < Test::Unit::TestCase
45
45
  @worksheet.split_panes(0, 8.43, 0, 4)
46
46
  @worksheet.__send__('write_sheet_views')
47
47
  result = @worksheet.instance_variable_get(:@writer).string
48
- expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="1350" topLeftCell="E1" activePane="topRight" /><selection pane="topRight" activeCell="E1" sqref="E1" /></sheetView></sheetViews>'
48
+ expected = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="1350" topLeftCell="E1" activePane="topRight"/><selection pane="topRight" activeCell="E1" sqref="E1"/></sheetView></sheetViews>'
49
49
  assert_equal(expected, result)
50
50
  end
51
51
  end
@@ -17,7 +17,7 @@ class TestWriteTabColor < Test::Unit::TestCase
17
17
 
18
18
  @worksheet.__send__('write_tab_color')
19
19
  result = @worksheet.instance_variable_get(:@writer).string
20
- expected = '<tabColor rgb="FFFF0000" />'
20
+ expected = '<tabColor rgb="FFFF0000"/>'
21
21
  assert_equal(expected, result)
22
22
  end
23
23
  end