Sha256: de7dabecd8d3214a76c6aabece469f0ed8e9c2a8232c234bd550238355535b60

Contents?: true

Size: 1.08 KB

Versions: 100

Compression:

Stored size: 1.08 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

100 entries across 100 versions & 1 rubygems

Version Path
fxruby-1.6.48 test/TC_FXIconDict.rb
fxruby-1.6.48-x64-mingw32 test/TC_FXIconDict.rb
fxruby-1.6.48-x64-mingw-ucrt test/TC_FXIconDict.rb
fxruby-1.6.48-x86-mingw32 test/TC_FXIconDict.rb
fxruby-1.6.47 test/TC_FXIconDict.rb
fxruby-1.6.47-x64-mingw-ucrt test/TC_FXIconDict.rb
fxruby-1.6.47-x64-mingw32 test/TC_FXIconDict.rb
fxruby-1.6.47-x86-mingw32 test/TC_FXIconDict.rb
fxruby-1.6.46 test/TC_FXIconDict.rb
fxruby-1.6.46-x64-mingw32 test/TC_FXIconDict.rb
fxruby-1.6.46-x64-mingw-ucrt test/TC_FXIconDict.rb
fxruby-1.6.46-x86-mingw32 test/TC_FXIconDict.rb
fxruby-1.6.45 test/TC_FXIconDict.rb
fxruby-1.6.45-x64-mingw32 test/TC_FXIconDict.rb
fxruby-1.6.45-x64-mingw-ucrt test/TC_FXIconDict.rb
fxruby-1.6.45-x86-mingw32 test/TC_FXIconDict.rb
fxruby-1.6.44 test/TC_FXIconDict.rb
fxruby-1.6.44-x64-mingw32 test/TC_FXIconDict.rb
fxruby-1.6.44-x86-mingw32 test/TC_FXIconDict.rb
fxruby-1.6.43 test/TC_FXIconDict.rb