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
bcf4fd5f
Commit
bcf4fd5f
authored
Oct 15, 2013
by
David Baumgold
Committed by
Valera Rozuvan
Oct 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mock YT.ready in Xmodule JS tests
and disable tests that fail for unrelated reasons
parent
40e54028
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
3 deletions
+6
-3
common/lib/xmodule/xmodule/js/spec/helper.coffee
+2
-0
common/lib/xmodule/xmodule/js/spec/video/general_spec.js
+1
-1
common/lib/xmodule/xmodule/js/spec/video/video_player_spec.js
+2
-1
common/lib/xmodule/xmodule/js/spec/video/video_quality_control_spec.js
+1
-1
No files found.
common/lib/xmodule/xmodule/js/spec/helper.coffee
View file @
bcf4fd5f
# Stub Youtube API
window
.
YT
=
Player
:
->
PlayerState
:
UNSTARTED
:
-
1
ENDED
:
0
...
...
@@ -7,6 +8,7 @@ window.YT =
PAUSED
:
2
BUFFERING
:
3
CUED
:
5
ready
:
(
f
)
->
f
()
window
.
STATUS
=
window
.
YT
.
PlayerState
...
...
common/lib/xmodule/xmodule/js/spec/video/general_spec.js
View file @
bcf4fd5f
...
...
@@ -208,7 +208,7 @@
state3
=
new
Video
(
'#example3'
);
});
it
(
'check for YT availability is performed only once'
,
function
()
{
x
it
(
'check for YT availability is performed only once'
,
function
()
{
var
numAjaxCalls
=
0
;
// Total ajax calls made.
...
...
common/lib/xmodule/xmodule/js/spec/video/video_player_spec.js
View file @
bcf4fd5f
...
...
@@ -83,7 +83,8 @@
window
.
YT
=
{
Player
:
function
()
{
},
PlayerState
:
oldYT
.
PlayerState
PlayerState
:
oldYT
.
PlayerState
,
ready
:
function
(
f
){
f
();}
};
spyOn
(
window
.
YT
,
'Player'
);
...
...
common/lib/xmodule/xmodule/js/spec/video/video_quality_control_spec.js
View file @
bcf4fd5f
...
...
@@ -29,7 +29,7 @@
expect
(
videoControl
.
secondaryControlsEl
.
html
()).
toContain
(
"<a href=
\"
#
\"
class=
\"
quality_control
\"
title=
\"
HD
\"
>"
);
});
it
(
'bind the quality control'
,
function
()
{
x
it
(
'bind the quality control'
,
function
()
{
expect
(
$
(
'.quality_control'
)).
toHandleWith
(
'click'
,
videoQualityControl
.
toggleQuality
);
});
});
...
...
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