Sha256: 06b97ef17584aadd27afa7950fb233df5d988485fb4bb7cc7cce58ea048411c8

Contents?: true

Size: 542 Bytes

Versions: 6

Compression:

Stored size: 542 Bytes

Contents

require 'test/unit'
require 'testcase'
require 'fox14'

include Fox

class TC_FXTreeListBox < TestCase
  def setup
    super(self.class.name)
    @treeListBox = FXTreeListBox.new(mainWindow, 1)
  end

  def test_sortRootItems
    @treeListBox.addItemLast(nil, "B")
    @treeListBox.addItemLast(nil, "A")
    @treeListBox.addItemLast(nil, "C")
    @treeListBox.sortRootItems
    assert_equal("A", @treeListBox.firstItem.text)
    assert_equal("B", @treeListBox.firstItem.next.text)
    assert_equal("C", @treeListBox.lastItem.text)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fxruby-1.4.1 tests/TC_FXTreeListBox.rb
fxruby-1.4.2 tests/TC_FXTreeListBox.rb
fxruby-1.4.3 tests/TC_FXTreeListBox.rb
fxruby-1.4.4 tests/TC_FXTreeListBox.rb
fxruby-1.4.5 tests/TC_FXTreeListBox.rb
fxruby-1.4.6 tests/TC_FXTreeListBox.rb