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.
- data/.gitignore +39 -0
- data/Gemfile +4 -14
- data/LICENSE.txt +3 -1
- data/README.rdoc +5 -0
- data/Rakefile +4 -71
- data/examples/chart_radar.rb +127 -0
- data/examples/chart_secondary_axis.rb +1 -1
- data/lib/write_xlsx/chart/area.rb +7 -18
- data/lib/write_xlsx/chart/bar.rb +20 -23
- data/lib/write_xlsx/chart/column.rb +7 -20
- data/lib/write_xlsx/chart/radar.rb +94 -0
- data/lib/write_xlsx/chart/stock.rb +6 -0
- data/lib/write_xlsx/chart.rb +317 -116
- data/lib/write_xlsx/package/xml_writer_simple.rb +2 -2
- data/lib/write_xlsx/version.rb +5 -0
- data/test/chart/test_write_a_latin.rb +22 -0
- data/test/chart/test_write_auto.rb +1 -1
- data/test/chart/test_write_ax_id.rb +1 -1
- data/test/chart/test_write_ax_pos.rb +1 -1
- data/test/chart/test_write_cross_ax.rb +1 -1
- data/test/chart/test_write_crosses.rb +1 -1
- data/test/chart/test_write_d_lbls.rb +18 -18
- data/test/chart/test_write_idx.rb +1 -1
- data/test/chart/test_write_label_align.rb +1 -1
- data/test/chart/test_write_label_offset.rb +1 -1
- data/test/chart/test_write_lang.rb +1 -1
- data/test/chart/test_write_layout.rb +1 -1
- data/test/chart/test_write_legend.rb +1 -1
- data/test/chart/test_write_legend_pos.rb +1 -1
- data/test/chart/test_write_major_gridlines.rb +2 -2
- data/test/chart/test_write_marker.rb +1 -1
- data/test/chart/test_write_marker_size.rb +1 -1
- data/test/chart/test_write_marker_value.rb +1 -1
- data/test/chart/test_write_num_cache.rb +1 -1
- data/test/chart/test_write_number_format.rb +40 -2
- data/test/chart/test_write_order.rb +1 -1
- data/test/chart/test_write_orientation.rb +1 -1
- data/test/chart/test_write_page_margins.rb +1 -1
- data/test/chart/test_write_page_setup.rb +1 -1
- data/test/chart/test_write_plot_vis_only.rb +1 -1
- data/test/chart/test_write_pt_count.rb +1 -1
- data/test/chart/test_write_style.rb +1 -1
- data/test/chart/test_write_symbol.rb +1 -1
- data/test/chart/test_write_tick_lbl_pos.rb +1 -1
- data/test/drawing/test_write_a_graphic_frame_locks.rb +1 -1
- data/test/drawing/test_write_c_chart.rb +1 -1
- data/test/drawing/test_write_c_nv_graphic_frame_pr.rb +2 -2
- data/test/drawing/test_write_c_nv_pr.rb +1 -1
- data/test/drawing/test_write_ext.rb +1 -1
- data/test/drawing/test_write_pos.rb +1 -1
- data/test/drawing/test_write_xfrm_extension.rb +1 -1
- data/test/drawing/test_write_xfrm_offset.rb +1 -1
- data/test/helper.rb +1 -1
- data/test/package/content_types/test_write_default.rb +1 -1
- data/test/package/content_types/test_write_override.rb +1 -1
- data/test/package/table/test_write_auto_filter.rb +1 -1
- data/test/package/table/test_write_table_column.rb +1 -1
- data/test/package/table/test_write_table_style_info.rb +1 -1
- data/test/package/vml/test_write_fill.rb +1 -1
- data/test/package/vml/test_write_idmap.rb +1 -1
- data/test/package/vml/test_write_move_with_cells.rb +1 -1
- data/test/package/vml/test_write_path.rb +2 -2
- data/test/package/vml/test_write_shadow.rb +1 -1
- data/test/package/vml/test_write_shapelayout.rb +1 -1
- data/test/package/vml/test_write_shapetype.rb +1 -1
- data/test/package/vml/test_write_size_with_cells.rb +1 -1
- data/test/package/vml/test_write_stroke.rb +1 -1
- data/test/perl_output/chart_radar.xlsx +0 -0
- data/test/perl_output/chart_secondary_axis.xlsx +0 -0
- data/test/regression/test_chart_axis22.rb +45 -0
- data/test/regression/test_chart_axis23.rb +46 -0
- data/test/regression/test_chart_axis24.rb +46 -0
- data/test/regression/test_chart_font01.rb +54 -0
- data/test/regression/test_chart_font02.rb +56 -0
- data/test/regression/test_chart_font03.rb +59 -0
- data/test/regression/test_chart_font04.rb +57 -0
- data/test/regression/test_chart_font05.rb +54 -0
- data/test/regression/test_chart_font06.rb +84 -0
- data/test/regression/test_chart_radar01.rb +39 -0
- data/test/regression/test_chart_radar02.rb +43 -0
- data/test/regression/test_chart_radar03.rb +43 -0
- data/test/regression/test_escapes04.rb +30 -0
- data/test/regression/test_escapes05.rb +31 -0
- data/test/regression/test_rich_string01.rb +1 -1
- data/test/regression/test_rich_string02.rb +1 -1
- data/test/regression/test_rich_string03.rb +1 -1
- data/test/regression/test_rich_string04.rb +1 -1
- data/test/regression/test_rich_string05.rb +1 -1
- data/test/regression/test_rich_string06.rb +1 -1
- data/test/regression/test_rich_string07.rb +1 -1
- data/test/regression/test_rich_string08.rb +1 -1
- data/test/regression/test_rich_string09.rb +1 -1
- data/test/regression/test_rich_string10.rb +1 -1
- data/test/regression/test_rich_string11.rb +1 -1
- data/test/regression/test_shape_connect01.rb +1 -1
- data/test/regression/test_shape_connect02.rb +1 -1
- data/test/regression/test_shape_connect03.rb +1 -1
- data/test/regression/test_shape_connect04.rb +1 -1
- data/test/regression/xlsx_files/chart_axis22.xlsx +0 -0
- data/test/regression/xlsx_files/chart_axis23.xlsx +0 -0
- data/test/regression/xlsx_files/chart_axis24.xlsx +0 -0
- data/test/regression/xlsx_files/chart_font01.xlsx +0 -0
- data/test/regression/xlsx_files/chart_font02.xlsx +0 -0
- data/test/regression/xlsx_files/chart_font03.xlsx +0 -0
- data/test/regression/xlsx_files/chart_font04.xlsx +0 -0
- data/test/regression/xlsx_files/chart_font05.xlsx +0 -0
- data/test/regression/xlsx_files/chart_font06.xlsx +0 -0
- data/test/regression/xlsx_files/chart_radar01.xlsx +0 -0
- data/test/regression/xlsx_files/chart_radar02.xlsx +0 -0
- data/test/regression/xlsx_files/chart_radar03.xlsx +0 -0
- data/test/regression/xlsx_files/escapes04.xlsx +0 -0
- data/test/regression/xlsx_files/escapes05.xlsx +0 -0
- data/test/test_example_match.rb +119 -1
- data/test/test_xml_writer_simple.rb +4 -4
- data/test/worksheet/test_write_autofilter.rb +21 -21
- data/test/worksheet/test_write_brk.rb +1 -1
- data/test/worksheet/test_write_col_breaks.rb +2 -2
- data/test/worksheet/test_write_col_info.rb +6 -6
- data/test/worksheet/test_write_custom_filter.rb +1 -1
- data/test/worksheet/test_write_custom_filters.rb +2 -2
- data/test/worksheet/test_write_dimension.rb +9 -9
- data/test/worksheet/test_write_ext.rb +1 -1
- data/test/worksheet/test_write_ext_lst.rb +1 -1
- data/test/worksheet/test_write_filter.rb +1 -1
- data/test/worksheet/test_write_filter_column.rb +1 -1
- data/test/worksheet/test_write_filters.rb +3 -3
- data/test/worksheet/test_write_hyperlink.rb +4 -4
- data/test/worksheet/test_write_hyperlinks.rb +2 -2
- data/test/worksheet/test_write_legacy_drawing.rb +1 -1
- data/test/worksheet/test_write_merge_cell.rb +1 -1
- data/test/worksheet/test_write_mx_plv.rb +1 -1
- data/test/worksheet/test_write_page_margins.rb +11 -11
- data/test/worksheet/test_write_page_set_up_pr.rb +1 -1
- data/test/worksheet/test_write_page_setup.rb +4 -4
- data/test/worksheet/test_write_pane.rb +14 -14
- data/test/worksheet/test_write_phonetic_pr.rb +1 -1
- data/test/worksheet/test_write_print_options.rb +5 -5
- data/test/worksheet/test_write_row_breaks.rb +2 -2
- data/test/worksheet/test_write_row_element.rb +1 -1
- data/test/worksheet/test_write_selection.rb +1 -1
- data/test/worksheet/test_write_sheet_calc_pr.rb +1 -1
- data/test/worksheet/test_write_sheet_data.rb +1 -1
- data/test/worksheet/test_write_sheet_format_pr.rb +1 -1
- data/test/worksheet/test_write_sheet_pr.rb +3 -3
- data/test/worksheet/test_write_sheet_protection.rb +18 -18
- data/test/worksheet/test_write_sheet_view.rb +6 -6
- data/test/worksheet/test_write_sheet_view1.rb +6 -6
- data/test/worksheet/test_write_sheet_view2.rb +5 -5
- data/test/worksheet/test_write_sheet_view3.rb +8 -8
- data/test/worksheet/test_write_sheet_view4.rb +8 -8
- data/test/worksheet/test_write_sheet_view5.rb +7 -7
- data/test/worksheet/test_write_sheet_view6.rb +4 -4
- data/test/worksheet/test_write_sheet_view7.rb +6 -6
- data/test/worksheet/test_write_sheet_view8.rb +4 -4
- data/test/worksheet/test_write_sheet_view9.rb +4 -4
- data/test/worksheet/test_write_tab_color.rb +1 -1
- data/write_xlsx.gemspec +18 -935
- metadata +881 -32
- data/VERSION +0 -1
- 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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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
|