Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(542)

Issue 694113002: Fix tests and enable virtual viewport on Android WebView. (Closed)

Created:
6 years, 1 month ago by aelias_OOO_until_Jul13
Modified:
6 years, 1 month ago
CC:
android-webview-reviews_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix tests and enable virtual viewport on Android WebView. In pinch virtual viewport mode, the viewport visible to Javascript is sized to the width of the content and its height is that width multiplied by the aspect ratio of the true viewport. So I changed the Android WebView tests to only do vertical scrolling, and also changed the width of the test page to not be larger than the viewport (so that vertical scrolling also behaves as expected). NOTRY=true BUG=148816 Committed: https://crrev.com/879b23ff025295c97d950a2917d67f6714f17bd5 Cr-Commit-Position: refs/heads/master@{#302712}

Patch Set 1 #

Patch Set 2 : Change tests to avoid horizontal scrolling #

Total comments: 4

Patch Set 3 : Switch to minimum-scale=1 #

Patch Set 4 : Reupload to rerun tryjobs #

Patch Set 5 : Add @DisableHardwareAccelerationForTest #

Patch Set 6 : Reupload for tryjob #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -80 lines) Patch
M android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java View 1 2 3 4 3 chunks +3 lines, -77 lines 0 comments Download
M android_webview/lib/main/aw_main_delegate.cc View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (2 generated)
aelias_OOO_until_Jul13
Hi Marcin, This should fix the remaining Webview-specific failures for pinch viewport. I'd like to ...
6 years, 1 month ago (2014-11-03 09:12:05 UTC) #2
mkosiba (inactive)
Hi Alex, It seems like none of the tests scroll horizontally now? I don't think ...
6 years, 1 month ago (2014-11-03 11:38:59 UTC) #3
bokan
On 2014/11/03 11:38:59, mkosiba wrote: > Hi Alex, > It seems like none of the ...
6 years, 1 month ago (2014-11-03 13:39:19 UTC) #4
aelias_OOO_until_Jul13
OK, thanks to bokan@ for the tip, I had forgotten about that behavior. With minimum-scale=1, ...
6 years, 1 month ago (2014-11-04 06:32:05 UTC) #5
mkosiba (inactive)
lgtm
6 years, 1 month ago (2014-11-04 16:56:29 UTC) #6
mkosiba (inactive)
hmm, so the testPageDown failure is a bit weird.. it's only interacting with the Java-side ...
6 years, 1 month ago (2014-11-04 17:12:48 UTC) #7
aelias_OOO_until_Jul13
I'll try to get to the bottom of why testPageDown is timing out. It was ...
6 years, 1 month ago (2014-11-04 19:28:59 UTC) #8
boliu
drive-by blind suggestion: If adding @DisableHardwareAccelerationForTest to the test makes it pass on the bot, ...
6 years, 1 month ago (2014-11-04 20:15:11 UTC) #9
mkosiba (inactive)
On 2014/11/04 20:15:11, boliu wrote: > drive-by blind suggestion: If adding @DisableHardwareAccelerationForTest to the > ...
6 years, 1 month ago (2014-11-04 21:20:02 UTC) #10
aelias_OOO_until_Jul13
On 2014/11/04 at 21:20:02, mkosiba wrote: > On 2014/11/04 20:15:11, boliu wrote: > > drive-by ...
6 years, 1 month ago (2014-11-04 21:21:21 UTC) #11
boliu
On 2014/11/04 21:21:21, aelias wrote: > On 2014/11/04 at 21:20:02, mkosiba wrote: > > On ...
6 years, 1 month ago (2014-11-04 23:10:07 UTC) #12
aelias_OOO_until_Jul13
OK, let me land this with @DisableHardwareAcceleration for now. The other change just landed too ...
6 years, 1 month ago (2014-11-04 23:52:04 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/694113002/100001
6 years, 1 month ago (2014-11-04 23:53:35 UTC) #15
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years, 1 month ago (2014-11-04 23:54:36 UTC) #16
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/879b23ff025295c97d950a2917d67f6714f17bd5 Cr-Commit-Position: refs/heads/master@{#302712}
6 years, 1 month ago (2014-11-04 23:55:21 UTC) #17
boliu
6 years, 1 month ago (2014-11-05 01:34:48 UTC) #18
Message was sent while issue was closed.
Locally confirmed the test is the same issue, so also run it in hardware mode in
https://codereview.chromium.org/689473005/

Powered by Google App Engine
This is Rietveld 408576698