[macOS] Caret placement occurs in the middle of new emoji group candidates
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Jul 2016 22:34:50 +0000 (22:34 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Jul 2016 22:34:50 +0000 (22:34 +0000)
commit9222a09433d550419e1565bbb01ac7c9bfbf0123
treee838d9247e8626902f241c6af44b0eb26f128a47
parentca987d00cf47de03a9bb1879b60f70094da9894a
[macOS] Caret placement occurs in the middle of new emoji group candidates
https://bugs.webkit.org/show_bug.cgi?id=160008
<rdar://problem/27430111>

Reviewed by Simon Fraser.

Source/WTF:

r203330 added support for new emoji group candidates. This patch updates the rules
governing caret placement around these new emoji groups.

* wtf/text/TextBreakIterator.cpp:
(WTF::cursorMovementIterator):

LayoutTests:

Update expected results.

The new emoji support is behind the ADDITIONAL_EMOJI_SUPPORT guard, which
means it only occurs on El Capitan and higher. Similarly, these new rules
are not used for iOS.

* editing/deleting/delete-emoji-expected.txt: Deleted.
* platform/mac/editing/deleting/delete-emoji-expected.txt: Added.
* platform/mac-elcapitan/editing/deleting/delete-emoji-expected.txt: Added.
* platform/ios-simulator/editing/deleting/delete-emoji-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@203533 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/ios-simulator/editing/deleting/delete-emoji-expected.txt [moved from LayoutTests/editing/deleting/delete-emoji-expected.txt with 100% similarity]
LayoutTests/platform/mac-elcapitan/editing/deleting/delete-emoji-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/editing/deleting/delete-emoji-expected.txt [new file with mode: 0644]
Source/WTF/ChangeLog
Source/WTF/wtf/text/TextBreakIterator.cpp