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
2628c224
Commit
2628c224
authored
Mar 21, 2017
by
muhammad-ammar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix flaky video js test
TNL-6748
parent
a5df7a4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
common/lib/xmodule/xmodule/js/spec/video/html5_video_spec.js
+6
-7
No files found.
common/lib/xmodule/xmodule/js/spec/video/html5_video_spec.js
View file @
2628c224
...
...
@@ -41,19 +41,17 @@
expect
(
state
.
videoPlayer
.
player
.
video
.
play
).
toHaveBeenCalled
();
});
// Failing on master. See TNL-6748.
xit
(
'player state was changed'
,
function
(
done
)
{
it
(
'player state was changed'
,
function
(
done
)
{
jasmine
.
waitUntil
(
function
()
{
return
state
.
videoPlayer
.
player
.
getPlayerState
()
===
STATUS
.
PLAYING
;
}).
always
(
done
);
});
// Flaky. Checking the parameters of calls to onStateChange() will likely be more reliable.
xit
(
'callback was not called'
,
function
(
done
)
{
it
(
'callback was called'
,
function
(
done
)
{
jasmine
.
waitUntil
(
function
()
{
return
state
.
videoPlayer
.
player
.
getPlayerState
()
!==
STATUS
.
PAUSED
;
}).
then
(
function
()
{
expect
(
state
.
videoPlayer
.
player
.
callStateChangeCallback
).
not
.
toHaveBeenCalled
();
expect
(
state
.
videoPlayer
.
player
.
callStateChangeCallback
).
toHaveBeenCalled
();
}).
always
(
done
);
});
});
...
...
@@ -105,8 +103,9 @@
jasmine
.
waitUntil
(
function
()
{
return
state
.
videoPlayer
.
player
.
getPlayerState
()
!==
STATUS
.
PAUSED
;
}).
then
(
function
()
{
expect
(
state
.
videoPlayer
.
player
.
getPlayerState
())
.
toBe
(
STATUS
.
BUFFERING
);
expect
([
STATUS
.
BUFFERING
,
STATUS
.
PLAYING
]).
toContain
(
state
.
videoPlayer
.
player
.
getPlayerState
()
);
}).
always
(
done
);
});
...
...
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