Sha256: bebc770385585175ac6a47f540cf9f0a030a74e5dd9ed7c3bc94994a06367020

Contents?: true

Size: 692 Bytes

Versions: 8

Compression:

Stored size: 692 Bytes

Contents

# frozen_string_literal: true

require_relative './xlsx-func-testcase'

class TestPageSetup < XlsxWriterTestCase
  test 'page_view01' do |wb|
    ws = wb.add_worksheet
    ws.set_page_view
    ws.write_string(0, 'A', 'Foo', nil)
    ws.paper = 9
    ws.vertical_dpi = 200
  end

  test 'landscape01' do |wb|
    ws = wb.add_worksheet
    ws.write_string(0, 'A', 'Foo', nil)
    ws.set_landscape
    ws.paper = 9
    ws.vertical_dpi = 200
  end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xlsxwriter-0.2.1.pre.2 test/test-page-setup.rb
xlsxwriter-0.2.1.pre test/test-page-setup.rb
xlsxwriter-0.2.0 test/test-page-setup.rb
xlsxwriter-0.2.0.pre.2 test/test-page-setup.rb
xlsxwriter-0.2.0.pre test/test-page-setup.rb
xlsxwriter-0.1.2.pre test/test-page-setup.rb
xlsxwriter-0.1.1 test/test-page-setup.rb
xlsxwriter-0.1.0 test/test-page-setup.rb