Sha256: 169cec203b14c15ef272df93dcb4fccad064af192c1ce2473a7d1831e9ac8921
Contents?: true
Size: 647 Bytes
Versions: 9
Compression:
Stored size: 647 Bytes
Contents
class RecordingSurfaceTest < Test::Unit::TestCase include CairoTestUtils def setup only_surface("Recording") end def test_new only_not_windows only_cairo_version(1, 12, 0) surface = Cairo::RecordingSurface.new(10, 20, 300, 400) assert_equal([0.0, 0.0, 0.0, 0.0], surface.ink_extents) Cairo::Context.new(surface) do |context| context.move_to(15, 30) context.line_to(80, 100) context.stroke end if Cairo.satisfied_version?(1, 15) assert_equal([14.0, 29.0, 67.0, 72.0], surface.ink_extents) else assert_equal([10.0, 20.0, 61.0, 61.0], surface.ink_extents) end end end
Version data entries
9 entries across 9 versions & 1 rubygems