Closed
Bug 901781
Opened 12 years ago
Closed 11 years ago
enable visibility tests on tbpl
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(firefox24 wontfix, firefox25 wontfix, firefox26 fixed, b2g18 fixed, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 wontfix, b2g-v1.1hd fixed)
RESOLVED
FIXED
mozilla26
People
(Reporter: automatedtester, Assigned: automatedtester)
References
Details
Attachments
(1 file, 3 obsolete files)
7.25 KB,
patch
|
automatedtester
:
review+
|
Details | Diff | Splinter Review |
The visibility tests are not enabled and this is bad...
Let's enable it!
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → dburns
Assignee | ||
Comment 1•12 years ago
|
||
Try pushes
https://tbpl.mozilla.org/?tree=Try&rev=c25bd7b5ed5c
https://tbpl.mozilla.org/?tree=Try&rev=f259821c1ed2
Attachment #787188 -
Flags: review?(mdas)
Comment 2•12 years ago
|
||
Comment on attachment 787188 [details] [diff] [review]
bug901781.patch
Review of attachment 787188 [details] [diff] [review]:
-----------------------------------------------------------------
::: testing/marionette/marionette-listener.js
@@ +631,5 @@
> + right:(curWindow.pageXOffset + curWindow.innerWidth)};
> + return (viewPort.left <= rect.right + curWindow.pageXOffset &&
> + rect.left + curWindow.pageXOffset <= viewPort.right &&
> + viewPort.top <= rect.bottom + curWindow.pageYOffset &&
> + rect.top + curWindow.pageYOffset <= viewPort.bottom);
This algorithm returns true only if the element is *fully* in the viewport. If the element is mostly (say top, left and right) are in the viewport but say some of its bottom pixels are out of the viewport, this algorithm will consider it as out of the viewport, whereas the previous algorithm was stronger and would detect that it is still within the viewport.
Has the definition of 'in the viewport' changed, or is this a mistake?
Assignee | ||
Comment 3•12 years ago
|
||
This does handle the case. I have added tests to show it working since each element is off the viewport for half the element.
Assignee | ||
Comment 4•12 years ago
|
||
Attachment #787188 -
Attachment is obsolete: true
Attachment #787188 -
Flags: review?(mdas)
Attachment #788406 -
Flags: review?(mdas)
Assignee | ||
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Comment on attachment 788406 [details] [diff] [review]
bug901781-v2.patch
Review of attachment 788406 [details] [diff] [review]:
-----------------------------------------------------------------
I must have misread it because this makes tons of sense, but a .rej file was committed. You can use By if you want in the tests
Attachment #788406 -
Flags: review?(mdas) → review+
Assignee | ||
Comment 7•12 years ago
|
||
just realised that the ini update has been dropped redoing try
https://tbpl.mozilla.org/?tree=Try&rev=d9c37e1c25bf
https://tbpl.mozilla.org/?tree=Try&rev=8554d389e3e6
Assignee | ||
Comment 8•12 years ago
|
||
Just noticed that the ini part of the patch was dropped so redoing try, carrying forward the r+ for the update of algorithm
Attachment #788406 -
Attachment is obsolete: true
Attachment #788426 -
Flags: review+
Assignee | ||
Comment 9•11 years ago
|
||
landed in https://hg.mozilla.org/integration/mozilla-inbound/rev/342c800534ab after rebasing
Assignee | ||
Comment 10•11 years ago
|
||
carrying r+ forward
Attachment #788426 -
Attachment is obsolete: true
Attachment #792728 -
Flags: review+
Assignee | ||
Comment 11•11 years ago
|
||
please uplift to b2g trees awesome sheriffs!
Keywords: checkin-needed
Updated•11 years ago
|
Keywords: checkin-needed
Whiteboard: [checkin-needed-b2g18]
Comment 12•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
Comment 13•11 years ago
|
||
status-b2g18:
--- → fixed
status-b2g18-v1.0.0:
--- → wontfix
status-b2g18-v1.0.1:
--- → wontfix
status-b2g-v1.1hd:
--- → affected
status-firefox24:
--- → wontfix
status-firefox25:
--- → wontfix
status-firefox26:
--- → fixed
Whiteboard: [checkin-needed-b2g18]
Comment 14•11 years ago
|
||
Updated•2 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•