This repository has been archived on 2021-09-15 . You can view files and clone it, but cannot push or open issues or pull requests.
19 lines
422 B
Ruby
19 lines
422 B
Ruby
class TestGdk < Test::Unit::TestCase
|
|||
include GtkTestUtils
|
|||
|
|||
def test_notify_startup_complete
|
|||
assert_nothing_raised do
|
|||
Gdk.notify_startup_complete
|
|||
end
|
|||
|
|||
notify_with_id = Proc.new do
|
|||
Gdk.notify_startup_complete("startup-id")
|
|||
end
|
|||
if Gtk.check_version?(2, 12, 0)
|
|||
assert_nothing_raised(¬ify_with_id)
|
|||
else
|
|||
assert_raise(NotImplementedError, ¬ify_with_id)
|
|||
end
|
|||
end
|
|||
end
|