Sha256: d613ea3d328a855fc9110caadd39bd14cf22dd029b0c7e436df107ea34e5a137

Contents?: true

Size: 1.13 KB

Versions: 199

Compression:

Stored size: 1.13 KB

Contents

class TestGdkDisplay < Test::Unit::TestCase
  include GtkTestUtils

  def test_supports_predicates
    display = Gdk::Display.default

    assert_boolean(display.supports_shapes?)
    assert_boolean(display.supports_input_shapes?)
    only_gtk_version(2, 12, 0)
    assert_boolean(display.supports_composite?)
  end

  def test_startup_notification_id
    only_gtk_version(2, 12, 0)
    only_x11

    display = Gdk::Display.default
    assert_nil(display.startup_notification_id)
  end

  def test_broadcast_startup_message
    omit("Not yet implemented (GNOME bug #528020)")
    only_gtk_version(2, 16, 0)
    only_x11

    id = "#{$$}_TIME_#{Time.now.to_i}"
    screen = Gdk::Screen.default.number.to_s
    assert_nothing_raised do
      Gdk::Display.default.broadcast_startup_message("new",
                                                     "ID" => id,
                                                     "NAME" => "Hello World",
                                                     "SCREEN" => screen)
      Gdk::Display.default.broadcast_startup_message("remove",
                                                     "ID" => id)
    end
  end
end

Version data entries

199 entries across 199 versions & 2 rubygems

Version Path
gtk2-3.0.0-x86-mingw32 test/test_gdk_display.rb
gtk2-3.0.0-x64-mingw32 test/test_gdk_display.rb
gtk2-2.2.5-x64-mingw32 test/test_gdk_display.rb
gtk2-2.2.5-x86-mingw32 test/test_gdk_display.rb
gtk2-2.2.5 test/test_gdk_display.rb
gtk2-2.2.4-x64-mingw32 test/test_gdk_display.rb
gtk2-2.2.4-x86-mingw32 test/test_gdk_display.rb
gtk2-2.2.4 test/test_gdk_display.rb
gtk2-2.2.3-x86-mingw32 test/test_gdk_display.rb
gtk2-2.2.3 test/test_gdk_display.rb
gtk2-2.2.2-x86-mingw32 test/test_gdk_display.rb
gtk2-2.2.2 test/test_gdk_display.rb
gtk2-2.2.1-x86-mingw32 test/test_gdk_display.rb
gtk2-2.2.1 test/test_gdk_display.rb
gtk2-2.2.0-x86-mingw32 test/test_gdk_display.rb
gtk2-2.2.0 test/test_gdk_display.rb
gtk2-2.1.0-x86-mingw32 test/test_gdk_display.rb
gtk2-2.1.0 test/test_gdk_display.rb
gtk2-2.0.3-x86-mingw32 test/test_gdk_display.rb
gtk2-2.0.3 test/test_gdk_display.rb