test/hexapdf/content/test_canvas.rb in hexapdf-0.27.0 vs test/hexapdf/content/test_canvas.rb in hexapdf-0.28.0

- old
+ new

@@ -932,9 +932,14 @@ [:concatenate_matrix, [0.5, 0, 0, 0.2, -99, -48]], [:paint_xobject, [:XO1]], [:restore_graphics_state]]) end + it "correctly serializes the form when no transformation is needed" do + @canvas.image(@form, at: [100, 50]) + assert_operators(@page.contents, [[:paint_xobject, [:XO1]]]) + end + it "doesn't do anything if the form's width or height is zero" do @form[:BBox] = [100, 50, 100, 200] @canvas.xobject(@form, at: [0, 0]) assert_operators(@page.contents, [])