Sha256: 07f5c23c698c7ea615bd6ff35c7fd8ede88ee2dad03335b4ed2fd507d568b255

Contents?: true

Size: 543 Bytes

Versions: 38

Compression:

Stored size: 543 Bytes

Contents

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

include Fox

class TC_FXScrollArea < TestCase
  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

38 entries across 38 versions & 1 rubygems

Version Path
fxruby-1.6.20-x86-mingw32 test/TC_FXScrollArea.rb
fxruby-1.6.20-x86-linux test/TC_FXScrollArea.rb
fxruby-1.6.20 test/TC_FXScrollArea.rb
fxruby-1.6.20-universal-darwin-10 test/TC_FXScrollArea.rb
fxruby-1.6.19-x86-mingw32 tests/TC_FXScrollArea.rb
fxruby-1.6.14-mswin32 tests/TC_FXScrollArea.rb
fxruby-1.6.13-mswin32 tests/TC_FXScrollArea.rb
fxruby-1.6.0 tests/TC_FXScrollArea.rb
fxruby-1.6.1 tests/TC_FXScrollArea.rb
fxruby-1.6.10 tests/TC_FXScrollArea.rb
fxruby-1.6.11 tests/TC_FXScrollArea.rb
fxruby-1.6.12 tests/TC_FXScrollArea.rb
fxruby-1.6.13 tests/TC_FXScrollArea.rb
fxruby-1.6.14-universal-darwin-9 tests/TC_FXScrollArea.rb
fxruby-1.6.15-universal-darwin-9 tests/TC_FXScrollArea.rb
fxruby-1.6.14 tests/TC_FXScrollArea.rb
fxruby-1.6.15 tests/TC_FXScrollArea.rb
fxruby-1.6.15-x86-mswin32-60 tests/TC_FXScrollArea.rb
fxruby-1.6.16-universal-darwin-9 tests/TC_FXScrollArea.rb
fxruby-1.6.16-x86-mswin32-60 tests/TC_FXScrollArea.rb