Sha256: 66e6bb8a83b4f09675b0735bc6f5d5460bedc3afe2307fce2967f7bb363ea9ef

Contents?: true

Size: 1.34 KB

Versions: 38

Compression:

Stored size: 1.34 KB

Contents

require 'test/unit'

require 'fox16'

include Fox

class TC_FXFileAssoc < Test::Unit::TestCase
  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

38 entries across 38 versions & 1 rubygems

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