Sha256: 144564b556b2e038f058379beb44be9edfb322f32f279669c5bf0fe81936a40a

Contents?: true

Size: 592 Bytes

Versions: 6

Compression:

Stored size: 592 Bytes

Contents

require_relative './xlsx-func-testcase'

class TestFitToPages < XlsxWriterTestCase
  test 'fit_to_pages04' do |wb, t|
    t.ignore_elements = { 'xl/worksheets/sheet1.xml' => [ '<pageMargins' ] }
    ws = wb.add_worksheet
    ws.fit_to_pages(3, 2)
    ws.paper = 9
    ws.vertical_dpi = 200
    ws.write_string 0, 'A', 'Foo', nil
  end

  test 'fit_to_pages05' do |wb, t|
    t.ignore_elements = { 'xl/worksheets/sheet1.xml' => [ '<pageMargins' ] }
    ws = wb.add_worksheet
    ws.fit_to_pages(1, 0)
    ws.paper = 9
    ws.vertical_dpi = 200
    ws.write_string 0, 'A', 'Foo', nil
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
xlsxwriter-0.0.6 test/test-fit-to-pages.rb
xlsxwriter-0.0.5 test/test-fit-to-pages.rb
xlsxwriter-0.0.4 test/test-fit-to-pages.rb
xlsxwriter-0.0.4.pre.2 test/test-fit-to-pages.rb
xlsxwriter-0.0.3 test/test-fit-to-pages.rb
xlsxwriter-0.0.2 test/test-fit-to-pages.rb