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
4622b24a
Commit
4622b24a
authored
Jun 23, 2017
by
Muhammad Ammar
Committed by
GitHub
Jun 23, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15385 from edx/ammar/fix-video-flaky-test
fix video flaky test
parents
b2663002
4d609f80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
common/lib/xmodule/xmodule/js/spec/video/video_player_spec.js
+9
-13
No files found.
common/lib/xmodule/xmodule/js/spec/video/video_player_spec.js
View file @
4622b24a
...
...
@@ -380,22 +380,18 @@ function(VideoPlayer, HLS) {
});
describe
(
'when the video is playing'
,
function
()
{
beforeEach
(
function
(
done
)
{
it
(
'call runTimer in seekTo on player'
,
function
(
done
)
{
state
.
videoPlayer
.
play
();
jasmine
.
waitUntil
(
function
()
{
return
state
.
videoPlayer
.
isPlaying
();
}).
done
(
done
);
});
it
(
'call runTimer in seekTo on player'
,
function
()
{
spyOn
(
state
.
videoPlayer
,
'stopTimer'
).
and
.
callThrough
();
spyOn
(
state
.
videoPlayer
,
'runTimer'
).
and
.
callThrough
();
state
.
videoPlayer
.
seekTo
(
10
);
expect
(
state
.
videoPlayer
.
currentTime
).
toBe
(
10
);
expect
(
state
.
videoPlayer
.
stopTimer
).
toHaveBeenCalled
();
expect
(
state
.
videoPlayer
.
runTimer
).
toHaveBeenCalled
();
}).
then
(
function
()
{
spyOn
(
state
.
videoPlayer
,
'stopTimer'
).
and
.
callThrough
();
spyOn
(
state
.
videoPlayer
,
'runTimer'
).
and
.
callThrough
();
state
.
videoPlayer
.
seekTo
(
10
);
expect
(
state
.
videoPlayer
.
currentTime
).
toBe
(
10
);
expect
(
state
.
videoPlayer
.
stopTimer
).
toHaveBeenCalled
();
expect
(
state
.
videoPlayer
.
runTimer
).
toHaveBeenCalled
();
}).
always
(
done
);
});
it
(
'seek the player'
,
function
()
{
...
...
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