Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
f5902da9
Commit
f5902da9
authored
Nov 30, 2017
by
David Ormsbee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix VideoModule tests
parent
2f5018e6
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
25 additions
and
25 deletions
+25
-25
common/lib/xmodule/xmodule/js/fixtures/video.html
+1
-1
common/lib/xmodule/xmodule/js/fixtures/video_all.html
+1
-1
common/lib/xmodule/xmodule/js/fixtures/video_hls.html
+1
-1
common/lib/xmodule/xmodule/js/fixtures/video_html5.html
+1
-1
common/lib/xmodule/xmodule/js/fixtures/video_no_captions.html
+1
-1
common/lib/xmodule/xmodule/js/fixtures/video_with_bumper.html
+3
-3
common/lib/xmodule/xmodule/js/fixtures/video_yt_multiple.html
+3
-3
common/lib/xmodule/xmodule/js/spec/helper.js
+1
-1
common/lib/xmodule/xmodule/js/spec/video/video_events_bumper_plugin_spec.js
+10
-10
common/lib/xmodule/xmodule/js/spec/video/video_player_spec.js
+2
-2
common/static/common/js/jasmine.common.conf.js
+1
-1
No files found.
common/lib/xmodule/xmodule/js/fixtures/video.html
View file @
f5902da9
...
...
@@ -4,7 +4,7 @@
<div
id=
"video_id"
class=
"video closed"
data-metadata=
'{"autohideHtml5": "true", "autoplay": "false", "captionDataDir": "", "endTime": "", "generalSpeed": "1.0", "saveStateUrl": "/save_user_state", "savedVideoPosition": "0", "showCaptions": "true", "sources": [], "speed": "1.5", "startTime": "", "streams": "0.5:7tqY6eQzVhE,1.0:cogebirgzzM,1.5:abcdefghijkl", "sub": "Z5KLxerq05Y", "transcriptAvailableTranslationsUrl": "/transcript/available_translations", "transcriptLanguage": "en", "transcriptLanguages": {"en": "English", "de": "Deutsch", "zh": "普通话"}, "transcriptTranslationUrl": "/transcript/translation/__lang__", "ytApiUrl": "/base/fixtures/youtube_iframe_api.js", "ytImageUrl": "", "ytTestTimeout": "1500", "ytMetadataUrl": "www.googleapis.com/youtube/v3/videos/"}'
data-metadata=
'{"autohideHtml5": "true", "autoplay": "false", "captionDataDir": "", "endTime": "", "generalSpeed": "1.0", "saveStateUrl": "/save_user_state", "savedVideoPosition": "0", "showCaptions": "true", "sources": [], "speed": "1.5", "startTime": "", "streams": "0.5:7tqY6eQzVhE,1.0:cogebirgzzM,1.5:abcdefghijkl", "sub": "Z5KLxerq05Y", "transcriptAvailableTranslationsUrl": "/transcript/available_translations", "transcriptLanguage": "en", "transcriptLanguages": {"en": "English", "de": "Deutsch", "zh": "普通话"}, "transcriptTranslationUrl": "/transcript/translation/__lang__", "ytApiUrl": "/base/
common/lib/xmodule/xmodule/js/
fixtures/youtube_iframe_api.js", "ytImageUrl": "", "ytTestTimeout": "1500", "ytMetadataUrl": "www.googleapis.com/youtube/v3/videos/"}'
>
<div
class=
"focus_grabber first"
></div>
...
...
common/lib/xmodule/xmodule/js/fixtures/video_all.html
View file @
f5902da9
...
...
@@ -4,7 +4,7 @@
<div
id=
"video_id"
class=
"video closed"
data-metadata=
'{"autohideHtml5": "true", "autoplay": "false", "captionDataDir": "", "endTime": "", "generalSpeed": "1.0", "saveStateUrl": "/save_user_state", "savedVideoPosition": "0", "showCaptions": "true", "sources": ["/base/
fixtures/test.mp4","/base/fixtures/test.webm","/base/fixtures/test.ogv"], "speed": "1.5", "startTime": "", "streams": "", "sub": "Z5KLxerq05Y", "transcriptAvailableTranslationsUrl": "/transcript/available_translations", "transcriptLanguage": "en", "transcriptLanguages": {"en": "English", "de": "Deutsch", "zh": "普通话"}, "transcriptTranslationUrl": "/transcript/translation/__lang__", "ytApiUrl": "/base
/fixtures/youtube_iframe_api.js", "ytImageUrl": "", "ytTestTimeout": "1500", "ytMetadataUrl": "www.googleapis.com/youtube/v3/videos/"}'
data-metadata=
'{"autohideHtml5": "true", "autoplay": "false", "captionDataDir": "", "endTime": "", "generalSpeed": "1.0", "saveStateUrl": "/save_user_state", "savedVideoPosition": "0", "showCaptions": "true", "sources": ["/base/
common/lib/xmodule/xmodule/js/fixtures/test.mp4","/base/common/lib/xmodule/xmodule/js/fixtures/test.webm","/base/common/lib/xmodule/xmodule/js/fixtures/test.ogv"], "speed": "1.5", "startTime": "", "streams": "", "sub": "Z5KLxerq05Y", "transcriptAvailableTranslationsUrl": "/transcript/available_translations", "transcriptLanguage": "en", "transcriptLanguages": {"en": "English", "de": "Deutsch", "zh": "普通话"}, "transcriptTranslationUrl": "/transcript/translation/__lang__", "ytApiUrl": "/base/common/lib/xmodule/xmodule/js
/fixtures/youtube_iframe_api.js", "ytImageUrl": "", "ytTestTimeout": "1500", "ytMetadataUrl": "www.googleapis.com/youtube/v3/videos/"}'
>
<div
class=
"focus_grabber first"
></div>
...
...
common/lib/xmodule/xmodule/js/fixtures/video_hls.html
View file @
f5902da9
...
...
@@ -4,7 +4,7 @@
<div
id=
"video_id"
class=
"video closed"
data-metadata=
'{"duration": 111, "autohideHtml5": "true", "autoplay": "false", "captionDataDir": "", "endTime": "", "generalSpeed": "1.0", "saveStateUrl": "/save_user_state", "savedVideoPosition": "0", "showCaptions": "true", "sources": ["/base/
fixtures/hls/hls.m3u8", "/base/fixtures/test.mp4","/base/fixtures/test.webm"], "speed": "1.5", "startTime": "", "streams": "", "sub": "Z5KLxerq05Y", "transcriptAvailableTranslationsUrl": "/transcript/available_translations", "transcriptLanguage": "en", "transcriptLanguages": {"en": "English", "de": "Deutsch", "zh": "普通话"}, "transcriptTranslationUrl": "/transcript/translation/__lang__", "ytApiUrl": "/base
/fixtures/youtube_iframe_api.js", "ytImageUrl": "", "ytTestTimeout": "1500", "ytMetadataUrl": "www.googleapis.com/youtube/v3/videos/", "source": "", "poster": "/media/video-images/poster.png"}'
data-metadata=
'{"duration": 111, "autohideHtml5": "true", "autoplay": "false", "captionDataDir": "", "endTime": "", "generalSpeed": "1.0", "saveStateUrl": "/save_user_state", "savedVideoPosition": "0", "showCaptions": "true", "sources": ["/base/
common/lib/xmodule/xmodule/js/fixtures/hls/hls.m3u8", "/base/common/lib/xmodule/xmodule/js/fixtures/test.mp4","/base/common/lib/xmodule/xmodule/js/fixtures/test.webm"], "speed": "1.5", "startTime": "", "streams": "", "sub": "Z5KLxerq05Y", "transcriptAvailableTranslationsUrl": "/transcript/available_translations", "transcriptLanguage": "en", "transcriptLanguages": {"en": "English", "de": "Deutsch", "zh": "普通话"}, "transcriptTranslationUrl": "/transcript/translation/__lang__", "ytApiUrl": "/base/common/lib/xmodule/xmodule/js
/fixtures/youtube_iframe_api.js", "ytImageUrl": "", "ytTestTimeout": "1500", "ytMetadataUrl": "www.googleapis.com/youtube/v3/videos/", "source": "", "poster": "/media/video-images/poster.png"}'
>
<div
class=
"focus_grabber first"
></div>
...
...
common/lib/xmodule/xmodule/js/fixtures/video_html5.html
View file @
f5902da9
...
...
@@ -4,7 +4,7 @@
<div
id=
"video_id"
class=
"video closed"
data-metadata=
'{"duration": 111, "autohideHtml5": "true", "autoplay": "false", "captionDataDir": "", "endTime": "", "generalSpeed": "1.0", "saveStateUrl": "/save_user_state", "savedVideoPosition": "0", "showCaptions": "true", "sources": ["/base/
fixtures/test.mp4","/base/fixtures/test.webm","/base/fixtures/test.ogv"], "speed": "1.5", "startTime": "", "streams": "", "sub": "Z5KLxerq05Y", "transcriptAvailableTranslationsUrl": "/transcript/available_translations", "transcriptLanguage": "en", "transcriptLanguages": {"en": "English", "de": "Deutsch", "zh": "普通话"}, "transcriptTranslationUrl": "/transcript/translation/__lang__", "ytApiUrl": "/base
/fixtures/youtube_iframe_api.js", "ytImageUrl": "", "ytTestTimeout": "1500", "ytMetadataUrl": "www.googleapis.com/youtube/v3/videos/", "source": "", "html5_sources": ["http://youtu.be/3_yD_cEKoCk.mp4"], "poster": "/media/video-images/poster.png"}'
data-metadata=
'{"duration": 111, "autohideHtml5": "true", "autoplay": "false", "captionDataDir": "", "endTime": "", "generalSpeed": "1.0", "saveStateUrl": "/save_user_state", "savedVideoPosition": "0", "showCaptions": "true", "sources": ["/base/
common/lib/xmodule/xmodule/js/fixtures/test.mp4","/base/common/lib/xmodule/xmodule/js/fixtures/test.webm","/base/common/lib/xmodule/xmodule/js/fixtures/test.ogv"], "speed": "1.5", "startTime": "", "streams": "", "sub": "Z5KLxerq05Y", "transcriptAvailableTranslationsUrl": "/transcript/available_translations", "transcriptLanguage": "en", "transcriptLanguages": {"en": "English", "de": "Deutsch", "zh": "普通话"}, "transcriptTranslationUrl": "/transcript/translation/__lang__", "ytApiUrl": "/base/common/lib/xmodule/xmodule/js
/fixtures/youtube_iframe_api.js", "ytImageUrl": "", "ytTestTimeout": "1500", "ytMetadataUrl": "www.googleapis.com/youtube/v3/videos/", "source": "", "html5_sources": ["http://youtu.be/3_yD_cEKoCk.mp4"], "poster": "/media/video-images/poster.png"}'
>
<div
class=
"focus_grabber first"
></div>
...
...
common/lib/xmodule/xmodule/js/fixtures/video_no_captions.html
View file @
f5902da9
...
...
@@ -4,7 +4,7 @@
<div
id=
"video_id"
class=
"video closed"
data-metadata=
'{"streams":"0.5:7tqY6eQzVhE,1.0:cogebirgzzM,1.5:abcdefghijkl", "showCaptions": false, "saveStateUrl": "/save_user_state", "savedVideoPosition": "0", "speed": "1.5", "startTime": "", "end": "", "transcriptAvailableTranslationsUrl": "/transcript/available_translations", "transcriptLanguage": "en", "transcriptLanguages": {"en": "English", "de": "Deutsch", "zh": "普通话"}, "transcriptTranslationUrl": "/transcript/translation/__lang__", "ytApiUrl": "/base/fixtures/youtube_iframe_api.js", "ytTestTimeout": "1500", "ytMetadataUrl": "www.googleapis.com/youtube/v3/videos/"}'
data-metadata=
'{"streams":"0.5:7tqY6eQzVhE,1.0:cogebirgzzM,1.5:abcdefghijkl", "showCaptions": false, "saveStateUrl": "/save_user_state", "savedVideoPosition": "0", "speed": "1.5", "startTime": "", "end": "", "transcriptAvailableTranslationsUrl": "/transcript/available_translations", "transcriptLanguage": "en", "transcriptLanguages": {"en": "English", "de": "Deutsch", "zh": "普通话"}, "transcriptTranslationUrl": "/transcript/translation/__lang__", "ytApiUrl": "/base/
common/lib/xmodule/xmodule/js/
fixtures/youtube_iframe_api.js", "ytTestTimeout": "1500", "ytMetadataUrl": "www.googleapis.com/youtube/v3/videos/"}'
>
<div
class=
"focus_grabber first"
></div>
...
...
common/lib/xmodule/xmodule/js/fixtures/video_with_bumper.html
View file @
f5902da9
...
...
@@ -4,9 +4,9 @@
<div
id=
"video_id"
class=
"video closed"
data-metadata=
'{"autohideHtml5": "true", "autoplay": "false", "captionDataDir": "", "endTime": "", "generalSpeed": "1.0", "saveStateUrl": "/save_user_state", "savedVideoPosition": "0", "showCaptions": "true", "sources": ["/base/
fixtures/test.mp4","/base/fixtures/test.webm","/base/fixtures/test.ogv"], "speed": "1.5", "startTime": "", "streams": "", "sub": "Z5KLxerq05Y", "transcriptAvailableTranslationsUrl": "/transcript/available_translations", "transcriptLanguage": "en", "transcriptLanguages": {"en": "English", "de": "Deutsch", "zh": "普通话"}, "transcriptTranslationUrl": "/transcript/translation/__lang__", "ytApiUrl": "/base
/fixtures/youtube_iframe_api.js", "ytImageUrl": "", "ytTestTimeout": "1500", "ytMetadataUrl": "www.googleapis.com/youtube/v3/videos/"}'
data-bumper-metadata=
'{"transcriptLanguage": "en", "showCaptions": "true", "transcriptLanguages": {"en": "English", "de": "Deutsch", "zh": "普通话"}, "sources": ["/base/
fixtures/test.mp4","/base/fixtures/test.webm","/base
/fixtures/test.ogv"], "transcriptTranslationUrl": "/transcript/translation/__lang__/?is_bumper=1", "transcriptAvailableTranslationsUrl": "/transcript/available_translations/?is_bumper=1", "streams": "", "saveStateUrl": "/save_user_state"}'
data-poster=
'{"url": "/base/fixtures/poster.jpg", "type": "youtube"}'
data-metadata=
'{"autohideHtml5": "true", "autoplay": "false", "captionDataDir": "", "endTime": "", "generalSpeed": "1.0", "saveStateUrl": "/save_user_state", "savedVideoPosition": "0", "showCaptions": "true", "sources": ["/base/
common/lib/xmodule/xmodule/js/fixtures/test.mp4","/base/common/lib/xmodule/xmodule/js/fixtures/test.webm","/base/common/lib/xmodule/xmodule/js/fixtures/test.ogv"], "speed": "1.5", "startTime": "", "streams": "", "sub": "Z5KLxerq05Y", "transcriptAvailableTranslationsUrl": "/transcript/available_translations", "transcriptLanguage": "en", "transcriptLanguages": {"en": "English", "de": "Deutsch", "zh": "普通话"}, "transcriptTranslationUrl": "/transcript/translation/__lang__", "ytApiUrl": "/base/common/lib/xmodule/xmodule/js
/fixtures/youtube_iframe_api.js", "ytImageUrl": "", "ytTestTimeout": "1500", "ytMetadataUrl": "www.googleapis.com/youtube/v3/videos/"}'
data-bumper-metadata=
'{"transcriptLanguage": "en", "showCaptions": "true", "transcriptLanguages": {"en": "English", "de": "Deutsch", "zh": "普通话"}, "sources": ["/base/
common/lib/xmodule/xmodule/js/fixtures/test.mp4","/base/common/lib/xmodule/xmodule/js/fixtures/test.webm","/base/common/lib/xmodule/xmodule/js
/fixtures/test.ogv"], "transcriptTranslationUrl": "/transcript/translation/__lang__/?is_bumper=1", "transcriptAvailableTranslationsUrl": "/transcript/available_translations/?is_bumper=1", "streams": "", "saveStateUrl": "/save_user_state"}'
data-poster=
'{"url": "/base/
common/lib/xmodule/xmodule/js/
fixtures/poster.jpg", "type": "youtube"}'
>
<div
class=
"focus_grabber first"
></div>
...
...
common/lib/xmodule/xmodule/js/fixtures/video_yt_multiple.html
View file @
f5902da9
...
...
@@ -4,7 +4,7 @@
<div
id=
"video_id1"
class=
"video closed"
data-metadata=
'{"autohideHtml5": "true", "autoplay": "false", "captionDataDir": "", "endTime": "", "generalSpeed": "1.0", "saveStateUrl": "/save_user_state", "savedVideoPosition": "0", "showCaptions": "true", "sources": ["/base/
fixtures/test.mp4","/base/fixtures/test.webm","/base/fixtures/test.ogv"], "speed": "1.5", "startTime": "", "streams": "0.5:7tqY6eQzVhE,1.0:cogebirgzzM,1.5:abcdefghijkl", "sub": "", "transcriptAvailableTranslationsUrl": "/transcript/available_translations", "transcriptLanguage": "en", "transcriptLanguages": {"en": "English", "de": "Deutsch", "zh": "普通话"}, "transcriptTranslationUrl": "/transcript/translation/__lang__", "ytApiUrl": "/base
/fixtures/youtube_iframe_api.js", "ytImageUrl": "", "ytTestTimeout": "1500", "ytMetadataUrl": "www.googleapis.com/youtube/v3/videos/"}'
data-metadata=
'{"autohideHtml5": "true", "autoplay": "false", "captionDataDir": "", "endTime": "", "generalSpeed": "1.0", "saveStateUrl": "/save_user_state", "savedVideoPosition": "0", "showCaptions": "true", "sources": ["/base/
common/lib/xmodule/xmodule/js/fixtures/test.mp4","/base/common/lib/xmodule/xmodule/js/fixtures/test.webm","/base/common/lib/xmodule/xmodule/js/fixtures/test.ogv"], "speed": "1.5", "startTime": "", "streams": "0.5:7tqY6eQzVhE,1.0:cogebirgzzM,1.5:abcdefghijkl", "sub": "", "transcriptAvailableTranslationsUrl": "/transcript/available_translations", "transcriptLanguage": "en", "transcriptLanguages": {"en": "English", "de": "Deutsch", "zh": "普通话"}, "transcriptTranslationUrl": "/transcript/translation/__lang__", "ytApiUrl": "/base/common/lib/xmodule/xmodule/js
/fixtures/youtube_iframe_api.js", "ytImageUrl": "", "ytTestTimeout": "1500", "ytMetadataUrl": "www.googleapis.com/youtube/v3/videos/"}'
>
<div
class=
"focus_grabber first"
></div>
...
...
@@ -38,7 +38,7 @@
<div
id=
"video_id2"
class=
"video"
data-metadata=
'{"autohideHtml5": "true", "autoplay": "false", "captionDataDir": "", "endTime": "", "generalSpeed": "1.0", "saveStateUrl": "/save_user_state", "savedVideoPosition": "0", "showCaptions": "true", "sources": ["/base/
fixtures/test.mp4","/base/fixtures/test.webm","/base/fixtures/test.ogv"], "speed": "1.0", "startTime": "", "streams": "0.75:7tqY6eQzVhE,1.0:cogebirgzzM", "sub": "", "transcriptAvailableTranslationsUrl": "/transcript/available_translations", "transcriptLanguage": "en", "transcriptLanguages": {"en": "English", "de": "Deutsch", "zh": "普通话"}, "transcriptTranslationUrl": "/transcript/translation/__lang__", "ytApiUrl": "/base
/fixtures/youtube_iframe_api.js", "ytImageUrl": "", "ytTestTimeout": "1500", "ytMetadataUrl": "www.googleapis.com/youtube/v3/videos/"}'
data-metadata=
'{"autohideHtml5": "true", "autoplay": "false", "captionDataDir": "", "endTime": "", "generalSpeed": "1.0", "saveStateUrl": "/save_user_state", "savedVideoPosition": "0", "showCaptions": "true", "sources": ["/base/
common/lib/xmodule/xmodule/js/fixtures/test.mp4","/base/common/lib/xmodule/xmodule/js/fixtures/test.webm","/base/common/lib/xmodule/xmodule/js/fixtures/test.ogv"], "speed": "1.0", "startTime": "", "streams": "0.75:7tqY6eQzVhE,1.0:cogebirgzzM", "sub": "", "transcriptAvailableTranslationsUrl": "/transcript/available_translations", "transcriptLanguage": "en", "transcriptLanguages": {"en": "English", "de": "Deutsch", "zh": "普通话"}, "transcriptTranslationUrl": "/transcript/translation/__lang__", "ytApiUrl": "/base/common/lib/xmodule/xmodule/js
/fixtures/youtube_iframe_api.js", "ytImageUrl": "", "ytTestTimeout": "1500", "ytMetadataUrl": "www.googleapis.com/youtube/v3/videos/"}'
>
<div
class=
"tc-wrapper"
>
<article
class=
"video-wrapper"
>
...
...
@@ -69,7 +69,7 @@
<div
id=
"video_id3"
class=
"video"
data-metadata=
'{"autohideHtml5": "true", "autoplay": "false", "captionDataDir": "", "endTime": "", "generalSpeed": "1.0", "saveStateUrl": "/save_user_state", "savedVideoPosition": "0", "showCaptions": "true", "sources": ["/base/
fixtures/test.mp4","/base/fixtures/test.webm","/base/fixtures/test.ogv"], "speed": "1.0", "startTime": "", "streams": "0.75:7tqY6eQzVhE,1.0:cogebirgzzM", "sub": "", "transcriptAvailableTranslationsUrl": "/transcript/available_translations", "transcriptLanguage": "en", "transcriptLanguages": {"en": "English", "de": "Deutsch", "zh": "普通话"}, "transcriptTranslationUrl": "/transcript/translation/__lang__", "ytApiUrl": "/base
/fixtures/youtube_iframe_api.js", "ytImageUrl": "", "ytTestTimeout": "1500", "ytMetadataUrl": "www.googleapis.com/youtube/v3/videos/"}'
data-metadata=
'{"autohideHtml5": "true", "autoplay": "false", "captionDataDir": "", "endTime": "", "generalSpeed": "1.0", "saveStateUrl": "/save_user_state", "savedVideoPosition": "0", "showCaptions": "true", "sources": ["/base/
common/lib/xmodule/xmodule/js/fixtures/test.mp4","/base/common/lib/xmodule/xmodule/js/fixtures/test.webm","/base/common/lib/xmodule/xmodule/js/fixtures/test.ogv"], "speed": "1.0", "startTime": "", "streams": "0.75:7tqY6eQzVhE,1.0:cogebirgzzM", "sub": "", "transcriptAvailableTranslationsUrl": "/transcript/available_translations", "transcriptLanguage": "en", "transcriptLanguages": {"en": "English", "de": "Deutsch", "zh": "普通话"}, "transcriptTranslationUrl": "/transcript/translation/__lang__", "ytApiUrl": "/base/common/lib/xmodule/xmodule/js
/fixtures/youtube_iframe_api.js", "ytImageUrl": "", "ytTestTimeout": "1500", "ytMetadataUrl": "www.googleapis.com/youtube/v3/videos/"}'
>
<div
class=
"tc-wrapper"
>
<article
class=
"video-wrapper"
>
...
...
common/lib/xmodule/xmodule/js/spec/helper.js
View file @
f5902da9
...
...
@@ -73,7 +73,7 @@
// Time waitsFor() should wait for before failing a test.
window
.
WAIT_TIMEOUT
=
5000
;
jasmine
.
getFixtures
().
fixturesPath
+=
'
common/lib/xmodule/xmodule/js/fixtures'
;
jasmine
.
getFixtures
().
fixturesPath
=
'/base/
common/lib/xmodule/xmodule/js/fixtures'
;
jasmine
.
stubbedMetadata
=
{
'7tqY6eQzVhE'
:
{
...
...
common/lib/xmodule/xmodule/js/spec/video/video_events_bumper_plugin_spec.js
View file @
f5902da9
...
...
@@ -33,7 +33,7 @@
state
.
el
.
trigger
(
'ready'
);
expect
(
Logger
.
log
).
toHaveBeenCalledWith
(
'edx.video.bumper.loaded'
,
{
host_component_id
:
'id'
,
bumper_id
:
'/base/fixtures/test.mp4'
,
bumper_id
:
'/base/
common/lib/xmodule/xmodule/js/
fixtures/test.mp4'
,
code
:
'html5'
,
duration
:
20
});
...
...
@@ -43,7 +43,7 @@
state
.
el
.
trigger
(
'play'
);
expect
(
Logger
.
log
).
toHaveBeenCalledWith
(
'edx.video.bumper.played'
,
{
host_component_id
:
'id'
,
bumper_id
:
'/base/fixtures/test.mp4'
,
bumper_id
:
'/base/
common/lib/xmodule/xmodule/js/
fixtures/test.mp4'
,
code
:
'html5'
,
currentTime
:
10
,
duration
:
20
...
...
@@ -54,7 +54,7 @@
state
.
el
.
trigger
(
'ended'
);
expect
(
Logger
.
log
).
toHaveBeenCalledWith
(
'edx.video.bumper.stopped'
,
{
host_component_id
:
'id'
,
bumper_id
:
'/base/fixtures/test.mp4'
,
bumper_id
:
'/base/
common/lib/xmodule/xmodule/js/
fixtures/test.mp4'
,
code
:
'html5'
,
currentTime
:
10
,
duration
:
20
...
...
@@ -64,7 +64,7 @@
state
.
el
.
trigger
(
'stop'
);
expect
(
Logger
.
log
).
toHaveBeenCalledWith
(
'edx.video.bumper.stopped'
,
{
host_component_id
:
'id'
,
bumper_id
:
'/base/fixtures/test.mp4'
,
bumper_id
:
'/base/
common/lib/xmodule/xmodule/js/
fixtures/test.mp4'
,
code
:
'html5'
,
currentTime
:
10
,
duration
:
20
...
...
@@ -75,7 +75,7 @@
state
.
el
.
trigger
(
'skip'
,
[
false
]);
expect
(
Logger
.
log
).
toHaveBeenCalledWith
(
'edx.video.bumper.skipped'
,
{
host_component_id
:
'id'
,
bumper_id
:
'/base/fixtures/test.mp4'
,
bumper_id
:
'/base/
common/lib/xmodule/xmodule/js/
fixtures/test.mp4'
,
code
:
'html5'
,
currentTime
:
10
,
duration
:
20
...
...
@@ -86,7 +86,7 @@
state
.
el
.
trigger
(
'skip'
,
[
true
]);
expect
(
Logger
.
log
).
toHaveBeenCalledWith
(
'edx.video.bumper.dismissed'
,
{
host_component_id
:
'id'
,
bumper_id
:
'/base/fixtures/test.mp4'
,
bumper_id
:
'/base/
common/lib/xmodule/xmodule/js/
fixtures/test.mp4'
,
code
:
'html5'
,
currentTime
:
10
,
duration
:
20
...
...
@@ -97,7 +97,7 @@
state
.
el
.
trigger
(
'language_menu:show'
);
expect
(
Logger
.
log
).
toHaveBeenCalledWith
(
'edx.video.bumper.transcript.menu.shown'
,
{
host_component_id
:
'id'
,
bumper_id
:
'/base/fixtures/test.mp4'
,
bumper_id
:
'/base/
common/lib/xmodule/xmodule/js/
fixtures/test.mp4'
,
code
:
'html5'
,
duration
:
20
});
...
...
@@ -107,7 +107,7 @@
state
.
el
.
trigger
(
'language_menu:hide'
);
expect
(
Logger
.
log
).
toHaveBeenCalledWith
(
'edx.video.bumper.transcript.menu.hidden'
,
{
host_component_id
:
'id'
,
bumper_id
:
'/base/fixtures/test.mp4'
,
bumper_id
:
'/base/
common/lib/xmodule/xmodule/js/
fixtures/test.mp4'
,
code
:
'html5'
,
duration
:
20
});
...
...
@@ -117,7 +117,7 @@
state
.
el
.
trigger
(
'captions:show'
);
expect
(
Logger
.
log
).
toHaveBeenCalledWith
(
'edx.video.bumper.transcript.shown'
,
{
host_component_id
:
'id'
,
bumper_id
:
'/base/fixtures/test.mp4'
,
bumper_id
:
'/base/
common/lib/xmodule/xmodule/js/
fixtures/test.mp4'
,
code
:
'html5'
,
currentTime
:
10
,
duration
:
20
...
...
@@ -128,7 +128,7 @@
state
.
el
.
trigger
(
'captions:hide'
);
expect
(
Logger
.
log
).
toHaveBeenCalledWith
(
'edx.video.bumper.transcript.hidden'
,
{
host_component_id
:
'id'
,
bumper_id
:
'/base/fixtures/test.mp4'
,
bumper_id
:
'/base/
common/lib/xmodule/xmodule/js/
fixtures/test.mp4'
,
code
:
'html5'
,
currentTime
:
10
,
duration
:
20
...
...
common/lib/xmodule/xmodule/js/spec/video/video_player_spec.js
View file @
f5902da9
...
...
@@ -979,7 +979,7 @@ function(VideoPlayer, HLS) {
});
it
(
'can extract hls video sources correctly'
,
function
()
{
expect
(
state
.
HLSVideoSources
).
toEqual
([
'/base/fixtures/hls/hls.m3u8'
]);
expect
(
state
.
HLSVideoSources
).
toEqual
([
'/base/
common/lib/xmodule/xmodule/js/
fixtures/hls/hls.m3u8'
]);
expect
(
state
.
videoPlayer
.
player
.
hls
).
toBeDefined
();
});
...
...
@@ -1000,7 +1000,7 @@ function(VideoPlayer, HLS) {
describe
(
'HLS Video Errors'
,
function
()
{
beforeEach
(
function
()
{
spyOn
(
HLS
,
'isSupported'
).
and
.
returnValue
(
false
);
state
=
jasmine
.
initializeHLSPlayer
({
sources
:
[
'/base/fixtures/hls/hls.m3u8'
]});
state
=
jasmine
.
initializeHLSPlayer
({
sources
:
[
'/base/
common/lib/xmodule/xmodule/js/
fixtures/hls/hls.m3u8'
]});
});
it
(
'shows error message if hls is not supported'
,
function
()
{
...
...
common/static/common/js/jasmine.common.conf.js
View file @
f5902da9
...
...
@@ -2,7 +2,7 @@
'use strict'
;
// By default, fixtures are loaded from spec/javascripts/fixtures but in karma everything gets served from /base
jasmine
.
getFixtures
().
fixturesPath
=
'/base/'
;
jasmine
.
getFixtures
().
fixturesPath
=
'/base/
common/lib/xmodule/xmodule/js/fixtures
'
;
// https://github.com/edx/js-test-tool/blob/master/js_test_tool/templates/jasmine_test_runner.html#L10
// Stub out modal dialog alerts, which will prevent
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment