Closed
Bug 1036498
Opened 12 years ago
Closed 11 years ago
Add deprecation warnings for location and size on element
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla34
People
(Reporter: automatedtester, Assigned: automatedtester)
References
Details
(Keywords: pi-marionette-spec)
Attachments
(1 file)
|
7.65 KB,
patch
|
jgriffin
:
review+
|
Details | Diff | Splinter Review |
in bug 1036365 we need to add deprecation warnings for location and size since these have been superceeded by getElementRect
| Assignee | ||
Comment 1•12 years ago
|
||
when doing this we will also need to correct location and see if there are broken tests for that
| Assignee | ||
Comment 2•11 years ago
|
||
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → dburns
Status: NEW → ASSIGNED
| Assignee | ||
Updated•11 years ago
|
Attachment #8462779 -
Flags: review?(jgriffin)
Comment 3•11 years ago
|
||
Comment on attachment 8462779 [details] [diff] [review]
Add deprecation warnings to HTMLElement#size and HTMLElement#location in Marionette
Review of attachment 8462779 [details] [diff] [review]:
-----------------------------------------------------------------
::: testing/marionette/client/marionette/marionette.py
@@ +141,5 @@
> def size(self):
> '''
> A dictionary with the size of the element.
> '''
> + warnings.warn("This property has been deprecated and will be removed in a future version. \
Should we say 'The size property', rather than 'This property'?
@@ +163,5 @@
>
> :returns: a dictionary containing x and y as entries
>
> """
> + warnings.warn("This property has been deprecated and will be removed in a future version. \
Same as above.
Attachment #8462779 -
Flags: review?(jgriffin) → review+
| Assignee | ||
Comment 4•11 years ago
|
||
| Assignee | ||
Updated•11 years ago
|
Keywords: ateam-marionette-spec
Comment 5•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Comment 6•11 years ago
|
||
David, DeprecationWarning is ignored by default. Do we need to turn on the warnings filter to let user know location and size will be deprecated?
Updated•3 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•