Sha256: e9095295752362e1b37989758dec22f39511131336f97457c692159ab8211e92

Contents?: true

Size: 1.09 KB

Versions: 38

Compression:

Stored size: 1.09 KB

Contents

require 'test/unit'
require 'fox16'
require 'testcase'

include Fox

class TC_FXIconDict < TestCase
  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

38 entries across 38 versions & 1 rubygems

Version Path
fxruby-1.6.20-x86-mingw32 test/TC_FXIconDict.rb
fxruby-1.6.20-x86-linux test/TC_FXIconDict.rb
fxruby-1.6.20 test/TC_FXIconDict.rb
fxruby-1.6.20-universal-darwin-10 test/TC_FXIconDict.rb
fxruby-1.6.19-x86-mingw32 tests/TC_FXIconDict.rb
fxruby-1.6.14-mswin32 tests/TC_FXIconDict.rb
fxruby-1.6.13-mswin32 tests/TC_FXIconDict.rb
fxruby-1.6.0 tests/TC_FXIconDict.rb
fxruby-1.6.1 tests/TC_FXIconDict.rb
fxruby-1.6.10 tests/TC_FXIconDict.rb
fxruby-1.6.11 tests/TC_FXIconDict.rb
fxruby-1.6.12 tests/TC_FXIconDict.rb
fxruby-1.6.13 tests/TC_FXIconDict.rb
fxruby-1.6.14-universal-darwin-9 tests/TC_FXIconDict.rb
fxruby-1.6.14 tests/TC_FXIconDict.rb
fxruby-1.6.15-universal-darwin-9 tests/TC_FXIconDict.rb
fxruby-1.6.15-x86-mswin32-60 tests/TC_FXIconDict.rb
fxruby-1.6.15 tests/TC_FXIconDict.rb
fxruby-1.6.16-universal-darwin-9 tests/TC_FXIconDict.rb
fxruby-1.6.16-x86-mswin32-60 tests/TC_FXIconDict.rb