Sha256: df2434dc076bcc53cdd9de0b10ace8b1bf46078c6c858b4cef33fc98a33ad2bd

Contents?: true

Size: 549 Bytes

Versions: 18

Compression:

Stored size: 549 Bytes

Contents

require 'test/unit'
require 'axlsx.rb'

class TestGraphicFrame < Test::Unit::TestCase
  def setup    
    p = Axlsx::Package.new
    @ws = p.workbook.add_worksheet
    @chart = @ws.add_chart Axlsx::Chart
    @frame = @chart.graphic_frame
  end

  def teardown
  end

  def test_initialization
    assert(@frame.anchor.is_a?(Axlsx::TwoCellAnchor))
    assert_equal(@frame.chart, @chart)
  end

  def test_rId
    assert_equal(@frame.rId, "rId1")
    chart = @ws.add_chart Axlsx::Chart
    assert_equal(chart.graphic_frame.rId, "rId2")    
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
axlsx-1.0.18 test/drawing/tc_graphic_frame.rb
axlsx-1.0.17 test/drawing/tc_graphic_frame.rb
axlsx-1.0.16 test/drawing/tc_graphic_frame.rb
axlsx-1.0.15 test/drawing/tc_graphic_frame.rb
axlsx-1.0.14 test/drawing/tc_graphic_frame.rb
axlsx-1.0.12 test/drawing/tc_graphic_frame.rb
axlsx-1.0.11 test/drawing/tc_graphic_frame.rb
axlsx-1.0.10 test/drawing/tc_graphic_frame.rb
axlsx-1.0.10a test/drawing/tc_graphic_frame.rb
axlsx-1.0.9 test/drawing/tc_graphic_frame.rb
axlsx-1.0.8 test/drawing/tc_graphic_frame.rb
axlsx-1.0.7 test/drawing/tc_graphic_frame.rb
axlsx-1.0.6 test/drawing/tc_graphic_frame.rb
axlsx-1.0.5 test/drawing/tc_graphic_frame.rb
axlsx-1.0.4 test/drawing/tc_graphic_frame.rb
axlsx-1.0.3 test/drawing/tc_graphic_frame.rb
axlsx-1.0.1 test/drawing/tc_graphic_frame.rb
axlsx-1.0.0 test/drawing/tc_graphic_frame.rb