New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 756516 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Aug 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

FullscreenAppListPresenterDelegateTest failing on 3163 branch

Project Member Reported by kaznacheev@chromium.org, Aug 17 2017

Issue description

[ RUN      ] FullscreenAppListPresenterDelegateTest.TapAndClickEnablesSearchBox/0
../../ash/app_list/app_list_presenter_delegate_unittest.cc:713: Failure
Value of: search_box_view->is_search_box_active()
  Actual: false
Expected: true
[  FAILED  ] FullscreenAppListPresenterDelegateTest.TapAndClickEnablesSearchBox/0, where GetParam() = false (1545 ms)
[1/2] FullscreenAppListPresenterDelegateTest.TapAndClickEnablesSearchBox/0 (1545 ms)
[ RUN      ] FullscreenAppListPresenterDelegateTest.TapAndClickEnablesSearchBox/1
../../ash/app_list/app_list_presenter_delegate_unittest.cc:713: Failure
Value of: search_box_view->is_search_box_active()
  Actual: false
Expected: true
[  FAILED  ] FullscreenAppListPresenterDelegateTest.TapAndClickEnablesSearchBox/1, where GetParam() = true (599 ms)
[2/2] FullscreenAppListPresenterDelegateTest.TapAndClickEnablesSearchBox/1 (599 ms)

 

Comment 1 by maajid@chromium.org, Aug 17 2017

Cc: warx@chromium.org
Of the changes that we've merged recently to the branch, this one: https://chromium-review.googlesource.com/c/618275 might be the most promising.

Alex, Joe, can you follow up on this?
warx@ looks like tests weren't updated? 
Also shouldn't there be a new test that tests this new behavior?

Comment 3 by warx@chromium.org, Aug 17 2017

I am investigating. Weird that m61 has test failure.
The modified tests should be no difference. New tests are added in app_list_unittests.

Comment 4 by warx@chromium.org, Aug 17 2017

My cl is not the culprit. My investigation is that SearchBoxView::OnMouseEvent is not triggered. If I change GetPointInsideSearchbox() in the test:

from app_list_presenter_impl_.GetView()->search_box_view()->GetBoundsInScreen().origin() to app_list_presenter_impl_.GetView()->search_box_view()->GetBoundsInScreen().CenterPoint(),

then the test could pass. The test file itself has no difference from tot. I checked several related files/dirs, cannot see obvious changes missed.

Attached diffs between 3163 branch and tot:
git diff origin/master -- ui/app_list/views/
git diff origin/master -- chrome/browser/ui/app_list/
git diff origin/master -- ash/app_list/
app_list_views_diffs.diff
52.6 KB Download
chrome_browser_ui_app_list_diffs.diff
7.2 KB Download
ash_app_list_diffs.diff
1.5 KB Download

Comment 5 by warx@chromium.org, Aug 17 2017

Cc: weidongg@chromium.org xiy...@chromium.org
+weidongg for SearchBox active related changes
+xiyuan reviewer

test is passed on tot, but failed on 3163

Comment 6 by maajid@chromium.org, Aug 17 2017

Labels: -Pri-3 Pri-1
There are no changes that we've made that I see as potential culprits either. We'll probably need to bisect and then try to figure out what needs to be merged from there.

Comment 7 by warx@chromium.org, Aug 17 2017

Cc: -warx@chromium.org sadrul@chromium.org newcomer@chromium.org
Labels: M-61 Merge-Request-61
Owner: warx@chromium.org
I just found the reason:
it is because we didn't merge this back: https://chromium-review.googlesource.com/c/567486.

We would like to know whether merging the whole cl back or just the changes in ui/app_list/views back.

Comment 8 by warx@chromium.org, Aug 17 2017

Cc: varkha@chromium.org
ok, the cl owner is actually varkha@.
Project Member

Comment 9 by sheriffbot@chromium.org, Aug 17 2017

Labels: -Merge-Request-61 Merge-Review-61 Hotlist-Merge-Review
This bug requires manual review: M61 has already been promoted to the beta branch, so this requires manual review
Please contact the milestone owner if you have questions.
Owners: amineer@(Android), cmasso@(iOS), ketakid@(ChromeOS), govind@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 10 by warx@chromium.org, Aug 17 2017

btw, changing origin() to CenterPoint() is another option, IMO. I will delegate to the cl owner or xiyuan for decision : )
Labels: -Merge-Review-61 Merge-Approved-61
Approving merge to M61 Chrome OS.
Project Member

Comment 12 by bugdroid1@chromium.org, Aug 18 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/820a7a5574b570545f06f716c5b19c7f5f2a1360

commit 820a7a5574b570545f06f716c5b19c7f5f2a1360
Author: Qiang Xu <warx@chromium.org>
Date: Fri Aug 18 20:50:43 2017

app_list: make GetPointInsideSearchbox picking CenterPoint

changes:
Mainly for addressing the issue in  crbug.com/756516 , where in 3163
branch https://chromium-review.googlesource.com/c/567486 is not merged
back. In that change, the whole search box is the event target rather
than just the part inside the shadow.

Contacted varkha@, better changing the tapping point, not the margin of
search box.

Bug:  756516 
Test: covered by tests
Change-Id: If66f70b223ffb1c53ddeb148b9a708def7385f41
Reviewed-on: https://chromium-review.googlesource.com/621533
Reviewed-by: Qiang(Joe) Xu <warx@chromium.org>
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Qiang(Joe) Xu <warx@chromium.org>
Cr-Commit-Position: refs/heads/master@{#495673}
[modify] https://crrev.com/820a7a5574b570545f06f716c5b19c7f5f2a1360/ash/app_list/app_list_presenter_delegate_unittest.cc

as an FYI I'm holding off on merging further launcher changes to M61 until we can get this change merged back to M61 and confirm the tests pass at ToT on 3163.

Joe, thanks for finding and taking up the fix!

Comment 14 by warx@chromium.org, Aug 18 2017

I will merge it right now. It should have no conflict.
Project Member

Comment 15 by bugdroid1@chromium.org, Aug 18 2017

Labels: -merge-approved-61 merge-merged-3163
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/5e671ba04d1450efda2a6f9c5b07b1d0925c1a68

commit 5e671ba04d1450efda2a6f9c5b07b1d0925c1a68
Author: Qiang Xu <warx@chromium.org>
Date: Fri Aug 18 21:10:58 2017

m61 merge: app_list: make GetPointInsideSearchbox picking CenterPoint

changes:
Mainly for addressing the issue in  crbug.com/756516 , where in 3163
branch https://chromium-review.googlesource.com/c/567486 is not merged
back. In that change, the whole search box is the event target rather
than just the part inside the shadow.

Contacted varkha@, better changing the tapping point, not the margin of
search box.

TBR: xiyuan@chromium.org

(cherry picked from commit 820a7a5574b570545f06f716c5b19c7f5f2a1360)

Bug:  756516 
Test: covered by tests
Change-Id: If66f70b223ffb1c53ddeb148b9a708def7385f41
Reviewed-on: https://chromium-review.googlesource.com/621533
Reviewed-by: Qiang(Joe) Xu <warx@chromium.org>
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Qiang(Joe) Xu <warx@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#495673}
Reviewed-on: https://chromium-review.googlesource.com/621195
Cr-Commit-Position: refs/branch-heads/3163@{#685}
Cr-Branched-From: ff259bab28b35d242e10186cd63af7ed404fae0d-refs/heads/master@{#488528}
[modify] https://crrev.com/5e671ba04d1450efda2a6f9c5b07b1d0925c1a68/ash/app_list/app_list_presenter_delegate_unittest.cc

Comment 16 by warx@chromium.org, Aug 18 2017

Status: Fixed (was: Assigned)
Status: Verified (was: Fixed)
Verified that tests pass on branch, going to start merges for launcher again.

Sign in to add a comment