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
26908971
Commit
26908971
authored
Oct 16, 2013
by
Valera Rozuvan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enabled 2 disabled Jasmine tests. Fixed them.
parent
cf3ea892
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
4 deletions
+26
-4
common/lib/xmodule/xmodule/js/spec/video/video_quality_control_spec.js
+26
-4
No files found.
common/lib/xmodule/xmodule/js/spec/video/video_quality_control_spec.js
View file @
26908971
...
@@ -20,17 +20,39 @@
...
@@ -20,17 +20,39 @@
});
});
describe
(
'constructor'
,
function
()
{
describe
(
'constructor'
,
function
()
{
var
oldYT
=
window
.
YT
;
beforeEach
(
function
()
{
beforeEach
(
function
()
{
window
.
YT
=
{
Player
:
function
()
{
},
PlayerState
:
oldYT
.
PlayerState
,
ready
:
function
(
f
){
f
();}
};
initialize
();
initialize
();
});
});
afterEach
(
function
()
{
window
.
YT
=
oldYT
;
});
// Disabled when ARIA markup was added to the anchor
// Disabled when ARIA markup was added to the anchor
xit
(
'render the quality control'
,
function
()
{
it
(
'render the quality control'
,
function
()
{
expect
(
videoControl
.
secondaryControlsEl
.
html
()).
toContain
(
"<a href=
\"
#
\"
class=
\"
quality_control
\"
title=
\"
HD
\"
>"
);
expect
(
videoControl
.
secondaryControlsEl
.
html
())
.
toContain
(
'<a '
+
'href="#" '
+
'class="quality_control" '
+
'title="HD" '
+
'role="button" '
+
'aria-disabled="false"'
+
'>HD</a>'
);
});
});
xit
(
'bind the quality control'
,
function
()
{
it
(
'bind the quality control'
,
function
()
{
expect
(
$
(
'.quality_control'
)).
toHandleWith
(
'click'
,
videoQualityControl
.
toggleQuality
);
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