File: test_gdk_window.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 (29 lines) | stat: -rw-r--r-- 561 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class TestGdkWindow < Test::Unit::TestCase
  include GtkTestUtils

  def setup
    @window = Gtk::Invisible.new.window
  end

  def test_set_composited
    only_gtk_version(2, 12, 0)
    assert_nothing_raised do
      @window.composited = false
    end
  end

  def test_set_opacity
    only_gtk_version(2, 12, 0)
    assert_nothing_raised do
      @window.opacity = 0.5
    end
  end

  def test_set_startup_id
    only_gtk_version(2, 12, 0)
    assert_nothing_raised do
      @window.startup_id = "startup-id"
      @window.startup_id = nil
    end
  end
end