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
f454e10e
Commit
f454e10e
authored
Apr 07, 2014
by
polesye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add fixes.
parent
f0492b3b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
common/lib/xmodule/xmodule/js/spec/video/iterator_spec.js
+1
-1
common/lib/xmodule/xmodule/js/src/video/00_iterator.js
+4
-4
lms/djangoapps/courseware/features/video.py
+0
-2
No files found.
common/lib/xmodule/xmodule/js/spec/video/iterator_spec.js
View file @
f454e10e
...
...
@@ -73,7 +73,7 @@ function (Iterator) {
expect
(
iterator
.
prev
()).
toBe
(
'd'
);
});
it
(
'returns
previous
item if index equal first item'
,
function
()
{
it
(
'returns
last
item if index equal first item'
,
function
()
{
expect
(
iterator
.
prev
()).
toBe
(
'e'
);
});
});
...
...
common/lib/xmodule/xmodule/js/src/video/00_iterator.js
View file @
f454e10e
...
...
@@ -34,7 +34,7 @@ function() {
* @desc Returns next element.
*
* @param {number} index If set, updates current index of iterator.
* @returns {
DOM element
}
* @returns {
any
}
*
*/
next
:
function
(
index
)
{
...
...
@@ -51,7 +51,7 @@ function() {
* @desc Returns previous element.
*
* @param {number} index If set, updates current index of iterator.
* @returns {
DOM element
}
* @returns {
any
}
*
*/
prev
:
function
(
index
)
{
...
...
@@ -67,7 +67,7 @@ function() {
/**
* @desc Returns last element in the list.
*
* @returns {
DOM element
}
* @returns {
any
}
*
*/
last
:
function
()
{
...
...
@@ -77,7 +77,7 @@ function() {
/**
* @desc Returns first element in the list.
*
* @returns {
DOM element
}
* @returns {
any
}
*
*/
first
:
function
()
{
...
...
lms/djangoapps/courseware/features/video.py
View file @
f454e10e
...
...
@@ -397,7 +397,6 @@ def video_is_rendered(_step, mode):
}
html_tag
=
modes
[
mode
.
lower
()]
assert
world
.
css_find
(
'.video {0}'
.
format
(
html_tag
))
.
first
assert
world
.
is_css_present
(
'.speed-link'
)
@step
(
'videos have rendered in "([^"]*)" mode$'
)
...
...
@@ -412,7 +411,6 @@ def videos_are_rendered(_step, mode):
actual
=
len
(
world
.
css_find
(
'.video {0}'
.
format
(
html_tag
)))
expected
=
len
(
world
.
css_find
(
'.xmodule_VideoModule'
))
assert
actual
==
expected
assert
world
.
is_css_present
(
'.speed-link'
)
@step
(
'all sources are correct$'
)
...
...
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