In WK2, spelling and grammar marking is done asynchronously because it involves cross-process communication. The current spelling tests assume that they can get the marked range / count directly after adding incorrect spelling or grammar. http://build.webkit.org/results/Lion%20Intel%20Debug%20(WebKit2%20Tests)/r110712%20(4902)/editing/spelling/markers-pretty-diff.html http://build.webkit.org/results/Lion%20Intel%20Debug%20(WebKit2%20Tests)/r110712%20(4902)/editing/spelling/spelling-insert-html-pretty-diff.html http://build.webkit.org/results/Lion%20Intel%20Debug%20(WebKit2%20Tests)/r110712%20(4902)/editing/spelling/spelling-unified-emulation-pretty-diff.html Note that these tests all pass under WK1: http://build.webkit.org/results/Lion%20Intel%20Debug%20(Tests)/r110709%20(4458)/results.html
<rdar://problem/11047832>
Committed the expected failing results in http://trac.webkit.org/changeset/110720.