Sha256: 970b1b5978b16b16f742160267192b2bf7787a68b1110f6ecb26862e005e7bba

Contents?: true

Size: 550 Bytes

Versions: 4

Compression:

Stored size: 550 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

4 entries across 4 versions & 2 rubygems

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