Sha256: 2d130a366590897b5c7d1576b677a07be378b156bf529b79c73fe3ae35db0055
Contents?: true
Size: 542 Bytes
Versions: 6
Compression:
Stored size: 542 Bytes
Contents
require 'test/unit' require 'testcase' require 'fox12' 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