Sha256: e943a5d427d9c2a5749801d6c4f54513a9c66c1057eac49fac89d488dff77306

Contents?: true

Size: 659 Bytes

Versions: 9

Compression:

Stored size: 659 Bytes

Contents

require 'test_helper'

describe Gtk::Menu do
  unless GObjectIntrospection::IRepository.default.find_by_name('Gtk', 'Menu').find_method('popup')
    describe "#popup" do
      it "delegates to popup_for_device" do
        mnu = Gtk::Menu.new
        mock(mnu).popup_for_device(nil,
                                   'parent_menu_shell', 'parent_menu_item',
                                   'func', 'data',
                                   nil,
                                   'button', 'activate_time')
        mnu.popup('parent_menu_shell', 'parent_menu_item', 'func', 'data',
                  'button', 'activate_time')
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-gtk-0.12.1 test/gir_ffi-gtk/menu_test.rb
gir_ffi-gtk-0.12.0 test/gir_ffi-gtk/menu_test.rb
gir_ffi-gtk-0.11.0 test/gir_ffi-gtk/menu_test.rb
gir_ffi-gtk-0.10.0 test/gir_ffi-gtk/menu_test.rb
gir_ffi-gtk-0.9.0 test/gir_ffi-gtk/menu_test.rb
gir_ffi-gtk-0.8.1 test/gir_ffi-gtk/menu_test.rb
gir_ffi-gtk-0.8.0 test/gir_ffi-gtk/menu_test.rb
gir_ffi-gtk-0.7.2 test/gir_ffi-gtk/menu_test.rb
gir_ffi-gtk-0.7.1 test/gir_ffi-gtk/menu_test.rb