commit | 0daf68bf98988529e6fe65c29f3de08a497e5564 | [log] [tgz] |
---|---|---|
author | krb <krb@chromium.org> | Fri May 26 17:31:01 2017 |
committer | Commit bot <commit-bot@chromium.org> | Fri May 26 17:31:20 2017 |
tree | b8fc731db5f2fe7b65a3b5932a821f995bd1f78f | |
parent | 802480762c4dcb5e61bcafc21edf49002ca003f8 [diff] |
[omnibox] Break out SetCaretPos() method and enhance browser test Instead of calling SetWindowTextAndCaretPos() twice, add a SetCaretPos() method so that we can call it instead. Also, enhance the portable browser tests to make sure the caret position is restored, but also capped at the text length. BUG=681740 Review-Url: https://codereview.chromium.org/2891653003 Cr-Commit-Position: refs/heads/master@{#475045}