Sha256: 3dfaa96046b529708542d7350d880fadfaeb4298cc43a0f99b7cf2f21b23aaff

Contents?: true

Size: 1.02 KB

Versions: 15

Compression:

Stored size: 1.02 KB

Contents

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

class TestRegressionHyperlink04 < Minitest::Test
  def setup
    setup_dir_var
  end

  def teardown
    @tempfile.close(true)
  end

  def test_hyperlink04
    @xlsx = 'hyperlink04.xlsx'
    workbook  = WriteXLSX.new(@io)
    worksheet1 = workbook.add_worksheet
    worksheet2 = workbook.add_worksheet
    worksheet3 = workbook.add_worksheet('Data Sheet')

    # Turn off default URL format for testing.
    worksheet1.instance_variable_set(:@default_url_format, nil)

    worksheet1.write_url('A1',  "internal:Sheet2!A1")
    worksheet1.write_url('A3',  "internal:Sheet2!A1:A5")
    worksheet1.write_url('A5',  "internal:'Data Sheet'!D5", 'Some text')
    worksheet1.write_url('E12', "internal:Sheet1!J1")
    worksheet1.write_url('G17', "internal:Sheet2!A1", 'Some text', nil)
    worksheet1.write_url('A18', "internal:Sheet2!A1", nil, nil, 'Tool Tip 1')
    worksheet1.write_url('A20', "internal:Sheet2!A1", 'More text', nil, 'Tool Tip 2')

    workbook.close
    compare_for_regression
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
write_xlsx-1.09.4 test/regression/test_hyperlink04.rb
write_xlsx-1.09.3 test/regression/test_hyperlink04.rb
write_xlsx-1.09.2 test/regression/test_hyperlink04.rb
write_xlsx-1.09.1 test/regression/test_hyperlink04.rb
write_xlsx-1.09.0 test/regression/test_hyperlink04.rb
write_xlsx-1.08.2 test/regression/test_hyperlink04.rb
write_xlsx-1.08.1 test/regression/test_hyperlink04.rb
write_xlsx-1.08.0 test/regression/test_hyperlink04.rb
write_xlsx-1.07.0 test/regression/test_hyperlink04.rb
write_xlsx-1.04.0 test/regression/test_hyperlink04.rb
write_xlsx-1.02.0 test/regression/test_hyperlink04.rb
write_xlsx-1.01.0 test/regression/test_hyperlink04.rb
write_xlsx-1.00.0 test/regression/test_hyperlink04.rb
write_xlsx-0.99.0 test/regression/test_hyperlink04.rb
write_xlsx-0.97.0 test/regression/test_hyperlink04.rb