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.4.3 test/test_gdk_display.rb
gtk2-3.4.2 test/test_gdk_display.rb
gtk2-3.4.1 test/test_gdk_display.rb
gtk2-3.4.0 test/test_gdk_display.rb
gtk2-3.3.9 test/test_gdk_display.rb
gtk2-3.3.8 test/test_gdk_display.rb
gtk2-3.3.7 test/test_gdk_display.rb
gtk2-3.3.6 test/test_gdk_display.rb
gtk2-3.3.5 test/test_gdk_display.rb
gtk2-3.3.4 test/test_gdk_display.rb
gtk2-3.3.3 test/test_gdk_display.rb
gtk2-3.3.2 test/test_gdk_display.rb
gtk2-3.3.1 test/test_gdk_display.rb
gtk2-3.3.0 test/test_gdk_display.rb
gtk2-3.2.9-x64-mingw32 test/test_gdk_display.rb
gtk2-3.2.9-x86-mingw32 test/test_gdk_display.rb
gtk2-3.2.9 test/test_gdk_display.rb
gtk2-3.2.8-x64-mingw32 test/test_gdk_display.rb
gtk2-3.2.8-x86-mingw32 test/test_gdk_display.rb
gtk2-3.2.8 test/test_gdk_display.rb