Sha256: 9689c816589b7a747b0f78f8e615d7e2878b8a650c0d74c5e2751a7341729846

Contents?: true

Size: 907 Bytes

Versions: 10

Compression:

Stored size: 907 Bytes

Contents

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

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

  def teardown
    File.delete(@xlsx) if File.exist?(@xlsx)
  end

  def test_image26
    @xlsx = 'image26.xlsx'
    workbook  = WriteXLSX.new(@xlsx)
    worksheet = workbook.add_worksheet

    worksheet.insert_image('B2',
                           File.join(@test_dir, 'regression', 'images/black_72.png'))
    worksheet.insert_image('B8',
                           File.join(@test_dir, 'regression', 'images/black_96.png'))
    worksheet.insert_image('B13',
                           File.join(@test_dir, 'regression', 'images/black_150.png'))
    worksheet.insert_image('B17',
                           File.join(@test_dir, 'regression', 'images/black_300.png'))

    workbook.close
    compare_xlsx_for_regression(File.join(@regression_output, @xlsx), @xlsx)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
write_xlsx-0.85.5 test/regression/test_image26.rb
write_xlsx-0.85.4 test/regression/test_image26.rb
write_xlsx-0.85.3 test/regression/test_image26.rb
write_xlsx-0.85.2 test/regression/test_image26.rb
write_xlsx-0.85.1 test/regression/test_image26.rb
write_xlsx-0.83.0 test/regression/test_image26.rb
write_xlsx-0.81.1 test/regression/test_image26.rb
write_xlsx-0.81.0 test/regression/test_image26.rb
write_xlsx-0.80.0 test/regression/test_image26.rb
write_xlsx-0.79.0 test/regression/test_image26.rb