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

Issue 131743020: [android_webivew] Refactor polling checks in test code. (Closed)

Created:
6 years, 11 months ago by mkosiba (inactive)
Modified:
6 years, 11 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org
Visibility:
Public.

Description

[android_webivew] Refactor polling checks in test code. There really is no good reason to poll for something and not fail in a test (otherwise we're just adding a sleep). I refactored our test code to use new AwTestBase methods. BUG=None TEST=AndroidWebViewTests // java-only change, trybots happy NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245525

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -362 lines) Patch
M android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java View 2 chunks +19 lines, -33 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldOverrideUrlLoadingTest.java View 4 chunks +10 lines, -11 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsRenderTest.java View 4 chunks +9 lines, -15 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java View 4 chunks +7 lines, -7 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwQuotaManagerBridgeTest.java View 4 chunks +24 lines, -42 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java View 9 chunks +34 lines, -60 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwTestBase.java View 1 7 chunks +24 lines, -9 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwViewportTest.java View 3 chunks +9 lines, -16 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwZoomTest.java View 3 chunks +32 lines, -54 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerTest.java View 6 chunks +22 lines, -23 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/GeolocationTest.java View 1 7 chunks +23 lines, -28 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/LoadDataWithBaseUrlTest.java View 2 chunks +5 lines, -10 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/NavigationHistoryTest.java View 2 chunks +9 lines, -6 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/SaveRestoreStateTest.java View 2 chunks +6 lines, -2 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/WebKitHitTestTest.java View 16 chunks +35 lines, -46 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
mkosiba (inactive)
PTAL
6 years, 11 months ago (2014-01-17 12:11:04 UTC) #1
mnaganov (inactive)
LGTM with comments Thanks for cleaning this up! https://codereview.chromium.org/131743020/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwTestBase.java File android_webview/javatests/src/org/chromium/android_webview/test/AwTestBase.java (right): https://codereview.chromium.org/131743020/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwTestBase.java#newcode371 android_webview/javatests/src/org/chromium/android_webview/test/AwTestBase.java:371: Log.e("AwTestBase", ...
6 years, 11 months ago (2014-01-17 12:43:29 UTC) #2
mkosiba (inactive)
Thanks! https://codereview.chromium.org/131743020/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwTestBase.java File android_webview/javatests/src/org/chromium/android_webview/test/AwTestBase.java (right): https://codereview.chromium.org/131743020/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwTestBase.java#newcode371 android_webview/javatests/src/org/chromium/android_webview/test/AwTestBase.java:371: Log.e("AwTestBase", "exception while polling", e); On 2014/01/17 12:43:29, ...
6 years, 11 months ago (2014-01-17 13:14:26 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/131743020/100001
6 years, 11 months ago (2014-01-17 16:08:03 UTC) #4
commit-bot: I haz the power
6 years, 11 months ago (2014-01-17 16:08:50 UTC) #5
Message was sent while issue was closed.
Change committed as 245525

Powered by Google App Engine
This is Rietveld 408576698