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

Issue 2722193003: Update MenuControllerTest Widget Creation (Closed)

Created:
3 years, 9 months ago by jonross
Modified:
3 years, 9 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update MenuControllerTest Widget Creation Two menu tests actively tested the handling of drag and drop within aura's nested message loop. To do this they set a testing DragDropClient on the root window by AuraTestHelper. While this is fine with the classic window server, when being ran as a part of the views_mus_unittests the WindowTreeClient properly constructs root windows as needed. This lead to the test having two competiting window trees, and the test client being installed on the incorrect one. I've updated the tests to create the full menu/submenu tree, and to install the DragDropClient on the correct window tree. TEST=MenuControllerTest.MenuControllerReplacedDuringDrag, MenuControllerTest.CancelAllDuringDrag BUG=664280 Review-Url: https://codereview.chromium.org/2722193003 Cr-Commit-Position: refs/heads/master@{#454259} Committed: https://chromium.googlesource.com/chromium/src/+/e0f5db25384b1c70388a90c8c77d33962d19d524

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -12 lines) Patch
M ui/views/controls/menu/menu_controller_unittest.cc View 2 chunks +16 lines, -12 lines 0 comments Download

Messages

Total messages: 8 (4 generated)
jonross
Hey sky@ could you review this change to two tests which were broken in views_mus_unittests. ...
3 years, 9 months ago (2017-03-01 23:26:28 UTC) #2
sky
LGTM
3 years, 9 months ago (2017-03-02 03:14:05 UTC) #3
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/2722193003/1
3 years, 9 months ago (2017-03-02 14:47:57 UTC) #5
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 15:08:25 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/e0f5db25384b1c70388a90c8c77d...

Powered by Google App Engine
This is Rietveld 408576698