Sha256: 9ced7d6be598bd0dd329d2c74ebc63ef7a03c21afc5e2c9e94fd72772613595a

Contents?: true

Size: 476 Bytes

Versions: 169

Compression:

Stored size: 476 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::Box.new(:horizontal)
    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

169 entries across 161 versions & 2 rubygems

Version Path
gtk3-3.2.5-x86-mingw32 test/test-gc.rb
gtk3-3.2.5 test/test-gc.rb
gtk3-3.2.4-x64-mingw32 test/test-gc.rb
gtk3-3.2.4-x86-mingw32 test/test-gc.rb
gtk3-3.2.4 test/test-gc.rb
gtk3-3.2.3-x64-mingw32 test/test-gc.rb
gtk3-3.2.3-x86-mingw32 test/test-gc.rb
gtk3-3.2.3 test/test-gc.rb
gtk3-3.2.2-x64-mingw32 test/test-gc.rb
gtk3-3.2.2-x86-mingw32 test/test-gc.rb
gtk3-3.2.2 test/test-gc.rb
gtk3-3.2.1-x64-mingw32 test/test-gc.rb
gtk3-3.2.1-x86-mingw32 test/test-gc.rb
gtk3-3.2.1 test/test-gc.rb
gtk3-3.2.0-x86-mingw32 test/test-gc.rb
gtk3-3.2.0-x64-mingw32 test/test-gc.rb
gtk3-3.2.0 test/test-gc.rb
gtk3-3.1.9-x64-mingw32 test/test-gc.rb
gtk3-3.1.9-x86-mingw32 test/test-gc.rb
gtk3-3.1.9 test/test-gc.rb