Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Window resize fails in Chrome Android #18465
Right now, reftests aren't working for Chrome android because there's no concept of resizing the window.
We should at least either either ignore or work around this issue, possibly by hacking in a zoom modification in lieu of the ability to resize the window itself? @Hexcles
Possibly related to #8571, though we don't have infra coverage for Android anyway.
There's no way to resize a window on Android, but we most likely need to reset the zoom level to 100% to make sure the screenshots are meaningful, comparable and stable. However, it seems like WebDriver specs has no mentioning of zoom level.
I'm looking at
Zoom could and should be easily added to WebDriver.
Note that running reftests on mobile has some interesting challenges. For example you need to ensure that the device pixel ratio is set to 1, even though phones usually have a very different value. Getting the viewport to be the expected size is also a problem. Gecko basically has some special settings that afiak are only used for reftests that allow creating a document with the correct size and getting a screenshot of the full document independent of the actual device size.