Sha256: a43afd6bdb9aa84bf8a6e03453ae445da66b1ba749a45d549659c1ec8954ba99

Contents?: true

Size: 285 Bytes

Versions: 314

Compression:

Stored size: 285 Bytes

Contents

class TestGtkMenuItem < Test::Unit::TestCase
  include GtkTestUtils

  def test_new_with_label
    item = Gtk::MenuItem.new("Label")
    assert_equal("Label", item.label)
  end

  def test_new_with_nil_label
    item = Gtk::MenuItem.new(nil)
    assert_equal("", item.label)
  end
end

Version data entries

314 entries across 306 versions & 3 rubygems

Version Path
gtk3-3.1.2-x86-mingw32 test/test-gtk-menu-item.rb
gtk2-3.1.2-x64-mingw32 test/test_gtk_menu_item.rb
gtk2-3.1.2-x86-mingw32 test/test_gtk_menu_item.rb
gtk3-3.1.2 test/test-gtk-menu-item.rb
gtk2-3.1.2 test/test_gtk_menu_item.rb
savant-echo-1.0.4 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/gtk3-3.1.0/test/test-gtk-menu-item.rb
savant-echo-1.0.4 bin/packaging/vendor/ruby/2.2.0/gems/gtk3-3.1.0/test/test-gtk-menu-item.rb
gtk3-3.1.1-x64-mingw32 test/test-gtk-menu-item.rb
gtk2-3.1.1-x64-mingw32 test/test_gtk_menu_item.rb
gtk3-3.1.1-x86-mingw32 test/test-gtk-menu-item.rb
gtk2-3.1.1-x86-mingw32 test/test_gtk_menu_item.rb
gtk3-3.1.1 test/test-gtk-menu-item.rb
gtk2-3.1.1 test/test_gtk_menu_item.rb
savant-echo-1.0.1 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/gtk3-3.1.0/test/test-gtk-menu-item.rb
savant-echo-1.0.1 bin/packaging/vendor/ruby/2.2.0/gems/gtk3-3.1.0/test/test-gtk-menu-item.rb
savant-echo-0.1.91 bin/packaging/vendor/ruby/2.2.0/gems/gtk3-3.1.0/test/test-gtk-menu-item.rb
savant-echo-0.1.91 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/gtk3-3.1.0/test/test-gtk-menu-item.rb
savant-echo-0.1.9 bin/packaging/vendor/ruby/2.2.0/gems/gtk3-3.1.0/test/test-gtk-menu-item.rb
savant-echo-0.1.9 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/gtk3-3.1.0/test/test-gtk-menu-item.rb
savant-echo-0.1.6 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/gtk3-3.1.0/test/test-gtk-menu-item.rb