diff options
| author | Randy Morgan <[email protected]> | 2012-05-03 09:10:23 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-05-03 09:10:23 +0900 |
| commit | e622dc54069074198990beb0462da630bad38dd0 (patch) | |
| tree | 4065eb11cf4dcd68440bf8347af4509c130fb11e /test/drawing/tc_named_axis_data.rb | |
| parent | 2dfdd1f26b1fc748da3b4edad9aeeaeae842aedb (diff) | |
| download | caxlsx-e622dc54069074198990beb0462da630bad38dd0.tar.gz caxlsx-e622dc54069074198990beb0462da630bad38dd0.zip | |
rebuild series data base objects with full implementation.
Address shape validation error.
Diffstat (limited to 'test/drawing/tc_named_axis_data.rb')
| -rw-r--r-- | test/drawing/tc_named_axis_data.rb | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/test/drawing/tc_named_axis_data.rb b/test/drawing/tc_named_axis_data.rb index fe3a32fb..63fb4610 100644 --- a/test/drawing/tc_named_axis_data.rb +++ b/test/drawing/tc_named_axis_data.rb @@ -1,27 +1,27 @@ -require 'tc_helper.rb' +# require 'tc_helper.rb' -class TestNamedAxisData < Test::Unit::TestCase +# class TestNamedAxisData < Test::Unit::TestCase - def setup - p = Axlsx::Package.new - @ws = p.workbook.add_worksheet - @chart = @ws.drawing.add_chart Axlsx::Line3DChart - @series = @chart.add_series :data=>[0,1,2] - end +# def setup +# p = Axlsx::Package.new +# @ws = p.workbook.add_worksheet +# @chart = @ws.drawing.add_chart Axlsx::Line3DChart +# @series = @chart.add_series :data=>[0,1,2] +# end - def test_initialize - assert(@series.data.is_a?Axlsx::SimpleTypedList) - assert_equal(@series.data, [0,1,2]) - end +# def test_initialize +# assert(@series.data.is_a?Axlsx::SimpleTypedList) +# assert_equal(@series.data, [0,1,2]) +# end - def test_to_xml_string - doc = Nokogiri::XML(@chart.to_xml_string) - assert_equal(doc.xpath("//c:val/c:numRef/c:f").size,1) - assert_equal(doc.xpath("//c:numCache/c:ptCount[@val='#{@series.data.size}']").size,1) - @series.data.each_with_index do |datum, index| - assert_equal(doc.xpath("//c:numCache/c:pt[@idx='#{index}']").size,1) - assert_equal(doc.xpath("//c:numCache/c:pt/c:v[text()='#{datum}']").size,1) - end - end +# def test_to_xml_string +# doc = Nokogiri::XML(@chart.to_xml_string) +# assert_equal(doc.xpath("//c:val/c:numRef/c:f").size,1) +# assert_equal(doc.xpath("//c:numCache/c:ptCount[@val='#{@series.data.size}']").size,1) +# @series.data.each_with_index do |datum, index| +# assert_equal(doc.xpath("//c:numCache/c:pt[@idx='#{index}']").size,1) +# assert_equal(doc.xpath("//c:numCache/c:pt/c:v[text()='#{datum}']").size,1) +# end +# end -end +# end |
