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
66bd8127
Commit
66bd8127
authored
Sep 18, 2013
by
jmclaus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Acceptance tests now pass
parent
cbc4bd5c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
common/lib/xmodule/xmodule/video_module.py
+1
-1
lms/djangoapps/courseware/features/video.feature
+2
-2
lms/djangoapps/courseware/features/video.py
+1
-1
No files found.
common/lib/xmodule/xmodule/video_module.py
View file @
66bd8127
...
...
@@ -188,7 +188,7 @@ class VideoModule(VideoFields, XModule):
'show_captions'
:
json
.
dumps
(
self
.
show_captions
),
'start'
:
self
.
start_time
,
'end'
:
self
.
end_time
,
'autoplay'
:
settings
.
MITX_FEATURES
.
get
(
'AUTOPLAY_VIDEOS'
,
Tru
e
),
'autoplay'
:
settings
.
MITX_FEATURES
.
get
(
'AUTOPLAY_VIDEOS'
,
Fals
e
),
# TODO: Later on the value 1500 should be taken from some global
# configuration setting field.
'yt_test_timeout'
:
1500
,
...
...
lms/djangoapps/courseware/features/video.feature
View file @
66bd8127
...
...
@@ -8,9 +8,9 @@ Feature: Video component
# Firefox doesn't have HTML5 (only mp4 - fix here)
@skip_firefox
Scenario
:
Autoplay is
en
abled in LMS for a Video component
Scenario
:
Autoplay is
dis
abled in LMS for a Video component
Given
the course has a Video component in HTML5 mode
Then
when I view the video it
has
autoplay enabled
Then
when I view the video it
does not have
autoplay enabled
# Youtube testing
Scenario
:
Video component is fully rendered in the LMS in Youtube mode with HTML5 sources
...
...
lms/djangoapps/courseware/features/video.py
View file @
66bd8127
...
...
@@ -17,7 +17,7 @@ HTML5_SOURCES_INCORRECT = [
]
@step
(
'when I view the (.*) it does not have autoplay enabled$'
)
def
does_
autoplay_video
(
_step
,
video_type
):
def
does_
not_autoplay
(
_step
,
video_type
):
assert
(
world
.
css_find
(
'.
%
s'
%
video_type
)[
0
][
'data-autoplay'
]
==
'False'
)
...
...
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