Sha256: 7c985481f74229f732b652ddf657be2a117554d10bccf9dbf633c22e034429d8

Contents?: true

Size: 552 Bytes

Versions: 24

Compression:

Stored size: 552 Bytes

Contents

require 'test/unit'
require 'fox16'
require 'testcase'

class TC_FXWindow < Fox::TestCase
  include Fox

  def setup
    super(self.class.name)
    @window = FXWindow.new(mainWindow)
  end

  def test_width_accessor
    pos = @window.width
    assert_instance_of(Fixnum, pos)
    @window.width = pos + 1
    assert_equal(pos + 1, @window.width)
    @window.width = pos + 2.7
    assert_equal(pos + 2, @window.width)
    assert_kind_of(Integer, @window.width)
  end

  def test_width_invalid
    assert_raise(TypeError){ @window.width = nil }
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
fxruby-1.6.34-x86-mingw32 test/TC_FXWindow.rb
fxruby-1.6.34-x64-mingw32 test/TC_FXWindow.rb
fxruby-1.6.34 test/TC_FXWindow.rb
fxruby-1.6.33-x86-mingw32 test/TC_FXWindow.rb
fxruby-1.6.33-x64-mingw32 test/TC_FXWindow.rb
fxruby-1.6.33 test/TC_FXWindow.rb
fxruby-1.6.32-x86-mingw32 test/TC_FXWindow.rb
fxruby-1.6.32-x64-mingw32 test/TC_FXWindow.rb
fxruby-1.6.32 test/TC_FXWindow.rb
fxruby-1.6.32.pre2-x64-mingw32 test/TC_FXWindow.rb
fxruby-1.6.32.pre2-x86-mingw32 test/TC_FXWindow.rb
fxruby-1.6.32.pre2 test/TC_FXWindow.rb
fxruby-1.6.32.pre1 test/TC_FXWindow.rb
fxruby-1.6.32.pre1-x86-mingw32 test/TC_FXWindow.rb
fxruby-1.6.32.pre1-x64-mingw32 test/TC_FXWindow.rb
fxruby-1.6.31-x64-mingw32 test/TC_FXWindow.rb
fxruby-1.6.31-x86-mingw32 test/TC_FXWindow.rb
fxruby-1.6.31 test/TC_FXWindow.rb
fxruby-1.6.30-x86-mingw32 test/TC_FXWindow.rb
fxruby-1.6.30-x64-mingw32 test/TC_FXWindow.rb