Sha256: b73e9d25dff81cb5e7cae8361fe7b933b9b7643a0fbdd1f1edfd94d61036d41d
Contents?: true
Size: 786 Bytes
Versions: 56
Compression:
Stored size: 786 Bytes
Contents
class TestGtkIconTheme < Test::Unit::TestCase include GtkTestUtils def setup @theme = Gtk::IconTheme.default end def test_choose_icon only_gtk_version(2, 12) assert_nil(@theme.choose_icon("non-existent", 100)) icon = @theme.choose_icon("face-cool", 10) assert_not_nil(icon) assert_match(/face-cool/, icon.filename) assert_not_nil(@theme.choose_icon("face-cool", 29, [:use_builtin, :no_svg])) end def test_contexts only_gtk_version(2, 12) assert_operator(@theme.contexts, :include?, "MimeTypes") end class TestIcons < self def test_no_argument assert_operator(@theme.icons, :include?, "face-cool") end def test_context assert_operator(@theme.icons("Actions"), :include?, "edit-find") end end end
Version data entries
56 entries across 56 versions & 1 rubygems