Sha256: 7df9a88919b50a6443ddda19db8bc13a0a271a7f326729fbcd6ab500df401542

Contents?: true

Size: 505 Bytes

Versions: 4

Compression:

Stored size: 505 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_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

4 entries across 4 versions & 2 rubygems

Version Path
fxruby-1.6.22.pre2-x86-mingw32 test/TC_FXShell.rb
fxruby-1.6.22.pre2 test/TC_FXShell.rb
fxrubi-1.6.22.pre1-x86-mingw32 test/TC_FXShell.rb
fxrubi-1.6.22.pre1 test/TC_FXShell.rb