Sha256: 69e8db3d74fd0861b09d5a1b29abb7e9dabbd3bfaabd3855d87865540a3c5f76

Contents?: true

Size: 560 Bytes

Versions: 100

Compression:

Stored size: 560 Bytes

Contents

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

class TC_FXScrollWindow < Fox::TestCase
  include Fox

  def setup
    super(self.class.name)
    @scrollWindow = FXScrollWindow.new(mainWindow)
  end

  def test_position_get
    pos = @scrollWindow.position
    assert_instance_of(Array, pos)
    assert_equal(2, pos.size)
    assert_kind_of(Integer, pos[0])
    assert_kind_of(Integer, pos[1])
  end

  def test_setPosition
    @scrollWindow.setPosition(0, 0)
  end

  def test_position_move_and_resize
    @scrollWindow.position(0, 0, 1, 1)
  end
end

Version data entries

100 entries across 100 versions & 1 rubygems

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