Sha256: 4735027dc0d96a0d654e387d2784902cffb64c9c8b68ea6bd43256dbd770da7a

Contents?: true

Size: 692 Bytes

Versions: 28

Compression:

Stored size: 692 Bytes

Contents

require_relative 'helper'


class TestScrollEvent < Test::Unit::TestCase

  def event(*args)
    Reflex::ScrollEvent.new(*args)
  end

  def point(*args)
    Rays::Point.new(*args)
  end

  def test_initialize()
    e = event 1, 2, 3, 4, 5, 6
    assert_equal 1, e.x
    assert_equal 2, e.y
    assert_equal 3, e.z
    assert_equal 4, e.dx
    assert_equal 5, e.dy
    assert_equal 6, e.dz
    assert_equal point(1, 2, 3), e. scroll
    assert_equal point(4, 5, 6), e.dscroll
  end

  def test_dup()
    e1 = event 1, 2, 3, 4, 5, 6
    e2 = e1.dup
    e1.block
    e3 = e1.dup
    assert_true  e1.blocked?
    assert_false e2.blocked?
    assert_true  e3.blocked?
  end

end# TestScrollEvent

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
reflexion-0.3.3 test/test_scroll_event.rb
reflexion-0.3.2 test/test_scroll_event.rb
reflexion-0.3.1 test/test_scroll_event.rb
reflexion-0.3 test/test_scroll_event.rb
reflexion-0.2.1 test/test_scroll_event.rb
reflexion-0.2 test/test_scroll_event.rb
reflexion-0.1.57 test/test_scroll_event.rb
reflexion-0.1.56 test/test_scroll_event.rb
reflexion-0.1.55 test/test_scroll_event.rb
reflexion-0.1.54 test/test_scroll_event.rb
reflexion-0.1.53 test/test_scroll_event.rb
reflexion-0.1.52 test/test_scroll_event.rb
reflexion-0.1.51 test/test_scroll_event.rb
reflexion-0.1.50 test/test_scroll_event.rb
reflexion-0.1.49 test/test_scroll_event.rb
reflexion-0.1.48 test/test_scroll_event.rb
reflexion-0.1.47 test/test_scroll_event.rb
reflexion-0.1.46 test/test_scroll_event.rb
reflexion-0.1.45 test/test_scroll_event.rb
reflexion-0.1.44 test/test_scroll_event.rb