Sha256: 5cd05b9ffec23eb3d887acdd53b3c62c5b79a7e847c37a1a73d511e1c4206854
Contents?: true
Size: 688 Bytes
Versions: 87
Compression:
Stored size: 688 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("undo", 10) assert_not_nil(icon) assert_match(/undo/, icon.filename) assert_not_nil(@theme.choose_icon("undo", 29, [:use_builtin, :no_svg])) end def test_contexts only_gtk_version(2, 12) assert_operator(@theme.contexts, :include?, "MimeTypes") end def test_icons assert_operator(@theme.icons, :include?, "undo") assert_operator(@theme.icons("Actions"), :include?, "remove") end end
Version data entries
87 entries across 87 versions & 2 rubygems