Sha256: 4416a8369ca3137fa8b148577ac91f652b284d8a3eacf612e237b22027604a6f

Contents?: true

Size: 615 Bytes

Versions: 36

Compression:

Stored size: 615 Bytes

Contents

require 'test/unit'

require 'fox16'

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

  def setup
    if FXApp.instance.nil?
      @app = FXApp.new('TC_FXShell', 'FXRuby')
      @app.init([])
    else
      @app = FXApp.instance
    end
    @mainWin = FXMainWindow.new(@app, 'TC_FXShell')
  end

  def test_nil_parent_raises_argument_error
    assert_raise(ArgumentError){ FXShell.new(nil, 0, 0, 0, 0, 0) }
  end

  def test_new
    # Free-floating
    shell1 = FXShell.new(@app, 0, 0, 0, 0, 0)

    # Owned
    shell2 = FXShell.new(@mainWin, 0, 0, 0, 0, 0)
    assert_same(@mainWin, shell2.owner)
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
fxruby-1.6.32-x86-mingw32 test/TC_FXShell.rb
fxruby-1.6.32-x64-mingw32 test/TC_FXShell.rb
fxruby-1.6.32 test/TC_FXShell.rb
fxruby-1.6.32.pre2-x64-mingw32 test/TC_FXShell.rb
fxruby-1.6.32.pre2-x86-mingw32 test/TC_FXShell.rb
fxruby-1.6.32.pre2 test/TC_FXShell.rb
fxruby-1.6.32.pre1 test/TC_FXShell.rb
fxruby-1.6.32.pre1-x86-mingw32 test/TC_FXShell.rb
fxruby-1.6.32.pre1-x64-mingw32 test/TC_FXShell.rb
fxruby-1.6.31-x64-mingw32 test/TC_FXShell.rb
fxruby-1.6.31-x86-mingw32 test/TC_FXShell.rb
fxruby-1.6.31 test/TC_FXShell.rb
fxruby-1.6.30-x86-mingw32 test/TC_FXShell.rb
fxruby-1.6.30-x64-mingw32 test/TC_FXShell.rb
fxruby-1.6.30 test/TC_FXShell.rb
fxruby-1.6.29-x86-mingw32 test/TC_FXShell.rb
fxruby-1.6.29-x64-mingw32 test/TC_FXShell.rb
fxruby-1.6.29 test/TC_FXShell.rb
fxruby-1.6.28-x86-mingw32 test/TC_FXShell.rb
fxruby-1.6.28-x64-mingw32 test/TC_FXShell.rb