event()
click to toggle source
setup()
click to toggle source
def setup
@scroll = Gdk::EventScroll.new(:scroll)
end
test_direction()
click to toggle source
def test_direction
assert_kind_of(Gdk::ScrollDirection, @scroll.direction)
end
test_state()
click to toggle source
def test_state
assert_not_nil(@scroll.state)
end
test_time()
click to toggle source
def test_time
assert_kind_of(Integer, @scroll.time)
end
test_x()
click to toggle source
def test_x
assert_kind_of(Float, @scroll.x)
end
test_x_root()
click to toggle source
def test_x_root
assert_kind_of(Float, @scroll.x_root)
end
test_y()
click to toggle source
def test_y
assert_kind_of(Float, @scroll.y)
end
test_y_root()
click to toggle source
def test_y_root
assert_kind_of(Float, @scroll.y_root)
end