Sha256: 7493889c5d6401d4ab03721c19469c81a9f8910fe8c1322526648a4d70588b6e
Contents?: true
Size: 490 Bytes
Versions: 1
Compression:
Stored size: 490 Bytes
Contents
# frozen_string_literal: true require 'test_helper' describe Gtk::Dialog do describe '.new_with_buttons' do it 'creates a Gtk::Dialog with the right title and buttons' do dialog = Gtk::Dialog.new_with_buttons 'Foo', nil, :modal, [['Bar', :yes]] _(dialog.title).must_equal 'Foo' button = dialog.action_area.children.first _(button.label).must_equal 'Bar' _(dialog.response_for_widget(button)).must_equal Gtk::ResponseType.to_int(:yes) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-gtk-0.15.0 | test/gir_ffi-gtk/dialog_test.rb |