[ChromeDriver] Fix Get Window Size on Android
Fixing several issues with code that gets windows size on Android: * The size should not be multiplied by devicePixelRatio, according to W3C standard. * The code should not crash when size is non-integer. (This should be unlikely to happen, now that the size is no longer multiplied by devicePixelRatio. But to be safe, I still added code to handle non-integer.) * In the test, inner size needs to be multiplied by viewport scale to be comparable with window size. The existing code was working by chance. Bug: chromedriver:3339 Change-Id: I1cc3105754a041d0476bf9f971a47911331b8062 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2073068Reviewed-by:Caleb Rouleau <crouleau@chromium.org> Commit-Queue: John Chen <johnchen@chromium.org> Cr-Commit-Position: refs/heads/master@{#744695}
Showing
Please register or sign in to comment