This all lgtm. 2 small fixes. https://codereview.chromium.org/2633733002/diff/40001/android_webview/tools/system_webview_shell/layout_tests/AndroidManifest.xml File android_webview/tools/system_webview_shell/layout_tests/AndroidManifest.xml (right): https://codereview.chromium.org/2633733002/diff/40001/android_webview/tools/system_webview_shell/layout_tests/AndroidManifest.xml#newcode36 android_webview/tools/system_webview_shell/layout_tests/AndroidManifest.xml:36: junit4="true"/> update to ...
3 years, 10 months ago
(2017-02-01 17:56:48 UTC)
#5
Ty for the review, updated https://codereview.chromium.org/2633733002/diff/80001/android_webview/tools/system_webview_shell/layout_tests/AndroidManifest.xml File android_webview/tools/system_webview_shell/layout_tests/AndroidManifest.xml (right): https://codereview.chromium.org/2633733002/diff/80001/android_webview/tools/system_webview_shell/layout_tests/AndroidManifest.xml#newcode35 android_webview/tools/system_webview_shell/layout_tests/AndroidManifest.xml:35: android:label="Android JUnit 4 runner" ...
3 years, 10 months ago
(2017-02-17 01:15:14 UTC)
#9
Ty for the review, updated
https://codereview.chromium.org/2633733002/diff/80001/android_webview/tools/s...
File android_webview/tools/system_webview_shell/layout_tests/AndroidManifest.xml
(right):
https://codereview.chromium.org/2633733002/diff/80001/android_webview/tools/s...
android_webview/tools/system_webview_shell/layout_tests/AndroidManifest.xml:35:
android:label="Android JUnit 4 runner"
On 2017/02/16 at 23:37:24, timvolodine wrote:
> why not keep the label?
Done
https://codereview.chromium.org/2633733002/diff/80001/android_webview/tools/s...
File
android_webview/tools/system_webview_shell/layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java
(right):
https://codereview.chromium.org/2633733002/diff/80001/android_webview/tools/s...
android_webview/tools/system_webview_shell/layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java:98:
@Test
On 2017/02/16 at 23:37:24, timvolodine wrote:
> are the @Test required? we already have @MediumTest below, so looks a bit
weird having it twice..
ya, unfortunately JUnit4 requires `@Test` annotation (we can override the test
runner to look for @Small/Medium/LargeTest annotations, but it would not align
with the other android instrumentation tests style, also, @Test provides useful
functionalities like `@Test(expect=Exception)`)
Since we only use the @Small/Medium/LargeTest annotations to identify how long
it takes for the test to run, we might in the future get rid of it and just use
@Test(timeout = SMALL_TEST)
https://codereview.chromium.org/2633733002/diff/80001/android_webview/tools/s...
android_webview/tools/system_webview_shell/layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java:135:
@DisabledTest(message = "crbug.com/683153")
On 2017/02/16 at 23:37:24, timvolodine wrote:
> don't think this should be here?
Done
thanks, lgtm (with one question below) https://codereview.chromium.org/2633733002/diff/80001/android_webview/tools/system_webview_shell/layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java File android_webview/tools/system_webview_shell/layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java (right): https://codereview.chromium.org/2633733002/diff/80001/android_webview/tools/system_webview_shell/layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java#newcode98 android_webview/tools/system_webview_shell/layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java:98: @Test On 2017/02/17 ...
3 years, 10 months ago
(2017-02-17 13:58:26 UTC)
#11
thanks, lgtm (with one question below)
https://codereview.chromium.org/2633733002/diff/80001/android_webview/tools/s...
File
android_webview/tools/system_webview_shell/layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java
(right):
https://codereview.chromium.org/2633733002/diff/80001/android_webview/tools/s...
android_webview/tools/system_webview_shell/layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java:98:
@Test
On 2017/02/17 01:15:13, the real yoland wrote:
> On 2017/02/16 at 23:37:24, timvolodine wrote:
> > are the @Test required? we already have @MediumTest below, so looks a bit
> weird having it twice..
>
> ya, unfortunately JUnit4 requires `@Test` annotation (we can override the test
> runner to look for @Small/Medium/LargeTest annotations, but it would not align
> with the other android instrumentation tests style, also, @Test provides
useful
> functionalities like `@Test(expect=Exception)`)
>
> Since we only use the @Small/Medium/LargeTest annotations to identify how long
> it takes for the test to run, we might in the future get rid of it and just
use
> @Test(timeout = SMALL_TEST)
I see. I assume the @MediumTest etc annotation is still taken into account when
running these tests right?
timvolodine
also, maybe add a bit more description (which is currently empty) e.g. explaining why (and ...
3 years, 10 months ago
(2017-02-17 14:00:30 UTC)
#12
also, maybe add a bit more description (which is currently empty) e.g.
explaining why (and how)
the real yoland
Description was changed from ========== Convert WebView Layout test to JUnit4 BUG=640116 ========== to ========== ...
3 years, 10 months ago
(2017-02-17 16:51:16 UTC)
#13
Description was changed from
==========
Convert WebView Layout test to JUnit4
BUG=640116
==========
to
==========
Convert WebView Layout test to JUnit4
Since Android N came out, previous JUnit3 instrumentation tests are now
deprecated.
We are now gradually converting all the instrumentation tests to JUnit4 style.
For details on this migration, please check the bug.
BUG=640116
==========
the real yoland
The CQ bit was checked by yolandyan@chromium.org to run a CQ dry run
3 years, 10 months ago
(2017-02-17 16:51:24 UTC)
#14
https://codereview.chromium.org/2633733002/diff/80001/android_webview/tools/system_webview_shell/layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java File android_webview/tools/system_webview_shell/layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java (right): https://codereview.chromium.org/2633733002/diff/80001/android_webview/tools/system_webview_shell/layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java#newcode98 android_webview/tools/system_webview_shell/layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java:98: @Test On 2017/02/17 at 13:58:26, timvolodine wrote: > On ...
3 years, 10 months ago
(2017-02-17 16:51:29 UTC)
#15
https://codereview.chromium.org/2633733002/diff/80001/android_webview/tools/s...
File
android_webview/tools/system_webview_shell/layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java
(right):
https://codereview.chromium.org/2633733002/diff/80001/android_webview/tools/s...
android_webview/tools/system_webview_shell/layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java:98:
@Test
On 2017/02/17 at 13:58:26, timvolodine wrote:
> On 2017/02/17 01:15:13, the real yoland wrote:
> > On 2017/02/16 at 23:37:24, timvolodine wrote:
> > > are the @Test required? we already have @MediumTest below, so looks a bit
> > weird having it twice..
> >
> > ya, unfortunately JUnit4 requires `@Test` annotation (we can override the
test
> > runner to look for @Small/Medium/LargeTest annotations, but it would not
align
> > with the other android instrumentation tests style, also, @Test provides
useful
> > functionalities like `@Test(expect=Exception)`)
> >
> > Since we only use the @Small/Medium/LargeTest annotations to identify how
long
> > it takes for the test to run, we might in the future get rid of it and just
use
> > @Test(timeout = SMALL_TEST)
>
> I see. I assume the @MediumTest etc annotation is still taken into account
when running these tests right?
They are taken account on the host python side instead of java test runner.
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2633733002/120001
3 years, 10 months ago
(2017-02-17 16:51:52 UTC)
#16
CQ is committing da patch. Bot data: {"patchset_id": 120001, "attempt_start_ts": 1487359468032970, "parent_rev": "f903348fa83ee0e48eb45a1b850bcd16ab230392", "commit_rev": "9dfd7fc55c1a6803577c5a1dc38a6e144139f101"}
3 years, 10 months ago
(2017-02-17 19:59:03 UTC)
#22
CQ is committing da patch.
Bot data: {"patchset_id": 120001, "attempt_start_ts": 1487359468032970,
"parent_rev": "f903348fa83ee0e48eb45a1b850bcd16ab230392", "commit_rev":
"9dfd7fc55c1a6803577c5a1dc38a6e144139f101"}
commit-bot: I haz the power
Description was changed from ========== Convert WebView Layout test to JUnit4 Since Android N came ...
3 years, 10 months ago
(2017-02-17 19:59:36 UTC)
#23
Message was sent while issue was closed.
Description was changed from
==========
Convert WebView Layout test to JUnit4
Since Android N came out, previous JUnit3 instrumentation tests are now
deprecated.
We are now gradually converting all the instrumentation tests to JUnit4 style.
For details on this migration, please check the bug.
BUG=640116
==========
to
==========
Convert WebView Layout test to JUnit4
Since Android N came out, previous JUnit3 instrumentation tests are now
deprecated.
We are now gradually converting all the instrumentation tests to JUnit4 style.
For details on this migration, please check the bug.
BUG=640116
Review-Url: https://codereview.chromium.org/2633733002
Cr-Commit-Position: refs/heads/master@{#451362}
Committed:
https://chromium.googlesource.com/chromium/src/+/9dfd7fc55c1a6803577c5a1dc38a...
==========
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/9dfd7fc55c1a6803577c5a1dc38a6e144139f101
3 years, 10 months ago
(2017-02-17 19:59:37 UTC)
#24
Issue 2633733002: Convert WebView Layout test to JUnit4
(Closed)
Created 3 years, 11 months ago by the real yoland
Modified 3 years, 10 months ago
Reviewers: jbudorick, mikecase (-- gone --), timvolodine
Base URL:
Comments: 15