Sha256: 5f91b0d1e64fb27c736303a030244e2376af5b4c23d17bfd24807d152ab8c137

Contents?: true

Size: 644 Bytes

Versions: 56

Compression:

Stored size: 644 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)
    assert_nil(shell1.owner)

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

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
fxruby-1.6.43-x64-mingw32 test/TC_FXShell.rb
fxruby-1.6.43-x86-mingw32 test/TC_FXShell.rb
fxruby-1.6.42 test/TC_FXShell.rb
fxruby-1.6.42-x64-mingw32 test/TC_FXShell.rb
fxruby-1.6.42-x86-mingw32 test/TC_FXShell.rb
fxruby-1.6.41 test/TC_FXShell.rb
fxruby-1.6.41-x64-mingw32 test/TC_FXShell.rb
fxruby-1.6.41-x86-mingw32 test/TC_FXShell.rb
fxruby-1.6.40-x86-mingw32 test/TC_FXShell.rb
fxruby-1.6.40-x64-mingw32 test/TC_FXShell.rb
fxruby-1.6.40 test/TC_FXShell.rb
fxruby-1.6.39 test/TC_FXShell.rb
fxruby-1.6.39-x64-mingw32 test/TC_FXShell.rb
fxruby-1.6.39-x86-mingw32 test/TC_FXShell.rb
fxruby-1.6.38 test/TC_FXShell.rb
fxruby-1.6.38-x64-mingw32 test/TC_FXShell.rb
fxruby-1.6.38-x86-mingw32 test/TC_FXShell.rb
fxruby-1.6.38.pre1 test/TC_FXShell.rb
fxruby-1.6.37 test/TC_FXShell.rb
fxruby-1.6.37-x64-mingw32 test/TC_FXShell.rb