Sha256: 2e182ae7bd5889bf46216bf608b0952581c88c156a75bf00c266b3405fef06b9

Contents?: true

Size: 525 Bytes

Versions: 17

Compression:

Stored size: 525 Bytes

Contents

require 'tc_helper.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

17 entries across 17 versions & 1 rubygems

Version Path
axlsx-1.3.4 test/drawing/tc_graphic_frame.rb
axlsx-1.3.3 test/drawing/tc_graphic_frame.rb
axlsx-1.3.2 test/drawing/tc_graphic_frame.rb
axlsx-1.3.1 test/drawing/tc_graphic_frame.rb
axlsx-1.2.3 test/drawing/tc_graphic_frame.rb
axlsx-1.2.2 test/drawing/tc_graphic_frame.rb
axlsx-1.2.1 test/drawing/tc_graphic_frame.rb
axlsx-1.2.0 test/drawing/tc_graphic_frame.rb
axlsx-1.1.8 test/drawing/tc_graphic_frame.rb
axlsx-1.1.7 test/drawing/tc_graphic_frame.rb
axlsx-1.1.6 test/drawing/tc_graphic_frame.rb
axlsx-1.1.5 test/drawing/tc_graphic_frame.rb
axlsx-1.1.4 test/drawing/tc_graphic_frame.rb
axlsx-1.1.3 test/drawing/tc_graphic_frame.rb
axlsx-1.1.2 test/drawing/tc_graphic_frame.rb
axlsx-1.1.1 test/drawing/tc_graphic_frame.rb
axlsx-1.1.0 test/drawing/tc_graphic_frame.rb