Sha256: e5fb8693a9e897bcb3aef0b4cde6ac7a254824baf1fc4e9afc64d1da8797076c

Contents?: true

Size: 1.07 KB

Versions: 3

Compression:

Stored size: 1.07 KB

Contents

# Copyright (C) 2013-2014 Masafumi Yokoyama <myokoym@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

require "mireru/widget/svg"

class SVGTest < Test::Unit::TestCase
  include MireruTestUtils

  def test_new
    file = File.join(File.dirname(__FILE__), "..", "fixtures", "sample.svg")
    widget = Mireru::Widget::SVG.new(file)
    assert_not_nil(widget)
    assert_kind_of(Gtk::DrawingArea, widget)
    widget.destroy
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mireru-0.9.3 test/widget/test-svg.rb
mireru-0.9.2 test/widget/test-svg.rb
mireru-0.9.1 test/widget/test-svg.rb