Sha256: 67ec3a20cca60af1ad90733c9ac5f8895fb5a4ae80d65ff2539ffa720501f69f
Contents?: true
Size: 1.09 KB
Versions: 4
Compression:
Stored size: 1.09 KB
Contents
require 'test/unit' require 'fox16' require 'testcase' class TC_FXIconDict < Fox::TestCase include Fox def setup super(self.class.name) end def test_defaultIconPath_s assert_equal("~/.foxicons:/usr/local/share/icons:/usr/share/icons", FXIconDict.defaultIconPath) end def test_empty iconDict = FXIconDict.new(app) assert(iconDict.empty?) end def test_defaultIconPath iconDict = FXIconDict.new(app) assert_equal(FXIconDict.defaultIconPath, iconDict.iconPath) end def test_iconPath iconDict = FXIconDict.new(app, "foo") assert_equal("foo", iconDict.iconPath) iconDict.iconPath = "bar" assert_equal("bar", iconDict.iconPath) end def test_insert end =begin def test_remove_existing_icon iconDict = FXIconDict.new(app) iconDict.insert("gnu-animal.xpm") assert_equal(1, iconDict.size) assert_nil(iconDict.remove("gnu-animal.xpm")) assert_equal(0, iconDict.size) end def test_remove_nonexistent_icon iconDict = FXIconDict.new(app) assert_nil(iconDict.remove("xxxxx.png")) end =end def test_find end end
Version data entries
4 entries across 4 versions & 2 rubygems