Sha256: 2d16ce6235d4e66e64b9514b8460e4b157eed6a0b213e8b1c9560bac7a67f8bf
Contents?: true
Size: 1005 Bytes
Versions: 3
Compression:
Stored size: 1005 Bytes
Contents
# -*- coding: utf-8 -*- require 'helper' class TestRegressionVml03 < Test::Unit::TestCase def setup setup_dir_var end def teardown File.delete(@xlsx) if File.exist?(@xlsx) end def test_vml03 @xlsx = 'vml03.xlsx' workbook = WriteXLSX.new(@xlsx) worksheet1 = workbook.add_worksheet worksheet2 = workbook.add_worksheet worksheet3 = workbook.add_worksheet worksheet1.write('A1', 'Foo') worksheet1.write_comment('B2', 'Some text') worksheet3.write('A1', 'Bar') worksheet3.write_comment('C7', 'More text') # Set the author to match the target XLSX file. worksheet1.set_comments_author('John') worksheet3.set_comments_author('John') worksheet1.insert_button('C4', {}) worksheet1.insert_button('E8', {}) worksheet3.insert_button('B2', {}) worksheet3.insert_button('C4', {}) worksheet3.insert_button('E8', {}) workbook.close compare_xlsx_for_regression(File.join(@regression_output, @xlsx), @xlsx) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
write_xlsx-0.62.0 | test/regression/test_vml03.rb |
write_xlsx-0.61.0 | test/regression/test_vml03.rb |
write_xlsx-0.60.0 | test/regression/test_vml03.rb |