test/hexapdf/layout/test_text_box.rb in hexapdf-0.31.0 vs test/hexapdf/layout/test_text_box.rb in hexapdf-0.32.0

- old
+ new

@@ -137,14 +137,17 @@ @canvas = HexaPDF::Document.new.pages.add.canvas box.draw(@canvas, 0, 0) assert_operators(@canvas.contents, [[:save_graphics_state], [:restore_graphics_state], [:save_graphics_state], - [:append_rectangle, [5, 10, 10, 10]], + [:concatenate_matrix, [1, 0, 0, 1, 5, 10]], + [:save_graphics_state], + [:append_rectangle, [0, 0, 10, 10]], [:clip_path_non_zero], [:end_path], - [:append_rectangle, [5.5, 10.5, 9, 9]], + [:append_rectangle, [0.5, 0.5, 9.0, 9.0]], [:stroke_path], + [:restore_graphics_state], [:restore_graphics_state], [:save_graphics_state], [:restore_graphics_state]]) end