File: test_gdk.rb

package info (click to toggle)
ruby-gnome2 0.19.3-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 11,556 kB
  • ctags: 14,033
  • sloc: ansic: 83,294; ruby: 33,426; makefile: 3,721; cpp: 47; xml: 35
file content (18 lines) | stat: -rw-r--r-- 422 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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(&notify_with_id)
    else
      assert_raise(NotImplementedError, &notify_with_id)
    end
  end
end