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

Issue 521583003: Adding Text Selection Action Bar Unit Test cases. (Closed)

Created:
6 years, 3 months ago by AKVT
Modified:
6 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Adding Text Selection Action Bar Unit Test cases. Currently there is not enough unit test cases available to cover the functionality of Text Selection Action Bar. In this patch covering essentail unit test cases for the same. BUG= Committed: https://crrev.com/34ddd8e3947b5ebcce0039ead0e79d4963cbf9c5 Cr-Commit-Position: refs/heads/master@{#292971}

Patch Set 1 #

Patch Set 2 : Renamed the Test file as per review comments. #

Total comments: 11

Patch Set 3 : Fixed review comments. #

Total comments: 6

Patch Set 4 : Corrected UT related to Empty input fields. #

Total comments: 2

Patch Set 5 : Removed unwanted test case. #

Patch Set 6 : Removed failing Plain text UTs. Will refine with next CL. #

Patch Set 7 : Splitted the long content to two parts for solving test failure. #

Total comments: 2

Patch Set 8 : Corrected the Page Scale to handle all content in Same URL #

Total comments: 6

Patch Set 9 : Fixed review comments. #

Total comments: 4

Patch Set 10 : Removed trivial assertWaitForSelectActionBarStatus(false) from starting of UT. #

Patch Set 11 : Fixed the failed test case issue. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -0 lines) Patch
A content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +105 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (6 generated)
AKVT
@jdduke & aurimas PTAL this change.
6 years, 3 months ago (2014-08-29 17:18:50 UTC) #2
jdduke (slow)
On 2014/08/29 17:18:50, AKV wrote: > @jdduke & aurimas PTAL this change. I'm already adding ...
6 years, 3 months ago (2014-08-29 17:20:18 UTC) #3
jdduke (slow)
On 2014/08/29 17:20:18, jdduke wrote: > On 2014/08/29 17:18:50, AKV wrote: > > @jdduke & ...
6 years, 3 months ago (2014-08-29 17:20:46 UTC) #4
AKVT
On 2014/08/29 17:20:46, jdduke wrote: > On 2014/08/29 17:20:18, jdduke wrote: > > On 2014/08/29 ...
6 years, 3 months ago (2014-08-29 17:26:49 UTC) #5
jdduke (slow)
On 2014/08/29 17:26:49, AKV wrote: > On 2014/08/29 17:20:46, jdduke wrote: > > On 2014/08/29 ...
6 years, 3 months ago (2014-08-29 17:27:37 UTC) #6
jdduke (slow)
On 2014/08/29 17:27:37, jdduke wrote: > On 2014/08/29 17:26:49, AKV wrote: > > On 2014/08/29 ...
6 years, 3 months ago (2014-08-29 17:29:04 UTC) #7
AKVT
On 2014/08/29 17:29:04, jdduke wrote: > On 2014/08/29 17:27:37, jdduke wrote: > > On 2014/08/29 ...
6 years, 3 months ago (2014-08-29 17:34:55 UTC) #8
jdduke (slow)
https://codereview.chromium.org/521583003/diff/20001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java File content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java (right): https://codereview.chromium.org/521583003/diff/20001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java#newcode4 content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java:4: // Remove empty // https://codereview.chromium.org/521583003/diff/20001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java#newcode17 content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java:17: * Integration tests ...
6 years, 3 months ago (2014-08-29 17:43:25 UTC) #9
AKVT
@jdduke PTAL PS3 https://codereview.chromium.org/521583003/diff/20001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java File content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java (right): https://codereview.chromium.org/521583003/diff/20001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java#newcode4 content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java:4: // On 2014/08/29 17:43:25, jdduke wrote: ...
6 years, 3 months ago (2014-08-29 17:58:35 UTC) #10
jdduke (slow)
https://codereview.chromium.org/521583003/diff/40001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java File content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java (right): https://codereview.chromium.org/521583003/diff/40001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java#newcode49 content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java:49: DOMUtils.longPressNode(this, mContentViewCore, "anchor"); You should activate the action bar ...
6 years, 3 months ago (2014-08-29 18:06:36 UTC) #11
AKVT
@jdduke PTAL https://codereview.chromium.org/521583003/diff/40001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java File content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java (right): https://codereview.chromium.org/521583003/diff/40001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java#newcode49 content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java:49: DOMUtils.longPressNode(this, mContentViewCore, "anchor"); On 2014/08/29 18:06:36, jdduke ...
6 years, 3 months ago (2014-08-29 18:16:11 UTC) #12
jdduke (slow)
https://codereview.chromium.org/521583003/diff/60001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java File content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java (right): https://codereview.chromium.org/521583003/diff/60001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java#newcode49 content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java:49: DOMUtils.longPressNode(this, mContentViewCore, "anchor"); If we can't make this test ...
6 years, 3 months ago (2014-08-29 18:23:07 UTC) #13
AKVT
https://codereview.chromium.org/521583003/diff/60001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java File content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java (right): https://codereview.chromium.org/521583003/diff/60001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java#newcode49 content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java:49: DOMUtils.longPressNode(this, mContentViewCore, "anchor"); On 2014/08/29 18:23:07, jdduke wrote: > ...
6 years, 3 months ago (2014-08-29 18:30:05 UTC) #14
jdduke (slow)
On 2014/08/29 18:30:05, AKV wrote: > Basically when we long pressing on an anchor, we ...
6 years, 3 months ago (2014-08-29 18:36:47 UTC) #15
AKVT
On 2014/08/29 18:36:47, jdduke wrote: > On 2014/08/29 18:30:05, AKV wrote: > > Basically when ...
6 years, 3 months ago (2014-08-29 18:43:13 UTC) #16
jdduke (slow)
lgtm, thanks.
6 years, 3 months ago (2014-08-29 18:50:52 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajith.v@samsung.com/521583003/80001
6 years, 3 months ago (2014-08-29 18:53:06 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_tests_recipe on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-29 22:56:07 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/3917)
6 years, 3 months ago (2014-08-29 23:56:53 UTC) #22
jdduke (slow)
On 2014/08/29 23:56:53, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 3 months ago (2014-08-30 00:27:03 UTC) #23
AKVT
On 2014/08/30 00:27:03, jdduke wrote: > On 2014/08/29 23:56:53, I haz the power (commit-bot) wrote: ...
6 years, 3 months ago (2014-08-30 01:48:38 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajith.v@samsung.com/521583003/90001
6 years, 3 months ago (2014-08-31 14:33:14 UTC) #26
jdduke (slow)
On 2014/08/31 14:33:14, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
6 years, 3 months ago (2014-08-31 15:24:33 UTC) #28
AKVT
On 2014/08/31 15:24:33, jdduke wrote: > On 2014/08/31 14:33:14, I haz the power (commit-bot) wrote: ...
6 years, 3 months ago (2014-08-31 15:29:45 UTC) #29
AKVT
@jdduke PTAL. Earlier failure was due to long content in the page. And the test ...
6 years, 3 months ago (2014-09-01 14:34:52 UTC) #30
AKVT
@jdduke PTAL
6 years, 3 months ago (2014-09-02 14:12:55 UTC) #31
jdduke (slow)
https://codereview.chromium.org/521583003/diff/110001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java File content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java (right): https://codereview.chromium.org/521583003/diff/110001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java#newcode22 content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java:22: "<html><head><meta name=\"viewport\"" + Why not use a smaller scale ...
6 years, 3 months ago (2014-09-02 15:01:21 UTC) #32
AKVT
@jdduke PTAL. Corrected using same URL https://codereview.chromium.org/521583003/diff/110001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java File content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java (right): https://codereview.chromium.org/521583003/diff/110001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java#newcode22 content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java:22: "<html><head><meta name=\"viewport\"" + ...
6 years, 3 months ago (2014-09-02 15:59:07 UTC) #33
jdduke (slow)
https://codereview.chromium.org/521583003/diff/130001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java File content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java (right): https://codereview.chromium.org/521583003/diff/130001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java#newcode20 content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java:20: private static final String DATA_URL_1 = UrlUtils.encodeHtmlDataUri( Nit: No ...
6 years, 3 months ago (2014-09-02 16:05:25 UTC) #34
AKVT
@jdduke PTAL. Refined other UTs as well. https://codereview.chromium.org/521583003/diff/130001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java File content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java (right): https://codereview.chromium.org/521583003/diff/130001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java#newcode20 content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java:20: private static ...
6 years, 3 months ago (2014-09-02 16:20:29 UTC) #35
jdduke (slow)
https://codereview.chromium.org/521583003/diff/150001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java File content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java (right): https://codereview.chromium.org/521583003/diff/150001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java#newcode49 content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java:49: DOMUtils.clickNode(this, mContentViewCore, "plain_text_2"); Why would you add this? As ...
6 years, 3 months ago (2014-09-02 16:22:45 UTC) #36
AKVT
@jdduke PTAL https://codereview.chromium.org/521583003/diff/150001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java File content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java (right): https://codereview.chromium.org/521583003/diff/150001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java#newcode49 content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java:49: DOMUtils.clickNode(this, mContentViewCore, "plain_text_2"); On 2014/09/02 16:22:44, jdduke ...
6 years, 3 months ago (2014-09-02 16:35:58 UTC) #37
AKVT
On 2014/09/02 16:35:58, AKV wrote: > @jdduke PTAL > > https://codereview.chromium.org/521583003/diff/150001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java > File > content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java ...
6 years, 3 months ago (2014-09-02 17:47:00 UTC) #38
AKVT
@jdduke PTAL this new patch set. This is passing try job @ http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/4408
6 years, 3 months ago (2014-09-02 17:51:35 UTC) #39
jdduke (slow)
On 2014/09/02 17:51:35, AKV wrote: > @jdduke PTAL this new patch set. This is passing ...
6 years, 3 months ago (2014-09-02 17:58:10 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajith.v@samsung.com/521583003/190001
6 years, 3 months ago (2014-09-02 18:05:56 UTC) #42
commit-bot: I haz the power
Committed patchset #11 (id:190001) as 7da8be70e45d91995fb4476713d7920ce77cb90f
6 years, 3 months ago (2014-09-02 19:03:12 UTC) #43
arv (Not doing code reviews)
A revert of this CL (patchset #11 id:190001) has been created in https://codereview.chromium.org/549433004/ by arv@chromium.org. ...
6 years, 3 months ago (2014-09-08 15:22:27 UTC) #44
jdduke (slow)
On 2014/09/08 15:22:27, arv wrote: > A revert of this CL (patchset #11 id:190001) has ...
6 years, 3 months ago (2014-09-08 15:24:26 UTC) #45
jdduke (slow)
On 2014/09/08 15:24:26, jdduke wrote: > On 2014/09/08 15:22:27, arv wrote: > > A revert ...
6 years, 3 months ago (2014-09-08 16:17:45 UTC) #46
jam
On 2014/09/08 15:24:26, jdduke wrote: > On 2014/09/08 15:22:27, arv wrote: > > A revert ...
6 years, 3 months ago (2014-09-08 19:29:13 UTC) #47
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:19:52 UTC) #48
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/34ddd8e3947b5ebcce0039ead0e79d4963cbf9c5
Cr-Commit-Position: refs/heads/master@{#292971}

Powered by Google App Engine
This is Rietveld 408576698