forked from openlp/openlp
Fix tests
This commit is contained in:
parent
7ee8d8c576
commit
9f7725573d
@ -320,6 +320,7 @@ class MediaController(object):
|
|||||||
display.hasAudio = False
|
display.hasAudio = False
|
||||||
for player in self.mediaPlayers.values():
|
for player in self.mediaPlayers.values():
|
||||||
if player.isActive:
|
if player.isActive:
|
||||||
|
print "z"
|
||||||
player.setup(display)
|
player.setup(display)
|
||||||
|
|
||||||
def set_controls_visible(self, controller, value):
|
def set_controls_visible(self, controller, value):
|
||||||
|
@ -103,12 +103,15 @@ class VlcPlayer(MediaPlayer):
|
|||||||
self.original_name = u'VLC'
|
self.original_name = u'VLC'
|
||||||
self.display_name = u'&VLC'
|
self.display_name = u'&VLC'
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
|
print "p",parent
|
||||||
self.canFolder = True
|
self.canFolder = True
|
||||||
self.audio_extensions_list = AUDIO_EXT
|
self.audio_extensions_list = AUDIO_EXT
|
||||||
self.video_extensions_list = VIDEO_EXT
|
self.video_extensions_list = VIDEO_EXT
|
||||||
|
|
||||||
def setup(self, display):
|
def setup(self, display):
|
||||||
|
print "D",display
|
||||||
display.vlcWidget = QtGui.QFrame(display)
|
display.vlcWidget = QtGui.QFrame(display)
|
||||||
|
display.vlcWidget.setFrameStyle(QtGui.QFrame.NoFrame)
|
||||||
# creating a basic vlc instance
|
# creating a basic vlc instance
|
||||||
command_line_options = u'--no-video-title-show'
|
command_line_options = u'--no-video-title-show'
|
||||||
if not display.hasAudio:
|
if not display.hasAudio:
|
||||||
|
@ -26,8 +26,6 @@ class TestServiceItem(TestCase):
|
|||||||
service_item = ServiceItem(None)
|
service_item = ServiceItem(None)
|
||||||
|
|
||||||
#THEN: We should get back a valid service item
|
#THEN: We should get back a valid service item
|
||||||
print service_item
|
|
||||||
print dir(service_item)
|
|
||||||
assert service_item.is_valid is True, u'A valid Service Item'
|
assert service_item.is_valid is True, u'A valid Service Item'
|
||||||
assert service_item.missing_frames() is True, u'No frames loaded yet'
|
assert service_item.missing_frames() is True, u'No frames loaded yet'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user