Sha256: b8d4a1e1ad4bde6dd56117a9fbf8296392902c223a7c3a5fa5228a59290ec5a5

Contents?: true

Size: 1022 Bytes

Versions: 7

Compression:

Stored size: 1022 Bytes

Contents

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

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

  def teardown
    @tempfile.close(true)
  end

  def test_header_image10
    @xlsx = 'header_image10.xlsx'
    workbook  = WriteXLSX.new(@io)
    worksheet1 = workbook.add_worksheet
    worksheet2 = workbook.add_worksheet

    worksheet1.set_header('&L&G', nil, { :image_left   => 'test/regression/images/red.jpg' })

    worksheet2.write('A1', 'Foo')
    worksheet2.write_comment('B2', 'Some text')

    # Set the author to match the target XLSX file.
    worksheet2.comments_author = 'John'

    workbook.close
    compare_for_regression(
                                [],
                                {
                                  'xl/worksheets/sheet1.xml' => [ '<pageMargins', '<pageSetup' ],
                                  'xl/worksheets/sheet2.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_image10.rb
write_xlsx-0.85.11 test/regression/test_header_image10.rb
write_xlsx-0.85.10 test/regression/test_header_image10.rb
write_xlsx-0.85.9 test/regression/test_header_image10.rb
write_xlsx-0.85.8 test/regression/test_header_image10.rb
write_xlsx-0.85.7 test/regression/test_header_image10.rb
write_xlsx-0.85.6 test/regression/test_header_image10.rb