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

Issue 71203004: [Android WebView] Unflake AwViewportTest#testInitialScaleClobberQuirk (Closed)

Created:
7 years, 1 month ago by mnaganov (inactive)
Modified:
7 years, 1 month ago
Reviewers:
mkosiba (inactive)
CC:
chromium-reviews, android-webview-reviews_chromium.org
Visibility:
Public.

Description

[Android WebView] Unflake AwViewportTest#testInitialScaleClobberQuirk Make the test resilient to spurious page scale changes that can occur after calling WebView.setInitialScale. Also, update AwViewportTest#testNoUserScalableQuirk to wait for page scale change events instead of page scale polling. BUG=319353 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=235671

Patch Set 1 #

Patch Set 2 : Remove accidental indent #

Total comments: 3

Patch Set 3 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -26 lines) Patch
M android_webview/javatests/src/org/chromium/android_webview/test/AwViewportTest.java View 1 3 chunks +21 lines, -26 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
mnaganov (inactive)
7 years, 1 month ago (2013-11-14 18:11:23 UTC) #1
mkosiba (inactive)
lgtm https://codereview.chromium.org/71203004/diff/30001/android_webview/javatests/src/org/chromium/android_webview/test/AwViewportTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwViewportTest.java (right): https://codereview.chromium.org/71203004/diff/30001/android_webview/javatests/src/org/chromium/android_webview/test/AwViewportTest.java#newcode254 android_webview/javatests/src/org/chromium/android_webview/test/AwViewportTest.java:254: // flaky. So instead, we are just polling ...
7 years, 1 month ago (2013-11-15 14:53:11 UTC) #2
mnaganov (inactive)
https://codereview.chromium.org/71203004/diff/30001/android_webview/javatests/src/org/chromium/android_webview/test/AwViewportTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwViewportTest.java (right): https://codereview.chromium.org/71203004/diff/30001/android_webview/javatests/src/org/chromium/android_webview/test/AwViewportTest.java#newcode254 android_webview/javatests/src/org/chromium/android_webview/test/AwViewportTest.java:254: // flaky. So instead, we are just polling the ...
7 years, 1 month ago (2013-11-16 00:41:09 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnaganov@chromium.org/71203004/110001
7 years, 1 month ago (2013-11-16 02:01:26 UTC) #4
commit-bot: I haz the power
Change committed as 235671
7 years, 1 month ago (2013-11-18 08:42:07 UTC) #5
mkosiba (inactive)
7 years, 1 month ago (2013-11-19 00:49:59 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/71203004/diff/30001/android_webview/javatests...
File
android_webview/javatests/src/org/chromium/android_webview/test/AwViewportTest.java
(right):

https://codereview.chromium.org/71203004/diff/30001/android_webview/javatests...
android_webview/javatests/src/org/chromium/android_webview/test/AwViewportTest.java:254:
// flaky. So instead, we are just polling the scale until it becomes 1.0.
On 2013/11/16 00:41:09, Mikhail Naganov (Chromium) wrote:
> On 2013/11/15 14:53:11, mkosiba wrote:
> > this sounds scary. Do we know why such a change happens?
> 
> Not scary at all. Setting initial scale triggers a relayout, which may cause a
> page scale update. But I don't want the test to depend on this, because this
is
> an implementation detail which may change some day.

Ah, ok. I didn't realize setting initial scale triggers a layout. Thanks for the
explanation!

Powered by Google App Engine
This is Rietveld 408576698