Sha256: 918ed27657400c8ca00fed2bb215dbc655f6aad7e5015021ab6a446d3fbb4761

Contents?: true

Size: 1.04 KB

Versions: 10

Compression:

Stored size: 1.04 KB

Contents

# -*- coding: utf-8 -*-
require 'helper'

class TestRegressionHeaderImage18 < Minitest::Test
  def setup
    setup_dir_var
  end

  def teardown
    @tempfile.close(true)
  end

  def test_header_image18
    @xlsx = 'header_image18.xlsx'
    workbook  = WriteXLSX.new(@io)
    worksheet = workbook.add_worksheet

    worksheet.insert_image('E9', 'test/regression/images/red.png')

    worksheet.set_header(
      '&L&G&C&G&R&G',
      nil,
      {
        :image_left   => 'test/regression/images/red.jpg',
        :image_center => 'test/regression/images/blue.jpg',
        :image_right  => 'test/regression/images/red.jpg'
      }
    )

    worksheet.set_footer(
      '&L&G&C&G&R&G',
      nil,
      {
        :image_left   => 'test/regression/images/blue.jpg',
        :image_center => 'test/regression/images/red.jpg',
        :image_right  => 'test/regression/images/blue.jpg'
      }
    )

    workbook.close
    compare_for_regression(
      [],
      {
        'xl/worksheets/sheet1.xml' => [ '<pageMargins', '<pageSetup' ]
      }
    )
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
write_xlsx-1.09.4 test/regression/test_header_image18.rb
write_xlsx-1.09.3 test/regression/test_header_image18.rb
write_xlsx-1.09.2 test/regression/test_header_image18.rb
write_xlsx-1.09.1 test/regression/test_header_image18.rb
write_xlsx-1.09.0 test/regression/test_header_image18.rb
write_xlsx-1.08.2 test/regression/test_header_image18.rb
write_xlsx-1.08.1 test/regression/test_header_image18.rb
write_xlsx-1.08.0 test/regression/test_header_image18.rb
write_xlsx-1.07.0 test/regression/test_header_image18.rb
write_xlsx-1.04.0 test/regression/test_header_image18.rb