Skip to content
Snippets Groups Projects
Commit 280b2555 authored by Lars Kanis's avatar Lars Kanis
Browse files

Fix test case for TreeItem insert/delete notification.

The semantics have changed with 54a11707. Only "owned" objects can
be expected to be the same. Borrowed objects can change it's object_id
for each call.
parent 8fbb5856
No related branches found
No related tags found
No related merge requests found
......@@ -67,12 +67,12 @@ class TC_FXTreeList < Fox::TestCase
@treeList.connect(SEL_INSERTED) { |sender, sel, ptr|
anItem = ptr
}
theItem = @treeList.appendItem(nil, "", nil, nil, nil, true)
theItem = @treeList.appendItem(nil, FXTreeItem.new(""), true)
assert_same(theItem, anItem)
end
def test_SEL_DELETED
theItem = @treeList.appendItem(nil, "")
theItem = @treeList.appendItem(nil, FXTreeItem.new(""))
anItem = nil
@treeList.connect(SEL_DELETED) { |sender, sel, ptr|
anItem = ptr
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment