Sha256: b685f19b5881eb2eec99cf0d7b026c6c80feb107916c8014f339562a93e4d23c

Contents?: true

Size: 473 Bytes

Versions: 16

Compression:

Stored size: 473 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)
    assert_equal(Cairo::SVGUnit::PT, surface.document_unit)
    surface.document_unit = Cairo::SVGUnit::CM
    assert_equal(Cairo::SVGUnit::CM, surface.document_unit)
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
cairo-1.17.5 test/test_svg_surface.rb
cairo-1.17.4 test/test_svg_surface.rb
cairo-1.16.6 test/test_svg_surface.rb
cairo-1.16.5 test/test_svg_surface.rb
cairo-1.16.4 test/test_svg_surface.rb
cairo-1.16.3 test/test_svg_surface.rb
cairo-1.16.2 test/test_svg_surface.rb
cairo-1.16.1-x86-mingw32 test/test_svg_surface.rb
cairo-1.16.1-x64-mingw32 test/test_svg_surface.rb
cairo-1.16.1 test/test_svg_surface.rb
cairo-1.16.0-x86-mingw32 test/test_svg_surface.rb
cairo-1.16.0-x64-mingw32 test/test_svg_surface.rb
cairo-1.16.0 test/test_svg_surface.rb
cairo-1.15.14-x86-mingw32 test/test_svg_surface.rb
cairo-1.15.14-x64-mingw32 test/test_svg_surface.rb
cairo-1.15.14 test/test_svg_surface.rb