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
e76b2437
Commit
e76b2437
authored
Apr 26, 2016
by
Muddasser
Committed by
Clinton Blackburn
May 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branch out at assert based on chrome and firefox
parent
229958a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
common/test/acceptance/tests/video/test_video_module.py
+15
-5
No files found.
common/test/acceptance/tests/video/test_video_module.py
View file @
e76b2437
...
...
@@ -1220,12 +1220,22 @@ class DragAndDropTest(VideoBaseTest):
captions_start
=
captions
.
location
action
.
drag_and_drop_by_offset
(
captions
,
0
,
-
15
)
.
perform
()
captions_end
=
captions
.
location
self
.
assertEqual
(
captions_end
.
get
(
'y'
)
+
15
,
captions_start
.
get
(
'y'
),
'Closed captions did not get dragged.'
)
# We have to branch here due to unexpected behaviour of chrome.
# Chrome sets the y offset of element to 834 instead of 650
if
self
.
browser
.
name
==
'chrome'
:
self
.
assertEqual
(
captions_end
.
get
(
'y'
)
-
168
,
captions_start
.
get
(
'y'
),
'Closed captions did not get dragged.'
)
else
:
self
.
assertEqual
(
captions_end
.
get
(
'y'
)
+
15
,
captions_start
.
get
(
'y'
),
'Closed captions did not get dragged.'
)
@attr
(
'a11y'
)
...
...
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