Sha256: 2c4ccb3f983b2033c298f57aed3b6e5cf9db15f1e496c2bd2992f7cafd5803b2

Contents?: true

Size: 529 Bytes

Versions: 42

Compression:

Stored size: 529 Bytes

Contents

class TestCaps < Test::Unit::TestCase
  def test_size
    assert_equal(1, smpte_caps.size)
  end

  def test_get_structure
    assert_equal("video/x-raw-yuv", smpte_caps[0].name)
  end

  def test_each
    assert_equal(["video/x-raw-yuv"],
                 smpte_caps.collect {|structure| structure.name})
  end

  private
  def smpte_caps
    smpte = Gst::ElementFactory.find("smpte")
    assert_not_nil(smpte)
    smpte.pad_templates.find do |template|
      template.direction == Gst::Pad::SRC
    end.caps.to_caps
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
gstreamer-1.2.6-x86-mingw32 test/test_caps.rb
gstreamer-1.2.6 test/test_caps.rb
gstreamer-1.2.5-x86-mingw32 test/test_caps.rb
gstreamer-1.2.5 test/test_caps.rb
gstreamer-1.2.4-x86-mingw32 test/test_caps.rb
gstreamer-1.2.4 test/test_caps.rb
gstreamer-1.2.3-x86-mingw32 test/test_caps.rb
gstreamer-1.2.3 test/test_caps.rb
gstreamer-1.2.2-x86-mingw32 test/test_caps.rb
gstreamer-1.2.2 test/test_caps.rb
gstreamer-1.2.1-x86-mingw32 test/test_caps.rb
gstreamer-1.2.1 test/test_caps.rb
gstreamer-1.2.0-x86-mingw32 test/test_caps.rb
gstreamer-1.2.0 test/test_caps.rb
gstreamer-1.1.9-x86-mingw32 test/test_caps.rb
gstreamer-1.1.9 test/test_caps.rb
gstreamer-1.1.8-x86-mingw32 test/test_caps.rb
gstreamer-1.1.8 test/test_caps.rb
gstreamer-1.1.7 test/test_caps.rb
gstreamer-1.1.7-x86-mingw32 test/test_caps.rb