Sha256: 0e077cdb6fa15dffeb4840968e7903060267017928ab16f1641fb25e909e0176

Contents?: true

Size: 656 Bytes

Versions: 92

Compression:

Stored size: 656 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_nil_parent_raises_argument_error
    assert_raise(ArgumentError){ FXScrollArea.new(nil) }
  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

92 entries across 92 versions & 1 rubygems

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