Commit 8da102c7 by Peter Fogg

Update failing Jasmine tests for video.

parent 4e2c4f02
......@@ -2,7 +2,8 @@
<div id="video_example">
<div id="example">
<div id="video_id" class="video"
data-streams="0.75:slowerSpeedYoutubeId,1.0:normalSpeedYoutubeId"
data-youtube-id-0-75="slowerSpeedYoutubeId"
data-normal-speed-video-id="normalSpeedYoutubeId"
data-show-captions="true"
data-start=""
data-end=""
......@@ -18,4 +19,4 @@
</div>
</div>
</div>
</div>
\ No newline at end of file
</div>
......@@ -5,7 +5,6 @@ describe 'Video', ->
loadFixtures 'video.html'
jasmine.stubRequests()
@videosDefinition = '0.75:slowerSpeedYoutubeId,1.0:normalSpeedYoutubeId'
@slowerSpeedYoutubeId = 'slowerSpeedYoutubeId'
@normalSpeedYoutubeId = 'normalSpeedYoutubeId'
metadata =
......@@ -30,7 +29,7 @@ describe 'Video', ->
beforeEach ->
spyOn(window.Video.prototype, 'fetchMetadata').andCallFake ->
@metadata = metadata
@video = new Video '#example', @videosDefinition
@video = new Video '#example'
it 'reset the current video player', ->
expect(window.player).toBeNull()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment