Sha256: b785d3fe938553ca0d4488aa7b5f688be140dd4fdd7e9e2506cf568a377e225b

Contents?: true

Size: 471 Bytes

Versions: 10

Compression:

Stored size: 471 Bytes

Contents

require 'test/unit'
require 'style'

class StyleTest < Test::Unit::TestCase

  def test_svgline
    style = Style.new(:fill, "red", :stroke, "none")
    assert_equal( 'style="opacity:1.0;fill:red;fill-opacity:1.0;stroke:none;stroke-width:1.0;stroke-opacity:1.0"', style.svgline )
  end

  def test_default
    style = Style.new
    assert_equal( 'style="opacity:1.0;fill:none;fill-opacity:1.0;stroke:none;stroke-width:1.0;stroke-opacity:1.0"', style.svgline )
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
xrvg-0.0.2 test/test_style.rb
xrvg-0.0.1 test/test_style.rb
xrvg-0.0.3 test/test_style.rb
xrvg-0.0.4 test/test_style.rb
xrvg-0.0.5 test/test_style.rb
xrvg-0.0.6 test/test_style.rb
xrvg-0.0.7 test/test_style.rb
xrvg-0.0.8 test/test_style.rb
xrvg-0.0.81 test/test_style.rb
xrvg-0.0.82 test/test_style.rb