Included Modules

Class/Module Index [+]

Quicksearch

TestGtkMenuItem

Public Instance Methods

test_new_with_label() click to toggle source
# File gtk2/test/test_gtk_menu_item.rb, line 4
def test_new_with_label
  item = Gtk::MenuItem.new("Label")
  assert_equal("Label", item.label)
end
test_new_with_nil_label() click to toggle source
# File gtk2/test/test_gtk_menu_item.rb, line 9
def test_new_with_nil_label
  item = Gtk::MenuItem.new(nil)
  assert_equal("", item.label)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.