Sha256: 536a6e59b2e953eb1468f655cae9bac43c510becd7ea510519eb635a65ba9eaf

Contents?: true

Size: 1.02 KB

Versions: 7

Compression:

Stored size: 1.02 KB

Contents

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

class TestRegressionHeaderImage14 < Test::Unit::TestCase
  def setup
    setup_dir_var
  end

  def teardown
    @tempfile.close(true)
  end

  def test_header_image14
    @xlsx = 'header_image14.xlsx'
    workbook  = WriteXLSX.new(@io)
    worksheet = workbook.add_worksheet

    worksheet.set_header(
                         '&L&G&C&G&R&G',
                         nil,
                         {
                           :image_left   => 'test/regression/images/black_72e.png',
                           :image_center => 'test/regression/images/black_150e.png',
                           :image_right  => 'test/regression/images/black_300e.png'
                         }
                         )

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
write_xlsx-0.86.0 test/regression/test_header_image14.rb
write_xlsx-0.85.11 test/regression/test_header_image14.rb
write_xlsx-0.85.10 test/regression/test_header_image14.rb
write_xlsx-0.85.9 test/regression/test_header_image14.rb
write_xlsx-0.85.8 test/regression/test_header_image14.rb
write_xlsx-0.85.7 test/regression/test_header_image14.rb
write_xlsx-0.85.6 test/regression/test_header_image14.rb