File: test_gdk_window_attribute.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 (9 lines) | stat: -rw-r--r-- 316 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
class TestGtkWindowAttribute < Test::Unit::TestCase
  include GtkTestUtils

  def test_initialize
    attrs = Gdk::WindowAttr.new(100, 100, :only, :temp)
    assert_equal([100, 100, Gdk::Window::INPUT_ONLY, Gdk::Window::TEMP],
                 [attrs.width, attrs.height, attrs.wclass, attrs.window_type])
  end
end