Sha256: 15148659772f76dc1247ea7288c706f848ba9ffd468c42d539c64a1a22739695

Contents?: true

Size: 1.01 KB

Versions: 23

Compression:

Stored size: 1.01 KB

Contents

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

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

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

  def test_set_start_page01
    @xlsx = 'set_start_page01.xlsx'
    workbook  = WriteXLSX.new(@xlsx)
    worksheet = workbook.add_worksheet

	worksheet.start_page = 1
    worksheet.paper = 9

    worksheet.write('A1', 'Foo')

    workbook.close
    compare_xlsx_for_regression(File.join(@regression_output, @xlsx), @xlsx,
                                [
                                 'xl/printerSettings/printerSettings1.bin',
                                 'xl/worksheets/_rels/sheet1.xml.rels'
                                ],
                                {
                                  '[Content_Types].xml'      => ['<Default Extension="bin"'],
                                  'xl/worksheets/sheet1.xml' => ['<pageMargins']

                                }
                                )
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
write_xlsx-0.81.1 test/regression/test_set_start_page01.rb
write_xlsx-0.81.0 test/regression/test_set_start_page01.rb
write_xlsx-0.80.0 test/regression/test_set_start_page01.rb
write_xlsx-0.79.0 test/regression/test_set_start_page01.rb
write_xlsx-0.78.0 test/regression/test_set_start_page01.rb
write_xlsx-0.77.2 test/regression/test_set_start_page01.rb
write_xlsx-0.77.1 test/regression/test_set_start_page01.rb
write_xlsx-0.77.0 test/regression/test_set_start_page01.rb
write_xlsx-0.76.3 test/regression/test_set_start_page01.rb
write_xlsx-0.76.2 test/regression/test_set_start_page01.rb
write_xlsx-0.76.1 test/regression/test_set_start_page01.rb
write_xlsx-0.76.0 test/regression/test_set_start_page01.rb
write_xlsx-0.75.0 test/regression/test_set_start_page01.rb
write_xlsx-0.74.0 test/regression/test_set_start_page01.rb
write_xlsx-0.73.0 test/regression/test_set_start_page01.rb
write_xlsx-0.72.3.beta1 test/regression/test_set_start_page01.rb
write_xlsx-0.72.2 test/regression/test_set_start_page01.rb
write_xlsx-0.72.1 test/regression/test_set_start_page01.rb
write_xlsx-0.72.0 test/regression/test_set_start_page01.rb
write_xlsx-0.71.0 test/regression/test_set_start_page01.rb