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

Issue 2708243004: Auto convert content shell tests to JUnit4 (Closed)

Created:
3 years, 10 months ago by the real yoland
Modified:
3 years, 9 months ago
CC:
aboxhall+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, jam, je_julie, jochen+watch_chromium.org, mlamouri+watch-content_chromium.org, nektar+watch_chromium.org, Peter Beverloo, yuzo+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Auto convert content shell tests to JUnit4 This uses auto convert script to convert content instrumentation tests to JUnit4, assisted with some manual clean up. For more on JUnit4 migration, check src/testing/android/docs/junit4.md BUG=640116 Review-Url: https://codereview.chromium.org/2708243004 Cr-Commit-Position: refs/heads/master@{#456227} Committed: https://chromium.googlesource.com/chromium/src/+/2c657c64afced7163d245119597842025d4975cc

Patch Set 1 #

Patch Set 2 : Updated autochange script #

Patch Set 3 : Updated autochange script 2 #

Patch Set 4 : Change double assertEquals problem #

Patch Set 5 : Remove test that failed #

Total comments: 8

Patch Set 6 : organized import order and removed broken tests #

Total comments: 4

Patch Set 7 : remove CursorAnchorInfoControllerTest #

Patch Set 8 : New test added from WebContentsTest #

Total comments: 9

Patch Set 9 : Address bo's comments #

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2191 lines, -1653 lines) Patch
M content/public/android/javatests/src/org/chromium/content/browser/BrowserStartupControllerTest.java View 1 2 3 4 5 6 7 8 22 chunks +102 lines, -85 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ContentCommandLineTest.java View 1 2 3 4 5 6 7 8 5 chunks +46 lines, -32 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ContentViewLocationTest.java View 1 2 3 4 5 6 7 8 9 chunks +51 lines, -34 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ContentViewPopupZoomerTest.java View 1 2 3 4 5 6 7 8 3 chunks +21 lines, -9 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ContentViewZoomingTest.java View 1 2 3 4 5 6 7 8 3 chunks +33 lines, -22 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/EncodeHtmlDataUriTest.java View 1 2 3 4 5 6 7 8 3 chunks +18 lines, -8 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/GestureDetectorResetTest.java View 1 2 3 4 5 6 7 8 6 chunks +25 lines, -11 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ImportantFileWriterAndroidTest.java View 1 2 3 4 5 6 7 8 2 chunks +29 lines, -21 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/InterstitialPageTest.java View 1 2 3 4 5 6 7 8 8 chunks +27 lines, -15 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/JavaBridgeArrayCoercionTest.java View 1 2 3 4 5 6 7 8 4 chunks +489 lines, -445 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/JavaBridgeArrayTest.java View 1 2 3 4 5 6 7 8 5 chunks +84 lines, -56 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/JavaBridgeBareboneTest.java View 1 2 3 4 5 6 7 8 4 chunks +32 lines, -17 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/JavaBridgeCoercionTest.java View 1 2 3 4 5 6 7 8 5 chunks +378 lines, -321 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/JavaBridgeFieldsTest.java View 1 2 3 4 5 6 7 8 3 chunks +38 lines, -27 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/JavaBridgeReturnValuesTest.java View 1 2 3 4 5 6 7 8 3 chunks +59 lines, -43 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/MediaResourceGetterTest.java View 1 2 3 4 5 6 7 8 9 chunks +180 lines, -133 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/NavigationTest.java View 1 2 3 4 5 6 7 8 9 chunks +49 lines, -34 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java View 1 2 3 4 5 6 7 8 10 chunks +38 lines, -22 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/TestsJavaScriptEvalTest.java View 1 2 3 4 5 6 7 8 2 chunks +18 lines, -7 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/TracingControllerAndroidTest.java View 1 2 3 4 5 6 7 8 2 chunks +22 lines, -12 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/VSyncMonitorTest.java View 1 2 3 4 5 6 7 8 5 chunks +17 lines, -10 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/VibrationManagerImplTest.java View 1 2 3 4 5 6 7 8 6 chunks +25 lines, -13 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ViewportTest.java View 1 2 3 4 5 6 7 8 2 chunks +23 lines, -11 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/WebContentsObserverAndroidTest.java View 1 2 3 4 5 6 7 8 3 chunks +27 lines, -11 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/accessibility/captioning/CaptioningChangeDelegateTest.java View 1 2 3 4 5 6 7 8 2 chunks +48 lines, -43 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/crypto/CipherFactoryTest.java View 1 2 3 4 5 6 7 8 17 chunks +48 lines, -34 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/input/InputDialogContainerTest.java View 1 2 3 4 5 6 7 8 14 chunks +37 lines, -19 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/picker/DateTimePickerDialogTest.java View 1 2 3 4 5 6 7 8 3 chunks +18 lines, -9 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/webcontents/AccessibilitySnapshotTest.java View 1 2 3 4 5 6 7 8 7 chunks +118 lines, -90 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/webcontents/WebContentsTest.java View 1 2 3 4 5 6 7 8 9 20 chunks +73 lines, -53 lines 0 comments Download
M content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellPreconditionsTest.java View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellShellManagementTest.java View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellUrlTest.java View 1 2 3 4 5 6 7 8 1 chunk +16 lines, -4 lines 0 comments Download

Messages

Total messages: 51 (38 generated)
the real yoland
3 years, 9 months ago (2017-03-01 22:41:37 UTC) #6
boliu
did this pass cq?
3 years, 9 months ago (2017-03-01 23:02:46 UTC) #7
jbudorick
partial https://codereview.chromium.org/2708243004/diff/80001/content/public/android/javatests/src/org/chromium/content/browser/BrowserStartupControllerTest.java File content/public/android/javatests/src/org/chromium/content/browser/BrowserStartupControllerTest.java (right): https://codereview.chromium.org/2708243004/diff/80001/content/public/android/javatests/src/org/chromium/content/browser/BrowserStartupControllerTest.java#newcode13 content/public/android/javatests/src/org/chromium/content/browser/BrowserStartupControllerTest.java:13: import org.junit.Test; import order? I'm surprised this wasn't ...
3 years, 9 months ago (2017-03-01 23:10:19 UTC) #8
the real yoland
On 2017/03/01 at 23:02:46, boliu wrote: > did this pass cq? passes locally, dry running ...
3 years, 9 months ago (2017-03-08 23:31:21 UTC) #13
the real yoland
if the reviewers prefer to have smaller CLs, I can break this down by directories. ...
3 years, 9 months ago (2017-03-08 23:35:31 UTC) #15
the real yoland
https://codereview.chromium.org/2708243004/diff/140001/content/public/android/javatests/src/org/chromium/content/browser/JavaBridgeArrayCoercionTest.java File content/public/android/javatests/src/org/chromium/content/browser/JavaBridgeArrayCoercionTest.java (right): https://codereview.chromium.org/2708243004/diff/140001/content/public/android/javatests/src/org/chromium/content/browser/JavaBridgeArrayCoercionTest.java#newcode33 content/public/android/javatests/src/org/chromium/content/browser/JavaBridgeArrayCoercionTest.java:33: private static final double ASSERTION_DELTA = 0.00000001; Set ASSERTION_DELTA ...
3 years, 9 months ago (2017-03-08 23:39:03 UTC) #16
the real yoland
ughh, please ignore the win10 bot, it's broken (https://build.chromium.org/p/tryserver.chromium.win/builders/win10_chromium_x64_rel_ng_exp?numbuilds=200)
3 years, 9 months ago (2017-03-09 18:26:38 UTC) #35
boliu
https://codereview.chromium.org/2708243004/diff/210001/content/public/android/javatests/src/org/chromium/content/browser/BrowserStartupControllerTest.java File content/public/android/javatests/src/org/chromium/content/browser/BrowserStartupControllerTest.java (right): https://codereview.chromium.org/2708243004/diff/210001/content/public/android/javatests/src/org/chromium/content/browser/BrowserStartupControllerTest.java#newcode1 content/public/android/javatests/src/org/chromium/content/browser/BrowserStartupControllerTest.java:1: // Copyright 2017 The Chromium Authors. All rights reserved. ...
3 years, 9 months ago (2017-03-10 18:32:33 UTC) #36
the real yoland
https://codereview.chromium.org/2708243004/diff/210001/content/public/android/javatests/src/org/chromium/content/browser/BrowserStartupControllerTest.java File content/public/android/javatests/src/org/chromium/content/browser/BrowserStartupControllerTest.java (right): https://codereview.chromium.org/2708243004/diff/210001/content/public/android/javatests/src/org/chromium/content/browser/BrowserStartupControllerTest.java#newcode1 content/public/android/javatests/src/org/chromium/content/browser/BrowserStartupControllerTest.java:1: // Copyright 2017 The Chromium Authors. All rights reserved. ...
3 years, 9 months ago (2017-03-10 19:31:59 UTC) #37
boliu
lgtm https://codereview.chromium.org/2708243004/diff/210001/content/public/android/javatests/src/org/chromium/content/browser/webcontents/WebContentsTest.java File content/public/android/javatests/src/org/chromium/content/browser/webcontents/WebContentsTest.java (right): https://codereview.chromium.org/2708243004/diff/210001/content/public/android/javatests/src/org/chromium/content/browser/webcontents/WebContentsTest.java#newcode340 content/public/android/javatests/src/org/chromium/content/browser/webcontents/WebContentsTest.java:340: public void testWebContentsMainFrame() throws InterruptedException { On 2017/03/10 ...
3 years, 9 months ago (2017-03-10 19:36:11 UTC) #40
the real yoland
On 2017/03/10 at 19:36:11, boliu wrote: > lgtm > > https://codereview.chromium.org/2708243004/diff/210001/content/public/android/javatests/src/org/chromium/content/browser/webcontents/WebContentsTest.java > File content/public/android/javatests/src/org/chromium/content/browser/webcontents/WebContentsTest.java (right): ...
3 years, 9 months ago (2017-03-10 23:25:50 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2708243004/250001
3 years, 9 months ago (2017-03-11 00:17:15 UTC) #48
commit-bot: I haz the power
3 years, 9 months ago (2017-03-11 00:23:30 UTC) #51
Message was sent while issue was closed.
Committed patchset #10 (id:250001) as
https://chromium.googlesource.com/chromium/src/+/2c657c64afced7163d2451195978...

Powered by Google App Engine
This is Rietveld 408576698