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

Issue 552813002: [android_webview] Use a MotionEvent to trigger ShouldInterceptRequest tests. (Closed)

Created:
6 years, 3 months ago by mkosiba (inactive)
Modified:
6 years, 3 months ago
Reviewers:
benm (inactive), boliu
CC:
chromium-reviews, android-webview-reviews_chromium.org, boliu, Zeeshan Qureshi
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[android_webview] Use a MotionEvent to trigger ShouldInterceptRequest tests. This updates the test case to use a synthesized single tap gesture to follow the link instead of JavaScript. BUG=408426 TEST=AndroidWebViewTest Committed: https://crrev.com/ad25c603b9aa3ac3175468721a924c903754f4e7 Cr-Commit-Position: refs/heads/master@{#293926}

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Patch Set 3 : fix findbugs #

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -25 lines) Patch
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldInterceptRequestTest.java View 1 2 3 4 2 chunks +22 lines, -2 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/WebKitHitTestTest.java View 6 chunks +5 lines, -23 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/util/AwTestTouchUtils.java View 1 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (9 generated)
mkosiba (inactive)
PTAL
6 years, 3 months ago (2014-09-08 15:54:03 UTC) #2
benm (inactive)
https://codereview.chromium.org/552813002/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/util/AwTestTouchUtils.java File android_webview/javatests/src/org/chromium/android_webview/test/util/AwTestTouchUtils.java (right): https://codereview.chromium.org/552813002/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/util/AwTestTouchUtils.java#newcode81 android_webview/javatests/src/org/chromium/android_webview/test/util/AwTestTouchUtils.java:81: * Performs a single ttouch on the center of ...
6 years, 3 months ago (2014-09-08 16:00:18 UTC) #3
boliu
https://codereview.chromium.org/552813002/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldInterceptRequestTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldInterceptRequestTest.java (right): https://codereview.chromium.org/552813002/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldInterceptRequestTest.java#newcode254 android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldInterceptRequestTest.java:254: return bitmap.getPixel(0, 0) == Color.BLUE; That looks *super* brittle. ...
6 years, 3 months ago (2014-09-08 16:02:55 UTC) #5
mkosiba (inactive)
https://codereview.chromium.org/552813002/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldInterceptRequestTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldInterceptRequestTest.java (right): https://codereview.chromium.org/552813002/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldInterceptRequestTest.java#newcode254 android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldInterceptRequestTest.java:254: return bitmap.getPixel(0, 0) == Color.BLUE; On 2014/09/08 16:02:55, boliu ...
6 years, 3 months ago (2014-09-08 16:54:36 UTC) #6
benm (inactive)
lgtm
6 years, 3 months ago (2014-09-08 17:01:01 UTC) #7
boliu
lgtm https://codereview.chromium.org/552813002/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldInterceptRequestTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldInterceptRequestTest.java (right): https://codereview.chromium.org/552813002/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldInterceptRequestTest.java#newcode254 android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldInterceptRequestTest.java:254: return bitmap.getPixel(0, 0) == Color.BLUE; On 2014/09/08 16:54:36, ...
6 years, 3 months ago (2014-09-08 17:02:11 UTC) #8
mkosiba (inactive)
On 2014/09/08 17:02:11, boliu wrote: > lgtm > > https://codereview.chromium.org/552813002/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldInterceptRequestTest.java > File > android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldInterceptRequestTest.java > ...
6 years, 3 months ago (2014-09-08 17:26:48 UTC) #9
mkosiba (inactive)
On 2014/09/08 17:26:48, mkosiba wrote: > On 2014/09/08 17:02:11, boliu wrote: > > lgtm > ...
6 years, 3 months ago (2014-09-08 17:28:49 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/552813002/20001
6 years, 3 months ago (2014-09-08 17:39:36 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/2919)
6 years, 3 months ago (2014-09-08 20:37:47 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/552813002/40001
6 years, 3 months ago (2014-09-09 09:13:44 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/3057)
6 years, 3 months ago (2014-09-09 10:05:55 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/552813002/60001
6 years, 3 months ago (2014-09-09 10:28:58 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/3075)
6 years, 3 months ago (2014-09-09 11:18:03 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/552813002/80001
6 years, 3 months ago (2014-09-09 11:50:25 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001) as b511feb1d775e3b1f657dfd1f9ad625b7d2f65b7
6 years, 3 months ago (2014-09-09 12:50:14 UTC) #25
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:52:59 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/ad25c603b9aa3ac3175468721a924c903754f4e7
Cr-Commit-Position: refs/heads/master@{#293926}

Powered by Google App Engine
This is Rietveld 408576698