Parent

Methods

Class/Module Index [+]

Quicksearch

Gst::Clock

Public Instance Methods

test(tc) click to toggle source
# File gstreamer/tests/misc.rb, line 87
def test(tc)
    # Test active
    tc.assert_bool active?
    # Test speed (should be always float)
    tc.assert_instance_of(Float, speed)
    # Test time (should be either Fixnum or Bignum)
    tc.assert_instance_of(Integer, time)
    # Test resolution (should be either Fixnum or Bignum)
    tc.assert_instance_of(Integer, resolution)
    # Test flags
    flags = {
        can_do_single_sync?    => Gst::Clock::FLAG_CAN_DO_SINGLE_SYNC,
        can_do_single_async?   => Gst::Clock::FLAG_CAN_DO_SINGLE_ASYNC,
        can_do_periodic_sync?  => Gst::Clock::FLAG_CAN_DO_PERIODIC_SYNC,
        can_do_periodic_async? => Gst::Clock::FLAG_CAN_DO_PERIODIC_ASYNC,
        can_set_resolution?    => Gst::Clock::FLAG_CAN_SET_RESOLUTION,
        can_set_speed?         => Gst::Clock::FLAG_CAN_SET_SPEED
    }
    test_flags(tc, flags)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.