diff options
author | Toshiaki Asai <toshi.alternative@gmail.com> | 2016-11-21 08:21:12 +0900 |
---|---|---|
committer | Toshiaki Asai <toshi.alternative@gmail.com> | 2016-11-27 11:44:34 +0900 |
commit | 0b4a07983ff2d2b51aa1d0bb806682c1c55609f8 (patch) | |
tree | 07e0b3582b70b680c82fc26c03e39c6ed9956ded /test | |
parent | 317dc9641b5d9b088443d9f57024e4322d7ca1c1 (diff) | |
download | mikutter-0b4a07983ff2d2b51aa1d0bb806682c1c55609f8.tar.gz |
Gtk::WebIconに、PhotoModelなどを取り扱わせる refs #934
Diffstat (limited to 'test')
-rw-r--r-- | test/core/test_gtk_webicon.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/test/core/test_gtk_webicon.rb b/test/core/test_gtk_webicon.rb deleted file mode 100644 index bd23d720..00000000 --- a/test/core/test_gtk_webicon.rb +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -require File.expand_path(File.dirname(__FILE__) + '/../helper') -require 'webmock' -require 'gtk2' - -require 'lib/test_unit_extensions' -miquire :mui, 'webicon' - -class TC_GtkWebIcon < Test::Unit::TestCase - def setup - end - - must "local image load" do - image = Gtk::WebIcon.new(Skin.get('icon.png'), 48, 48) - assert_kind_of(GdkPixbuf::Pixbuf, image.pixbuf) - assert_not_equal(Gdk::WebImageLoader.loading_pixbuf(48, 48), image.pixbuf) - assert_not_equal(Gdk::WebImageLoader.notfound_pixbuf(48, 48), image.pixbuf) - end - - must "local image not found" do - image = Gtk::WebIcon.new('notfound-file', 48, 48) - assert_kind_of(GdkPixbuf::Pixbuf, image.pixbuf) - assert_equal(Gdk::WebImageLoader.notfound_pixbuf(48, 48), image.pixbuf) - end - -end |