Sha256: 490f4c81d202dd9d5de8802187fbed6fbfbe8db45717c8d5db91141ff42a3f3a
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
# frozen_string_literal: true require 'feature_test' class TestTextBlockOverflow < FeatureTest feature :text_block_overflow do report = Thinreports::Report.new layout: template_path report.start_new_page do |page| page.values(truncate: 'The string overflowing from the area will be truncated', truncate_ja: '領域から溢れたテキストは切り捨てられます。', truncate_m: 'The string overflowing from the area will be truncated') page.values(fit: 'The string overflowing from the area will be reduced', fit_ja: '領域から溢れたテキストは縮小されます。', fit_m: '複数行モードでも、領域から溢れたテキストは自動的に縮小され折り返して表示されます。') page.values(expand: 'If a string was overflowed, a box will be expanded automatically', expand_ja: 'テキストが溢れた場合、ボックスが自動的に拡張されます。', expand_m: 'If a string was overflowed, a box will be expanded automatically') end assert_pdf report.generate end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thinreports-0.10.3 | test/features/text_block_overflow/test_text_block_overflow.rb |