Commit 8da102c7 by Peter Fogg

Update failing Jasmine tests for video.

parent 4e2c4f02
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
<div id="video_example"> <div id="video_example">
<div id="example"> <div id="example">
<div id="video_id" class="video" <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-show-captions="true"
data-start="" data-start=""
data-end="" data-end=""
...@@ -18,4 +19,4 @@ ...@@ -18,4 +19,4 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
\ No newline at end of file
...@@ -5,7 +5,6 @@ describe 'Video', -> ...@@ -5,7 +5,6 @@ describe 'Video', ->
loadFixtures 'video.html' loadFixtures 'video.html'
jasmine.stubRequests() jasmine.stubRequests()
@videosDefinition = '0.75:slowerSpeedYoutubeId,1.0:normalSpeedYoutubeId'
@slowerSpeedYoutubeId = 'slowerSpeedYoutubeId' @slowerSpeedYoutubeId = 'slowerSpeedYoutubeId'
@normalSpeedYoutubeId = 'normalSpeedYoutubeId' @normalSpeedYoutubeId = 'normalSpeedYoutubeId'
metadata = metadata =
...@@ -30,7 +29,7 @@ describe 'Video', -> ...@@ -30,7 +29,7 @@ describe 'Video', ->
beforeEach -> beforeEach ->
spyOn(window.Video.prototype, 'fetchMetadata').andCallFake -> spyOn(window.Video.prototype, 'fetchMetadata').andCallFake ->
@metadata = metadata @metadata = metadata
@video = new Video '#example', @videosDefinition @video = new Video '#example'
it 'reset the current video player', -> it 'reset the current video player', ->
expect(window.player).toBeNull() 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