Closed Bug 1253244 Opened 8 years ago Closed 8 years ago

Use element.coordinates in listener

Categories

(Remote Protocol :: Marionette, defect)

Version 3
defect
Not set
normal

Tracking

(firefox47 fixed, firefox48 fixed)

RESOLVED FIXED
mozilla48
Tracking Status
firefox47 --- fixed
firefox48 --- fixed

People

(Reporter: ato, Assigned: ato)

Details

(Keywords: pi-marionette-server)

Attachments

(3 files)

listener.js currently has its own function to retrieve coordinates.  This is not needed because there is one in the testing/marionette/element.js module, called element.coordinates.
Assignee: nobody → ato
Status: NEW → ASSIGNED
There are some test failures in the try run, and I will fix those soon.
Comment on attachment 8726220 [details]
MozReview Request: Bug 1253244 - Use element.coordinates in listener; r?automatedtester

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/37867/diff/1-2/
Comment on attachment 8726222 [details]
MozReview Request: Bug 1253244 - Use element.coordinates in action module; r?automatedtester

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/37869/diff/1-2/
The xOffset and yOffset arguments to element.coordinates previously
checked loose falsiness.  If a number <= 0 would be given as an argument,
they would not be used and it would return the centre of the element.

This change adds more checks, documentation, and tests.

Review commit: https://reviewboard.mozilla.org/r/38223/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/38223/
Attachment #8726751 - Flags: review?(dburns)
Comment on attachment 8726220 [details]
MozReview Request: Bug 1253244 - Use element.coordinates in listener; r?automatedtester

https://reviewboard.mozilla.org/r/37867/#review34781
Attachment #8726220 - Flags: review?(dburns) → review+
Comment on attachment 8726222 [details]
MozReview Request: Bug 1253244 - Use element.coordinates in action module; r?automatedtester

https://reviewboard.mozilla.org/r/37869/#review34785
Attachment #8726222 - Flags: review?(dburns) → review+
Comment on attachment 8726751 [details]
MozReview Request: Bug 1253244 - Correct x,y offset type checks and add tests; r?automatedtester

https://reviewboard.mozilla.org/r/38223/#review34789
Attachment #8726751 - Flags: review?(dburns) → review+
Comment on attachment 8726220 [details]
MozReview Request: Bug 1253244 - Use element.coordinates in listener; r?automatedtester

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/37867/diff/2-3/
Comment on attachment 8726222 [details]
MozReview Request: Bug 1253244 - Use element.coordinates in action module; r?automatedtester

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/37869/diff/2-3/
Comment on attachment 8726751 [details]
MozReview Request: Bug 1253244 - Correct x,y offset type checks and add tests; r?automatedtester

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/38223/diff/1-2/
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: