blob: 65d3af0646e55a8928cd1ad78267a213141e8697 [file] [log] [blame]
EVENT(load)
RUN(video.src = findMediaFile('video', 'content/test'))
EVENT(canplaythrough)
RUN(originalQuality = video.getVideoPlaybackQuality())
EXPECTED (originalQuality.totalVideoFrames >= '0') OK
EXPECTED (originalQuality.droppedVideoFrames == '0') OK
EXPECTED (originalQuality.totalFrameDelay == '0') OK
RUN(video.play())
EVENT(playing)
RUN(newQuality = video.getVideoPlaybackQuality())
EXPECTED (newQuality.creationTime > originalQuality.creationTime == 'true') OK
EXPECTED (newQuality.totalVideoFrames >= originalQuality.totalVideoFrames == 'true') OK
EXPECTED (newQuality.droppedVideoFrames >= originalQuality.droppedVideoFrames == 'true') OK
EXPECTED (newQuality.droppedVideoFrames <= originalQuality.totalVideoFrames == 'true') OK
END OF TEST