Sha256: f448eb790756cf6929b247a5d0734e7200cafe329b81c2605539b1db30b6621b

Contents?: true

Size: 481 Bytes

Versions: 9

Compression:

Stored size: 481 Bytes

Contents

class SVGSurfaceTest < Test::Unit::TestCase
  include CairoTestUtils

  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

9 entries across 9 versions & 1 rubygems

Version Path
cairo-1.15.13-x64-mingw32 test/test_svg_surface.rb
cairo-1.15.13-x86-mingw32 test/test_svg_surface.rb
cairo-1.15.13 test/test_svg_surface.rb
cairo-1.15.12-x64-mingw32 test/test_svg_surface.rb
cairo-1.15.12-x86-mingw32 test/test_svg_surface.rb
cairo-1.15.12 test/test_svg_surface.rb
cairo-1.15.11-x64-mingw32 test/test_svg_surface.rb
cairo-1.15.11-x86-mingw32 test/test_svg_surface.rb
cairo-1.15.11 test/test_svg_surface.rb