Closed Bug 489160 Opened 11 years ago Closed 1 year ago

--browser-chrome Mochitests on Fennec [panning/zoom]

Categories

(Firefox for Android Graveyard :: Panning/Zooming, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jmaher, Unassigned)

References

Details

Attachments

(2 files, 1 obsolete file)

Testdev item to write automated tests for Fennec panning and zoom functionality.  Here is an initial list of functional tests that we should automate:

* Verify panning up, down, left, right on a large page
* Verify multiple pans on a long page top to bottom to top 
* Verify double tap zooms in and allows panning
* Verify double tap zooms in, double tap zooms out, and panning still works


Some of this work might be completed in the performance work underway.
Component: General → Panning/Zooming
Blocks: 553474
more details on specific test steps

* Verify panning (up, down, left, right)
1) load up a large webpage (this needs to be created and checked in with patch)
2) on default load, ensure we can pan all the way down (use strokes about the size of a page
3) to verify, look at browser location on webpage, use fennecmark as example
4) now pan all the way back up
5) verify we are at the top
6) pan to the right until we pull the side bar
7) verify we only pull the side bar when we are at the end of the page
8) pan to the left until we pull the side bar
9) verify we only pull the side bar when we are at the end of the page

* Verify loose panning
1) load a large webpage
2) zoom in by double clicking
3) start panning right/left
4) verify you can pan (in the same motion) down as well
5) start panning diagonally
6) verify you can pan (in the same motion) down as well
7) double click to zoom out
8) start panning diagonal
9) pan to one side to view the sidebar (in the same pan)
10) now pan up and down (in the same pan)
11) verify that you can pan up and down while viewing the sidebar 

* Verify panning locking (vertical)
1) load a large webpage
2) zoom in by double clicking
3) start panning down
4) move the mouse to the left/right in the same pan
5) verify the page didn't pan left/right
6) double click to zoom out
7) start panning down
8) in the same pan, move the mouse left or right
9) verify you don't pull out sidebars

* verify panning locking (horizontal)
1) load a webpage
2) start panning to the right
3) verify sidebar is displayed
4) in the same pan, go down
5) verify that you are not panning down and locked horizontally

* verify zoom + pan
1) load a webpage
2) double click to zoom
3) verify you are zoomed (probably by page dimensions)
4) pan up, down, left and right (all short and small pans)
5) verify each pan works as expected
6) double click to zoom out
7) repeat steps 4 and 5

* verify zoom in/out
1) load a webpage
2) double click to zoom in
3) as soon as you are zoomed, double click to zoom out
4) as soon as you are zoomed, double click to zoom out
5) verify you can pan up and down in two small pans
6) triple click to zoom in
7) verify it is the same zoom level as a double click
8) double click to zoom out
9) verify you are zoomed out
10) quadruple click(4 click sequence) to zoom in
11) verify it is the same zoom level as a double click
12) triple click to zoom out
13) verify you are at the same zoom level that you originally loaded at

For some examples of panning and zooming look here:
http://hg.mozilla.org/users/tglek_mozilla.com/fennecmark/file/a7a90edd661c/content
:adifire had trouble uploading, overall patch looks like a great start.  Wanted to get it up here for any feedback and safekeeping.
This times out possibly due to many setTimeout given for checking the kinetic scrolling. The tests work individually.
Attachment #464260 - Attachment is obsolete: true
Depends on: 586313
Closing all opened bug in a graveyard component
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.