Sha256: 9ab39a3eb74edd807c1da1856a2354d2559f2f3342598219d3cde15af9ddfe7f

Contents?: true

Size: 536 Bytes

Versions: 5

Compression:

Stored size: 536 Bytes

Contents

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

include Fox

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

  def test_sortRootItems
    @treeListBox.appendItem(nil, "B")
    @treeListBox.appendItem(nil, "A")
    @treeListBox.appendItem(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

5 entries across 5 versions & 1 rubygems

Version Path
fxruby-1.6.10 tests/TC_FXTreeListBox.rb
fxruby-1.6.6 tests/TC_FXTreeListBox.rb
fxruby-1.6.7 tests/TC_FXTreeListBox.rb
fxruby-1.6.8 tests/TC_FXTreeListBox.rb
fxruby-1.6.9 tests/TC_FXTreeListBox.rb