test/hexapdf/layout/test_text_box.rb in hexapdf-0.39.1 vs test/hexapdf/layout/test_text_box.rb in hexapdf-0.40.0

- old
+ new

@@ -77,17 +77,17 @@ assert(box.fit(100, 100, @frame)) assert_equal(100, box.height) end end - it "respects the style property text_overflow when fitting too much text" do + it "respects the style property overflow when fitting too much text" do box = create_box([@inline_box] * 20, height: 15) refute(box.fit(100, 100, @frame)) - box.style.text_overflow = :truncate + box.style.overflow = :truncate assert(box.fit(100, 100, @frame)) - box = create_box([@inline_box] * 20, style: {text_overflow: :truncate}) + box = create_box([@inline_box] * 20, style: {overflow: :truncate}) refute(box.fit(100, 15, @frame)) end it "can't fit the text box if the set width is bigger than the available width" do box = create_box([@inline_box], width: 101) @@ -194,10 +194,10 @@ box = create_box([]) box.draw(@canvas, 5, 5) assert_operators(@canvas.contents, []) end - it "raises an error if there is too much content for a set height with text_overlow=:error" do + it "raises an error if there is too much content for a set height with overflow=:error" do box = create_box([@inline_box] * 20, height: 15) box.fit(100, 100, @frame) assert_raises(HexaPDF::Error) { box.draw(@canvas, 0, 0) } end end