Sha256: 4a488dad1b611cb907b61ff3387e7c06dd1558a9788f524950169d6acbf77b99

Contents?: true

Size: 1.33 KB

Versions: 100

Compression:

Stored size: 1.33 KB

Contents

require 'test/unit'

require 'fox16'

class TC_FXFileAssoc < Test::Unit::TestCase
  include Fox

  def setup
    @app = FXApp.instance || FXApp.new
    @icon = FXIcon.new(@app)
    @fileassoc = FXFileAssoc.new
  end

  def test_command
    @fileassoc.command = "netscape"
    assert_equal("netscape", @fileassoc.command)
  end

  def test_extension
    @fileassoc.extension = ".html"
    assert_equal(".html", @fileassoc.extension)
  end

  def test_mimetype
    @fileassoc.mimetype = "mimetype"
    assert_equal("mimetype", @fileassoc.mimetype)
  end

  def test_bigicon
    @fileassoc.bigicon = @icon
    assert_kind_of(FXIcon, @fileassoc.bigicon)
    assert_same(@icon, @fileassoc.bigicon)
  end

  def test_bigiconopen
    @fileassoc.bigiconopen = @icon
    assert_kind_of(FXIcon, @fileassoc.bigiconopen)
    assert_same(@icon, @fileassoc.bigiconopen)
  end

  def test_miniicon
    @fileassoc.miniicon = @icon
    assert_kind_of(FXIcon, @fileassoc.miniicon)
    assert_same(@icon, @fileassoc.miniicon)
  end

  def test_miniiconopen
    @fileassoc.miniiconopen = @icon
    assert_kind_of(FXIcon, @fileassoc.miniiconopen)
    assert_same(@icon, @fileassoc.miniiconopen)
  end

  def test_dragtype
    @fileassoc.dragtype = 0
    assert_equal(0, @fileassoc.dragtype)
  end

  def test_flags
    @fileassoc.flags = 0
    assert_equal(0, @fileassoc.flags)
  end
end

Version data entries

100 entries across 100 versions & 1 rubygems

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