Revert of Make sure multi chracter codepoints are deleted correctly (patchset #6...
commitbac56ba37b1b83cc0a40e9d1b4993ab811149ea8
authordtrainor <dtrainor@chromium.org>
Wed, 10 Jun 2015 18:30:28 +0000 (10 11:30 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 10 Jun 2015 18:30:58 +0000 (10 18:30 +0000)
treec6167c88920d9500a501472f33d7ca3d54a6ce6d
parent43ac266109c2cb29aca8a4858726a3b369c1f9db
Revert of Make sure multi chracter codepoints are deleted correctly (patchset #6 id:100001 of https://codereview.chromium.org/1165793007/)

Reason for revert:
Failing Android Tests (dbg) builder: http://build.chromium.org/p/chromium.linux/builders/Android%20Tests%20%28dbg%29/builds/28499

The newly added test seems to be flaky.

Original issue's description:
> Make sure multi chracter codepoints are deleted correctly
>
> deleteSurroundingText() only deletes one character even for multi-character
> codepoint.
>
> On the blink side, we have InputMethodController::extendSelectionAndDelete()
> to make sure selection and deletion respect Unicode boundaries. However,
> AdapterInputConnection keeps track of selection region separately, and this
> value is incorrectly updated.
>
> On top of adding a new test for this case, it extends
> waitAndVerifyEditorCallback to also check the outbound calls to
> InputMethodManager.
>
> The above extension found that testEnterKeyEventWhileComposingText fails
> because there is hidden discrepancy between blink implementation and
> what we report to InputMethodManager. So I've added a TODO for that.
>
> BUG=497091
>
> Committed: https://crrev.com/5f6e036312bc4a978768f5b5971eee1a5ec9f272
> Cr-Commit-Position: refs/heads/master@{#333704}

TBR=aelias@chromium.org,aurimas@chromium.org,bcwhite@chromium.org,tedchoc@chromium.org,changwan@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=497091

Review URL: https://codereview.chromium.org/1173083004

Cr-Commit-Position: refs/heads/master@{#333765}
content/public/android/java/src/org/chromium/content/browser/input/AdapterInputConnection.java
content/public/android/javatests/src/org/chromium/content/browser/input/AdapterInputConnectionTest.java
content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java
content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestInputMethodManagerWrapper.java