Skip to content

Commit d0b125e

Browse files
committed
test: update expected value for cairo 1.15
GitHub: fix #50 Reported by Mamoru TASAKA. Thanks!!!
1 parent a76ee71 commit d0b125e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/test_recording_surface.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ def test_new
1515
context.line_to(80, 100)
1616
context.stroke
1717
end
18-
assert_equal([10.0, 20.0, 61.0, 61.0], surface.ink_extents)
18+
if Cairo.satisfied_version?(1, 15)
19+
assert_equal([14.0, 29.0, 67.0, 72.0], surface.ink_extents)
20+
else
21+
assert_equal([10.0, 20.0, 61.0, 61.0], surface.ink_extents)
22+
end
1923
end
2024
end

0 commit comments

Comments
 (0)