Description[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}
Committed: https://chromium.googlesource.com/chromium/src/+/0daf68bf98988529e6fe65c29f3de08a497e5564
Patch Set 1 #Patch Set 2 : Added missing method #Patch Set 3 : Better Mac call #
Total comments: 21
Patch Set 4 : Responses #
Total comments: 2
Patch Set 5 : Improved comments #Patch Set 6 : Fixed range on Cocoa #Messages
Total messages: 35 (20 generated)
|