Sha256: 259a3c56b72710e6a3ecd5018ce76c04c9d88050f6fa31081bbc7cc696459b41

Contents?: true

Size: 548 Bytes

Versions: 8

Compression:

Stored size: 548 Bytes

Contents

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

class TC_FXScrollArea < Fox::TestCase
  include Fox

  def setup
    super(self.class.name)
    @scrollArea = FXScrollArea.new(mainWindow)
  end

  def test_position_get
    pos = @scrollArea.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
    @scrollArea.setPosition(0, 0)
  end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fxruby-1.6.23-x86-mingw32 test/TC_FXScrollArea.rb
fxruby-1.6.23 test/TC_FXScrollArea.rb
fxruby-1.6.22-x86-mingw32 test/TC_FXScrollArea.rb
fxruby-1.6.22 test/TC_FXScrollArea.rb
fxruby-1.6.22.pre4-x86-mingw32 test/TC_FXScrollArea.rb
fxruby-1.6.22.pre4 test/TC_FXScrollArea.rb
fxruby-1.6.22.pre3-x86-mingw32 test/TC_FXScrollArea.rb
fxruby-1.6.22.pre3 test/TC_FXScrollArea.rb