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