2004-03-17 12:41:08 +00:00
|
|
|
from common import gst, unittest
|
|
|
|
|
|
|
|
try:
|
|
|
|
from gst import interfaces
|
|
|
|
except:
|
|
|
|
raise SystemExit
|
|
|
|
|
|
|
|
import gobject
|
|
|
|
|
|
|
|
class Availability(unittest.TestCase):
|
|
|
|
def testXOverlay(self):
|
|
|
|
assert hasattr(interfaces, 'XOverlay')
|
|
|
|
assert issubclass(interfaces.XOverlay, gobject.GInterface)
|
|
|
|
|
|
|
|
def testMixer(self):
|
|
|
|
assert hasattr(interfaces, 'Mixer')
|
|
|
|
assert issubclass(interfaces.Mixer, gobject.GInterface)
|
|
|
|
|
2004-05-24 10:30:05 +00:00
|
|
|
if getattr(gobject, 'pygtk_version', ()) >= (2,3,92):
|
|
|
|
class FunctionCall(unittest.TestCase):
|
|
|
|
def testXOverlay(self):
|
|
|
|
element = gst.Element('xvimagesink')
|
|
|
|
assert isinstance(element, gst.Element)
|
|
|
|
assert isinstance(element, interfaces.XOverlay)
|
|
|
|
element.set_xwindow_id(0L)
|
|
|
|
|
2004-03-17 12:41:08 +00:00
|
|
|
if __name__ == "__main__":
|
|
|
|
unittest.main()
|