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
c0110c2b
Commit
c0110c2b
authored
Apr 09, 2014
by
polesye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused helpers.
parent
192af7a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
common/lib/xmodule/xmodule/js/spec/video/video_speed_control_spec.js
+0
-14
No files found.
common/lib/xmodule/xmodule/js/spec/video/video_speed_control_spec.js
View file @
c0110c2b
...
...
@@ -73,16 +73,6 @@
return
$
.
Event
(
'keydown'
,
{
keyCode
:
key
});
},
tabBackPressEvent
=
function
()
{
return
$
.
Event
(
'keydown'
,
{
keyCode
:
KEY
.
TAB
,
shiftKey
:
true
});
},
tabForwardPressEvent
=
function
()
{
return
$
.
Event
(
'keydown'
,
{
keyCode
:
KEY
.
TAB
,
shiftKey
:
false
});
},
// Get previous element in array or cyles back to the last
// if it is the first.
previousSpeed
=
function
(
index
)
{
...
...
@@ -159,8 +149,6 @@
it
(
'UP and DOWN keydown function as expected on speed entries'
,
function
()
{
// Iterate through list in both directions and check if
// things wrap up correctly.
var
lastEntry
=
speedEntries
.
length
-
1
,
speed_0_75
=
speedEntries
.
filter
(
':contains("0.75x")'
),
speed_1_0
=
speedEntries
.
filter
(
':contains("1.0x")'
);
...
...
@@ -169,11 +157,9 @@
speedControl
.
trigger
(
keyPressEvent
(
KEY
.
UP
));
expect
(
speed_0_75
).
toBeFocused
();
// Iterate with UP key until we have looped.
speed_0_75
.
trigger
(
keyPressEvent
(
KEY
.
UP
));
expect
(
speed_1_0
).
toBeFocused
();
// // Iterate with DOWN key until we have looped.
speed_1_0
.
trigger
(
keyPressEvent
(
KEY
.
DOWN
));
expect
(
speed_0_75
).
toBeFocused
();
});
...
...
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