Class/Module Index [+]

Quicksearch

TestGC

Public Instance Methods

test_closure() click to toggle source
# File gtk2/test/test_gc.rb, line 6
def test_closure
  10.times do
    invisible = Gtk::Invisible.new
    invisible.signal_connect("destroy") {}
    GC.start
  end
end
test_inheritance_and_gc() click to toggle source
# File gtk2/test/test_gc.rb, line 14
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

[Validate]

Generated with the Darkfish Rdoc Generator 2.