Sha256: ef96187617059ecb4906169b470b48df6d03de7095822fa52afed0b57fd18b14
Contents?: true
Size: 598 Bytes
Versions: 8
Compression:
Stored size: 598 Bytes
Contents
class SVGSurfaceTest < Test::Unit::TestCase include Helper def test_new_with_nil_target surface = Cairo::SVGSurface.new(nil, 10, 20) surface.finish end def test_unit only_cairo_version(1, 15, 10) output = StringIO.new surface = Cairo::SVGSurface.new(output, 10, 20) if Cairo.satisfied_version?(1, 17, 6) assert_equal(Cairo::SVGUnit::USER, surface.document_unit) else assert_equal(Cairo::SVGUnit::PT, surface.document_unit) end surface.document_unit = Cairo::SVGUnit::CM assert_equal(Cairo::SVGUnit::CM, surface.document_unit) end end
Version data entries
8 entries across 8 versions & 1 rubygems