Sha256: d32f914eb4add8a47c72a44d6e2da23f079cda4c324b740196cfb81d2d3f328e

Contents?: true

Size: 549 Bytes

Versions: 50

Compression:

Stored size: 549 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_kind_of(Integer, 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

50 entries across 50 versions & 1 rubygems

Version Path
fxruby-1.6.48 test/TC_FXWindow.rb
fxruby-1.6.48-x64-mingw32 test/TC_FXWindow.rb
fxruby-1.6.48-x64-mingw-ucrt test/TC_FXWindow.rb
fxruby-1.6.48-x86-mingw32 test/TC_FXWindow.rb
fxruby-1.6.47 test/TC_FXWindow.rb
fxruby-1.6.47-x64-mingw-ucrt test/TC_FXWindow.rb
fxruby-1.6.47-x64-mingw32 test/TC_FXWindow.rb
fxruby-1.6.47-x86-mingw32 test/TC_FXWindow.rb
fxruby-1.6.46 test/TC_FXWindow.rb
fxruby-1.6.46-x64-mingw32 test/TC_FXWindow.rb
fxruby-1.6.46-x64-mingw-ucrt test/TC_FXWindow.rb
fxruby-1.6.46-x86-mingw32 test/TC_FXWindow.rb
fxruby-1.6.45 test/TC_FXWindow.rb
fxruby-1.6.45-x64-mingw32 test/TC_FXWindow.rb
fxruby-1.6.45-x64-mingw-ucrt test/TC_FXWindow.rb
fxruby-1.6.45-x86-mingw32 test/TC_FXWindow.rb
fxruby-1.6.44 test/TC_FXWindow.rb
fxruby-1.6.44-x64-mingw32 test/TC_FXWindow.rb
fxruby-1.6.44-x86-mingw32 test/TC_FXWindow.rb
fxruby-1.6.43 test/TC_FXWindow.rb