Sha256: 425f79c5acc2877f0d83b18130ed6f594f701bca43cca94fd98cd2f9de364f5e
Contents?: true
Size: 464 Bytes
Versions: 10
Compression:
Stored size: 464 Bytes
Contents
class TestGC < Test::Unit::TestCase priority :must def test_closure 10.times do invisible = Gtk::Invisible.new invisible.signal_connect("destroy") {} GC.start end end def test_inheritance_and_gc button = Class.new(Gtk::Button) box = Gtk::HBox.new n = 10 n.times do box.add(button.new) end GC.start assert_equal([button] * 10, box.children.collect {|item| item.class}) end end
Version data entries
10 entries across 10 versions & 1 rubygems