Make ImeTest wait for insertion handle to be shown
The Ime test, testPastePopupShowAndHide, was flaking because of a race condition where the paste popup menu was shown before the insertion handle was shown. This is a problem because it allows the scenario: 1) Paste menu shown 2) Set composition 3) Insertion handle is shown This causes the paste menu to not be hidden since setting the composition only clears the menu by clearing the insertion handle. This CL makes setting the composition wait for the insertion handle to be shown to guarantee this sequence: 1) Paste menu and insertion handle shown 2) Set composition 3) Insertion handle cleared 4) Paste menu hidden BUG=661572 Review-Url: https://codereview.chromium.org/2617583003 Cr-Commit-Position: refs/heads/master@{#441971}
Showing
Please register or sign in to comment