Codebase list ruby-fxruby / 3d5a4e82-a43d-42a1-b45b-3cdbad1db042/upstream/1.6.45+git20221125.1.7d76b2a test / TC_FXScrollWindow.rb
3d5a4e82-a43d-42a1-b45b-3cdbad1db042/upstream/1.6.45+git20221125.1.7d76b2a

Tree @3d5a4e82-a43d-42a1-b45b-3cdbad1db042/upstream/1.6.45+git20221125.1.7d76b2a (Download .tar.gz)

TC_FXScrollWindow.rb @3d5a4e82-a43d-42a1-b45b-3cdbad1db042/upstream/1.6.45+git20221125.1.7d76b2araw · history · blame

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