<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[164643] trunk/LayoutTests</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/164643">164643</a></dd>
<dt>Author</dt> <dd>g.czajkowski@samsung.com</dd>
<dt>Date</dt> <dd>2014-02-25 05:31:45 -0800 (Tue, 25 Feb 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Refactoring inline_spelling_markers.html to use asynchronous spellchecking
https://bugs.webkit.org/show_bug.cgi?id=127284

Reviewed by Ryosuke Niwa.

Use asynchronous text checking in inline-spelling-markers.html and
inline-spelling-markers-hidpi.html

Rename the test to inline-spelling-markers.html to match the naming convention.

* editing/spelling/inline-spelling-markers-expected.txt: Added.
Make cross platform text expectation by dumping spelling/grammar markers
instead of whole tree which in terms of spellchecking says nothing.

* editing/spelling/inline-spelling-markers.html: Added.
Remove unnecessary new lines from div elements so position of markers can be given from 0.
Activate text checking by adding a word separator so WebKit starts performing spell and grammar
checking. Selection change does not invoke grammar checking unless we start editing the input
element's content.

* platform/efl/editing/spelling/inline_spelling_markers-expected.png: Removed.
* platform/efl/editing/spelling/inline_spelling_markers-expected.txt: Removed.
* platform/gtk/editing/spelling/inline_spelling_markers-expected.png: Removed.
* platform/gtk/editing/spelling/inline_spelling_markers-expected.txt: Removed.
* platform/mac/editing/spelling/inline_spelling_markers-expected.png: Removed.
* platform/mac/editing/spelling/inline_spelling_markers-expected.txt: Removed.
Those are not needed as pixel tests don't introduce anything special here.
Let's keep them in hidpi test only.

* editing/spelling/inline-spelling-markers-hidpi-expected.txt:
* editing/spelling/inline-spelling-markers-hidpi.html:
Apply changes from inline-spelling-markers.html

* platform/mac/editing/spelling/inline-spelling-markers-hidpi-expected.png: Added.

* platform/efl/editing/spelling/inline-spelling-markers-hidpi-expected.png: Removed.
* platform/gtk/editing/spelling/inline-spelling-markers-hidpi-expected.png: Removed.
Remove wrong baselines due to missing grammar markers.

* platform/efl-wk2/TestExpectations:
* platform/gtk/TestExpectations:
Mark inline-spelling-markers.html and its hidpi version as failures
since EFL and GTK do not implement grammar checking.

* platform/mac-wk2/TestExpectations:
* platform/win/TestExpectations:
Mark inline-spelling-markers.html and its hidpi version as failures
due to missing TextChecker::requestCheckingOfString() implementation.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestseditingspellinginlinespellingmarkershidpiexpectedtxt">trunk/LayoutTests/editing/spelling/inline-spelling-markers-hidpi-expected.txt</a></li>
<li><a href="#trunkLayoutTestseditingspellinginlinespellingmarkershidpihtml">trunk/LayoutTests/editing/spelling/inline-spelling-markers-hidpi.html</a></li>
<li><a href="#trunkLayoutTestsplatformeflwk2TestExpectations">trunk/LayoutTests/platform/efl-wk2/TestExpectations</a></li>
<li><a href="#trunkLayoutTestsplatformgtkTestExpectations">trunk/LayoutTests/platform/gtk/TestExpectations</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk2TestExpectations">trunk/LayoutTests/platform/mac-wk2/TestExpectations</a></li>
<li><a href="#trunkLayoutTestsplatformwinTestExpectations">trunk/LayoutTests/platform/win/TestExpectations</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestseditingspellinginlinespellingmarkersexpectedtxt">trunk/LayoutTests/editing/spelling/inline-spelling-markers-expected.txt</a></li>
<li><a href="#trunkLayoutTestseditingspellinginlinespellingmarkershtml">trunk/LayoutTests/editing/spelling/inline-spelling-markers.html</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingspellinginlinespellingmarkershidpiexpectedpng">trunk/LayoutTests/platform/mac/editing/spelling/inline-spelling-markers-hidpi-expected.png</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkLayoutTestseditingspellinginline_spelling_markershtml">trunk/LayoutTests/editing/spelling/inline_spelling_markers.html</a></li>
<li><a href="#trunkLayoutTestsplatformefleditingspellinginlinespellingmarkershidpiexpectedpng">trunk/LayoutTests/platform/efl/editing/spelling/inline-spelling-markers-hidpi-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformefleditingspellinginline_spelling_markersexpectedpng">trunk/LayoutTests/platform/efl/editing/spelling/inline_spelling_markers-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformefleditingspellinginline_spelling_markersexpectedtxt">trunk/LayoutTests/platform/efl/editing/spelling/inline_spelling_markers-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformgtkeditingspellinginlinespellingmarkershidpiexpectedpng">trunk/LayoutTests/platform/gtk/editing/spelling/inline-spelling-markers-hidpi-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformgtkeditingspellinginline_spelling_markersexpectedpng">trunk/LayoutTests/platform/gtk/editing/spelling/inline_spelling_markers-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformgtkeditingspellinginline_spelling_markersexpectedtxt">trunk/LayoutTests/platform/gtk/editing/spelling/inline_spelling_markers-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingspellinginline_spelling_markersexpectedpng">trunk/LayoutTests/platform/mac/editing/spelling/inline_spelling_markers-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingspellinginline_spelling_markersexpectedtxt">trunk/LayoutTests/platform/mac/editing/spelling/inline_spelling_markers-expected.txt</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (164642 => 164643)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2014-02-25 12:44:42 UTC (rev 164642)
+++ trunk/LayoutTests/ChangeLog        2014-02-25 13:31:45 UTC (rev 164643)
</span><span class="lines">@@ -1,3 +1,54 @@
</span><ins>+2014-02-25  Grzegorz Czajkowski  &lt;g.czajkowski@samsung.com&gt;
+
+        Refactoring inline_spelling_markers.html to use asynchronous spellchecking
+        https://bugs.webkit.org/show_bug.cgi?id=127284
+
+        Reviewed by Ryosuke Niwa.
+
+        Use asynchronous text checking in inline-spelling-markers.html and
+        inline-spelling-markers-hidpi.html
+
+        Rename the test to inline-spelling-markers.html to match the naming convention.
+
+        * editing/spelling/inline-spelling-markers-expected.txt: Added.
+        Make cross platform text expectation by dumping spelling/grammar markers
+        instead of whole tree which in terms of spellchecking says nothing.
+
+        * editing/spelling/inline-spelling-markers.html: Added.
+        Remove unnecessary new lines from div elements so position of markers can be given from 0.
+        Activate text checking by adding a word separator so WebKit starts performing spell and grammar
+        checking. Selection change does not invoke grammar checking unless we start editing the input
+        element's content.
+
+        * platform/efl/editing/spelling/inline_spelling_markers-expected.png: Removed.
+        * platform/efl/editing/spelling/inline_spelling_markers-expected.txt: Removed.
+        * platform/gtk/editing/spelling/inline_spelling_markers-expected.png: Removed.
+        * platform/gtk/editing/spelling/inline_spelling_markers-expected.txt: Removed.
+        * platform/mac/editing/spelling/inline_spelling_markers-expected.png: Removed.
+        * platform/mac/editing/spelling/inline_spelling_markers-expected.txt: Removed.
+        Those are not needed as pixel tests don't introduce anything special here.
+        Let's keep them in hidpi test only.
+
+        * editing/spelling/inline-spelling-markers-hidpi-expected.txt:
+        * editing/spelling/inline-spelling-markers-hidpi.html:
+        Apply changes from inline-spelling-markers.html
+
+        * platform/mac/editing/spelling/inline-spelling-markers-hidpi-expected.png: Added.
+
+        * platform/efl/editing/spelling/inline-spelling-markers-hidpi-expected.png: Removed.
+        * platform/gtk/editing/spelling/inline-spelling-markers-hidpi-expected.png: Removed.
+        Remove wrong baselines due to missing grammar markers.
+
+        * platform/efl-wk2/TestExpectations:
+        * platform/gtk/TestExpectations:
+        Mark inline-spelling-markers.html and its hidpi version as failures
+        since EFL and GTK do not implement grammar checking.
+
+        * platform/mac-wk2/TestExpectations:
+        * platform/win/TestExpectations:
+        Mark inline-spelling-markers.html and its hidpi version as failures
+        due to missing TextChecker::requestCheckingOfString() implementation.
+
</ins><span class="cx"> 2014-02-25  Radu Stavila  &lt;stavila@adobe.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [CSS Regions] scrollIntoView for elements flowed into regions
</span></span></pre></div>
<a id="trunkLayoutTestseditingspellinginlinespellingmarkersexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/editing/spelling/inline-spelling-markers-expected.txt (0 => 164643)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/spelling/inline-spelling-markers-expected.txt                                (rev 0)
+++ trunk/LayoutTests/editing/spelling/inline-spelling-markers-expected.txt        2014-02-25 13:31:45 UTC (rev 164643)
</span><span class="lines">@@ -0,0 +1,64 @@
</span><ins>+This tests the correct placement of inline spelling and grammar markers in the following text: 'the the adlj adaasj sdklj. there there'. Spelling markers should line up exactly under misspelled words in all cases.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+testLTR
+Verifies 'adlj'.
+PASS internals.hasSpellingMarker(8, 4) became true
+Verifies 'adaasj'.
+PASS internals.hasSpellingMarker(13, 6) became true
+Verifies 'sdklj'.
+PASS internals.hasSpellingMarker(20, 5) became true
+Verifies duplicated 'the'.
+PASS internals.hasGrammarMarker(4, 3) became true
+Verifies duplicated 'there'.
+PASS internals.hasGrammarMarker(33, 5) became true
+
+testRTL
+Verifies 'adlj'.
+PASS internals.hasSpellingMarker(8, 4) became true
+Verifies 'adaasj'.
+PASS internals.hasSpellingMarker(13, 6) became true
+Verifies 'sdklj'.
+PASS internals.hasSpellingMarker(20, 5) became true
+Verifies duplicated 'the'.
+PASS internals.hasGrammarMarker(4, 3) became true
+Verifies duplicated 'there'.
+PASS internals.hasGrammarMarker(33, 5) became true
+
+testLTREllipses
+Verifies 'adlj'.
+PASS internals.hasSpellingMarker(8, 4) became true
+Verifies 'adaasj'.
+PASS internals.hasSpellingMarker(13, 6) became true
+Verifies 'sdklj'.
+PASS internals.hasSpellingMarker(20, 5) became true
+Verifies duplicated 'the'.
+PASS internals.hasGrammarMarker(4, 3) became true
+Verifies duplicated 'there'.
+PASS internals.hasGrammarMarker(33, 5) became true
+
+testRTLEllipses
+Verifies 'adlj'.
+PASS internals.hasSpellingMarker(8, 4) became true
+Verifies 'adaasj'.
+PASS internals.hasSpellingMarker(13, 6) became true
+Verifies 'sdklj'.
+PASS internals.hasSpellingMarker(20, 5) became true
+Verifies duplicated 'the'.
+PASS internals.hasGrammarMarker(4, 3) became true
+Verifies duplicated 'there'.
+PASS internals.hasGrammarMarker(33, 5) became true
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+LTR
+the the adlj adaasj sdklj. there there 
+RTL
+the the adlj adaasj sdklj. there there 
+LTR (text-overflow:ellipses):
+the the adlj adaasj sdklj. there there 
+RTL (text-overflow:ellipses):
+the the adlj adaasj sdklj. there there 
</ins></span></pre></div>
<a id="trunkLayoutTestseditingspellinginlinespellingmarkershidpiexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/editing/spelling/inline-spelling-markers-hidpi-expected.txt (164642 => 164643)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/spelling/inline-spelling-markers-hidpi-expected.txt        2014-02-25 12:44:42 UTC (rev 164642)
+++ trunk/LayoutTests/editing/spelling/inline-spelling-markers-hidpi-expected.txt        2014-02-25 13:31:45 UTC (rev 164643)
</span><span class="lines">@@ -1,11 +1,36 @@
</span><del>-This tests the correct placement of inline spelling and grammar markers in text.
-Spelling markers should line up exactly under misspelled words in all cases.
</del><ins>+This tests the correct placement of inline spelling and grammar markers in the following text: 'the the adlj adaasj sdklj. there there'. Spelling markers should line up exactly under misspelled words in all cases.
</ins><span class="cx"> 
</span><ins>+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS internals.hasSpellingMarker(8, 4) became true
+PASS internals.hasSpellingMarker(13, 6) became true
+PASS internals.hasSpellingMarker(20, 5) became true
+PASS internals.hasGrammarMarker(4, 3) became true
+PASS internals.hasGrammarMarker(33, 5) became true
+PASS internals.hasSpellingMarker(8, 4) became true
+PASS internals.hasSpellingMarker(13, 6) became true
+PASS internals.hasSpellingMarker(20, 5) became true
+PASS internals.hasGrammarMarker(4, 3) became true
+PASS internals.hasGrammarMarker(33, 5) became true
+PASS internals.hasSpellingMarker(8, 4) became true
+PASS internals.hasSpellingMarker(13, 6) became true
+PASS internals.hasSpellingMarker(20, 5) became true
+PASS internals.hasGrammarMarker(4, 3) became true
+PASS internals.hasGrammarMarker(33, 5) became true
+PASS internals.hasSpellingMarker(8, 4) became true
+PASS internals.hasSpellingMarker(13, 6) became true
+PASS internals.hasSpellingMarker(20, 5) became true
+PASS internals.hasGrammarMarker(4, 3) became true
+PASS internals.hasGrammarMarker(33, 5) became true
+PASS successfullyParsed is true
+
+TEST COMPLETE
</ins><span class="cx"> LTR
</span><del>-the the adlj adaasj sdklj. there there
</del><ins>+the the adlj adaasj sdklj. there there 
</ins><span class="cx"> RTL
</span><del>-the the adlj adaasj sdklj. there there
</del><ins>+the the adlj adaasj sdklj. there there 
</ins><span class="cx"> LTR (text-overflow:ellipses):
</span><del>-the the adlj adaasj sdklj. there there
</del><ins>+the the adlj adaasj sdklj. there there 
</ins><span class="cx"> RTL (text-overflow:ellipses):
</span><del>-the the adlj adaasj sdklj. there there
</del><ins>+the the adlj adaasj sdklj. there there 
</ins></span></pre></div>
<a id="trunkLayoutTestseditingspellinginlinespellingmarkershidpihtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/editing/spelling/inline-spelling-markers-hidpi.html (164642 => 164643)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/spelling/inline-spelling-markers-hidpi.html        2014-02-25 12:44:42 UTC (rev 164642)
+++ trunk/LayoutTests/editing/spelling/inline-spelling-markers-hidpi.html        2014-02-25 13:31:45 UTC (rev 164643)
</span><span class="lines">@@ -17,65 +17,96 @@
</span><span class="cx"> .ellipses {
</span><span class="cx">     text-overflow:ellipsis;
</span><span class="cx"> }
</span><del>-
</del><span class="cx"> &lt;/style&gt;
</span><ins>+&lt;/head&gt;
</ins><span class="cx"> 
</span><ins>+&lt;body&gt;
+&lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+LTR
+&lt;div id=&quot;testLTR&quot; class=&quot;testDiv&quot; contenteditable=&quot;true&quot;&gt;&lt;/div&gt;
+RTL
+&lt;div id=&quot;testRTL&quot; class=&quot;testDiv forcertl&quot; contenteditable=&quot;true&quot;&gt;&lt;/div&gt;
+LTR (text-overflow:ellipses):
+&lt;div id=&quot;testLTREllipses&quot; class=&quot;testDiv ellipses&quot; contenteditable=&quot;true&quot;&gt;&lt;/div&gt;
+RTL (text-overflow:ellipses):
+&lt;div id=&quot;testRTLEllipses&quot; class=&quot;testDiv forcertl ellipses&quot; contenteditable=&quot;true&quot;&gt;&lt;/div&gt;
+
</ins><span class="cx"> &lt;script&gt;
</span><del>-function moveCursorOverAllWords(divName, numWords) {
-    div = document.getElementById(divName);
</del><ins>+
+const incorrectPhrase = &quot;the the adlj adaasj sdklj. there there&quot;;
+
+description(&quot;This tests the correct placement of inline spelling and grammar &quot;
+    + &quot;markers in the following text: &quot;
+    + &quot;'&quot; + incorrectPhrase + &quot;'. &quot;
+    + &quot;Spelling markers should line up exactly under misspelled words in all cases.&quot;);
+
+jsTestIsAsync = true;
+
+if (window.internals) {
+    internals.settings.setUnifiedTextCheckerEnabled(true);
+    internals.settings.setAsynchronousSpellCheckingEnabled(true);
+}
+
+function runTextCheckingTestFor(id)
+{
+    var div = document.getElementById(id);
</ins><span class="cx">     div.focus();
</span><del>-    var selection = window.getSelection();
-    // Move to start of text
-    selection.modify(&quot;move&quot;, &quot;backward&quot;, &quot;line&quot;);
-    // Move cursor over all words so inline spellchecking is activated for all
-    for (var i = 0; i &lt; 100; i++ ) {
-        selection.modify(&quot;move&quot;, &quot;forward&quot;, &quot;word&quot;);
-    }
-    // Remove focus from the element, since the word under the cursor won't have a misspelling marker.
-    div.blur();
</del><ins>+    document.execCommand(&quot;InsertText&quot;, false, incorrectPhrase);
+
+    // Add a word separator so that both spelling and grammar markers will appear.
+    document.execCommand(&quot;InsertText&quot;, false, &quot; &quot;);
+
+    verifyMarkers();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-function startTest() {
-    if (!window.testRunner)
-        return;
-    testRunner.dumpAsText(true);
-    testRunner.waitUntilDone();
-    testRunner.setBackingScaleFactor(2, function () {
-        moveCursorOverAllWords('testLTR');
-        moveCursorOverAllWords('testRTL');
-        moveCursorOverAllWords('testLTREllipses');
-        moveCursorOverAllWords('testRTLEllipses');
-        testRunner.notifyDone();
</del><ins>+function verifyMarkers()
+{
+    if (!window.internals)
+        return done();
+
+    // Take care of spelling markers first.
+    shouldBecomeEqual('internals.hasSpellingMarker(8, 4)', 'true', function() { // Verifies 'adlj'.
+        shouldBecomeEqual('internals.hasSpellingMarker(13, 6)', 'true', function() { // Verifies 'adaasj'.
+            shouldBecomeEqual('internals.hasSpellingMarker(20, 5)', 'true', function() {  // Verifies 'sdklj'.
+                verifyGrammarMarkers();
+            });
+         });
</ins><span class="cx">     });
</span><ins>+
+    function verifyGrammarMarkers()
+    {
+        shouldBecomeEqual('internals.hasGrammarMarker(4, 3)', 'true', function() { // Verifies duplicated 'the'.
+            shouldBecomeEqual('internals.hasGrammarMarker(33, 5)', 'true', function() { // Verifies duplicated 'there'.
+                done();
+            });
+        });
+    }
</ins><span class="cx"> }
</span><del>-&lt;/script&gt;
-&lt;/head&gt;
-&lt;body onload=&quot;startTest()&quot;&gt;
-&lt;p id=&quot;explanation&quot;&gt;
-This tests the correct placement of inline spelling and grammar markers in text.&lt;br&gt;
-Spelling markers should line up exactly under misspelled words in all cases.
-&lt;/p&gt;
</del><span class="cx"> 
</span><del>-LTR
-&lt;div id=&quot;testLTR&quot; class=&quot;testDiv&quot; contenteditable=&quot;true&quot;&gt;
-the the adlj adaasj sdklj. there there
-&lt;/div&gt;
</del><ins>+var tests = [
+    function() { runTextCheckingTestFor('testLTR'); },
+    function() { runTextCheckingTestFor('testRTL'); },
+    function() { runTextCheckingTestFor('testLTREllipses'); },
+    function() { runTextCheckingTestFor('testRTLEllipses'); }
+];
</ins><span class="cx"> 
</span><del>-RTL
-&lt;div id=&quot;testRTL&quot; class=&quot;testDiv forcertl&quot; contenteditable=&quot;true&quot;&gt;
-the the adlj adaasj sdklj. there there
-&lt;/div&gt;
</del><ins>+function done()
+{
+    var next = tests.shift();
+    if (next)
+        return window.setTimeout(next, 0);
</ins><span class="cx"> 
</span><ins>+    finishJSTest();
+}
</ins><span class="cx"> 
</span><del>-LTR (text-overflow:ellipses):
-&lt;div id=&quot;testLTREllipses&quot; class=&quot;testDiv ellipses&quot; contenteditable=&quot;true&quot;&gt;
-the the adlj adaasj sdklj. there there
-&lt;/div&gt;
</del><ins>+if (window.testRunner) {
+    testRunner.dumpAsText(true);
+    testRunner.setBackingScaleFactor(2, function () {
+        done();
+    });
+}
</ins><span class="cx"> 
</span><del>-RTL (text-overflow:ellipses):
-&lt;div id=&quot;testRTLEllipses&quot; class=&quot;testDiv forcertl ellipses&quot; contenteditable=&quot;true&quot;&gt;
-the the adlj adaasj sdklj. there there
-&lt;/div&gt;
-
</del><ins>+&lt;/script&gt;
+&lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
</ins><span class="cx"> &lt;/body&gt;
</span><span class="cx"> &lt;/html&gt;
</span></span></pre></div>
<a id="trunkLayoutTestseditingspellinginlinespellingmarkershtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/editing/spelling/inline-spelling-markers.html (0 => 164643)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/spelling/inline-spelling-markers.html                                (rev 0)
+++ trunk/LayoutTests/editing/spelling/inline-spelling-markers.html        2014-02-25 13:31:45 UTC (rev 164643)
</span><span class="lines">@@ -0,0 +1,113 @@
</span><ins>+&lt;html&gt;
+&lt;head&gt;
+&lt;style&gt;
+.testDiv {
+    width: 200px;
+    height: 20px;
+    border: 1px solid black;
+    white-space: nowrap;
+    overflow: hidden;
+}
+
+.forcertl {
+    direction: rtl;
+    unicode-bidi: bidi-override;
+}
+
+.ellipses {
+    text-overflow:ellipsis;
+}
+&lt;/style&gt;
+&lt;/head&gt;
+
+&lt;body&gt;
+&lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+LTR
+&lt;div id=&quot;testLTR&quot; class=&quot;testDiv&quot; contenteditable=&quot;true&quot;&gt;&lt;/div&gt;
+RTL
+&lt;div id=&quot;testRTL&quot; class=&quot;testDiv forcertl&quot; contenteditable=&quot;true&quot;&gt;&lt;/div&gt;
+LTR (text-overflow:ellipses):
+&lt;div id=&quot;testLTREllipses&quot; class=&quot;testDiv ellipses&quot; contenteditable=&quot;true&quot;&gt;&lt;/div&gt;
+RTL (text-overflow:ellipses):
+&lt;div id=&quot;testRTLEllipses&quot; class=&quot;testDiv forcertl ellipses&quot; contenteditable=&quot;true&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+const incorrectPhrase = &quot;the the adlj adaasj sdklj. there there&quot;;
+
+description(&quot;This tests the correct placement of inline spelling and grammar &quot;
+    + &quot;markers in the following text: &quot;
+    + &quot;'&quot; + incorrectPhrase + &quot;'. &quot;
+    + &quot;Spelling markers should line up exactly under misspelled words in all cases.&quot;);
+
+jsTestIsAsync = true;
+
+if (window.internals) {
+    internals.settings.setUnifiedTextCheckerEnabled(true);
+    internals.settings.setAsynchronousSpellCheckingEnabled(true);
+}
+
+function runTextCheckingTestFor(id)
+{
+    var div = document.getElementById(id);
+    debug(div.id);
+
+    div.focus();
+    document.execCommand(&quot;InsertText&quot;, false, incorrectPhrase);
+
+    // Add a word separator so that both spelling and grammar markers will appear.
+    document.execCommand(&quot;InsertText&quot;, false, &quot; &quot;);
+
+    verifyMarkers();
+}
+
+function verifyMarkers()
+{
+    if (!window.internals)
+        return done();
+
+    // Take care of spelling markers first.
+    debug(&quot;Verifies 'adlj'.&quot;);
+    shouldBecomeEqual('internals.hasSpellingMarker(8, 4)', 'true', function() {
+        debug(&quot;Verifies 'adaasj'.&quot;);
+        shouldBecomeEqual('internals.hasSpellingMarker(13, 6)', 'true', function() {
+            debug(&quot;Verifies 'sdklj'.&quot;);
+            shouldBecomeEqual('internals.hasSpellingMarker(20, 5)', 'true', function() {
+                verifyGrammarMarkers();
+            });
+         });
+    });
+
+    function verifyGrammarMarkers()
+    {
+        debug(&quot;Verifies duplicated 'the'.&quot;);
+        shouldBecomeEqual('internals.hasGrammarMarker(4, 3)', 'true', function() {
+            debug(&quot;Verifies duplicated 'there'.&quot;);
+            shouldBecomeEqual('internals.hasGrammarMarker(33, 5)', 'true', function() {
+                debug(&quot;&quot;);
+                done();
+            });
+        });
+    }
+}
+
+var tests = [
+    function() { runTextCheckingTestFor('testLTR'); },
+    function() { runTextCheckingTestFor('testRTL'); },
+    function() { runTextCheckingTestFor('testLTREllipses'); },
+    function() { runTextCheckingTestFor('testRTLEllipses'); }
+];
+
+function done()
+{
+    var next = tests.shift();
+    if (next)
+        return window.setTimeout(next, 0);
+
+    finishJSTest();
+}
+done();
+&lt;/script&gt;
+&lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestseditingspellinginline_spelling_markershtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/editing/spelling/inline_spelling_markers.html (164642 => 164643)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/spelling/inline_spelling_markers.html        2014-02-25 12:44:42 UTC (rev 164642)
+++ trunk/LayoutTests/editing/spelling/inline_spelling_markers.html        2014-02-25 13:31:45 UTC (rev 164643)
</span><span class="lines">@@ -1,75 +0,0 @@
</span><del>-&lt;html&gt;
-&lt;head&gt;
-&lt;style&gt;
-.testDiv {
-    width: 200px;
-    height: 20px;
-    border: 1px solid black;
-    white-space: nowrap;
-    overflow: hidden;
-}
-
-.forcertl {
-    direction: rtl;
-    unicode-bidi: bidi-override;
-}
-
-.ellipses {
-    text-overflow:ellipsis;
-}
-
-&lt;/style&gt;
-
-&lt;script&gt;
-function moveCursorOverAllWords(divName, numWords) {
-    div = document.getElementById(divName);
-    div.focus();
-    var selection = window.getSelection();
-    // Move to start of text
-    selection.modify(&quot;move&quot;, &quot;backward&quot;, &quot;line&quot;);
-    // Move cursor over all words so inline spellchecking is activated for all
-    for (var i = 0; i &lt; 100; i++ ) {
-        selection.modify(&quot;move&quot;, &quot;forward&quot;, &quot;word&quot;);
-    }
-    // Remove focus from the element, since the word under the cursor won't have a misspelling marker.
-    div.blur();
-}
-
-function startTest() {
-    moveCursorOverAllWords('testLTR');
-    moveCursorOverAllWords('testRTL');
-    moveCursorOverAllWords('testLTREllipses');
-    moveCursorOverAllWords('testRTLEllipses');
-
-}
-&lt;/script&gt;
-&lt;/head&gt;
-&lt;body onload=&quot;startTest()&quot;&gt;
-&lt;p id=&quot;explanation&quot;&gt;
-This tests the correct placement of inline spelling and grammar markers in text.&lt;br&gt;
-Spelling markers should line up exactly under misspelled words in all cases.
-&lt;/p&gt;
-
-LTR
-&lt;div id=&quot;testLTR&quot; class=&quot;testDiv&quot; contenteditable=&quot;true&quot;&gt;
-the the adlj adaasj sdklj. there there
-&lt;/div&gt;
-
-RTL
-&lt;div id=&quot;testRTL&quot; class=&quot;testDiv forcertl&quot; contenteditable=&quot;true&quot;&gt;
-the the adlj adaasj sdklj. there there
-&lt;/div&gt;
-
-
-LTR (text-overflow:ellipses):
-&lt;div id=&quot;testLTREllipses&quot; class=&quot;testDiv ellipses&quot; contenteditable=&quot;true&quot;&gt;
-the the adlj adaasj sdklj. there there
-&lt;/div&gt;
-
-RTL (text-overflow:ellipses):
-&lt;div id=&quot;testRTLEllipses&quot; class=&quot;testDiv forcertl ellipses&quot; contenteditable=&quot;true&quot;&gt;
-the the adlj adaasj sdklj. there there
-&lt;/div&gt;
-
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestsplatformefleditingspellinginlinespellingmarkershidpiexpectedpng"></a>
<div class="binary"><h4>Deleted: trunk/LayoutTests/platform/efl/editing/spelling/inline-spelling-markers-hidpi-expected.png</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkLayoutTestsplatformefleditingspellinginline_spelling_markersexpectedpng"></a>
<div class="binary"><h4>Deleted: trunk/LayoutTests/platform/efl/editing/spelling/inline_spelling_markers-expected.png</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkLayoutTestsplatformefleditingspellinginline_spelling_markersexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/efl/editing/spelling/inline_spelling_markers-expected.txt (164642 => 164643)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/efl/editing/spelling/inline_spelling_markers-expected.txt        2014-02-25 12:44:42 UTC (rev 164642)
+++ trunk/LayoutTests/platform/efl/editing/spelling/inline_spelling_markers-expected.txt        2014-02-25 13:31:45 UTC (rev 164643)
</span><span class="lines">@@ -1,39 +0,0 @@
</span><del>-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderBlock {HTML} at (0,0) size 800x600
-    RenderBody {BODY} at (8,8) size 784x584
-      RenderBlock {P} at (0,0) size 784x36
-        RenderText {#text} at (0,0) size 494x17
-          text run at (0,0) width 494: &quot;This tests the correct placement of inline spelling and grammar markers in text.&quot;
-        RenderBR {BR} at (494,14) size 0x0
-        RenderText {#text} at (0,18) size 477x17
-          text run at (0,18) width 477: &quot;Spelling markers should line up exactly under misspelled words in all cases.&quot;
-      RenderBlock (anonymous) at (0,52) size 784x18
-        RenderText {#text} at (0,0) size 31x17
-          text run at (0,0) width 31: &quot;LTR&quot;
-      RenderBlock (anonymous) at (0,92) size 784x18
-        RenderText {#text} at (0,0) size 31x17
-          text run at (0,0) width 31: &quot;RTL&quot;
-      RenderBlock (anonymous) at (0,132) size 784x18
-        RenderText {#text} at (0,0) size 184x17
-          text run at (0,0) width 184: &quot;LTR (text-overflow:ellipses):&quot;
-      RenderBlock (anonymous) at (0,172) size 784x18
-        RenderText {#text} at (0,0) size 184x17
-          text run at (0,0) width 184: &quot;RTL (text-overflow:ellipses):&quot;
-layer at (8,78) size 202x22 clip at (9,79) size 200x20 scrollWidth 221
-  RenderBlock {DIV} at (0,70) size 202x22 [border: (1px solid #000000)]
-    RenderText {#text} at (1,1) size 220x17
-      text run at (1,1) width 220: &quot;the the adlj adaasj sdklj. there there&quot;
-layer at (8,118) size 202x22 clip at (9,119) size 200x20 scrollX 20 scrollWidth 220
-  RenderBlock {DIV} at (0,110) size 202x22 [border: (1px solid #000000)]
-    RenderText {#text} at (-19,1) size 220x17
-      text run at (-19,1) width 220 RTL override: &quot;the the adlj adaasj sdklj. there there&quot;
-layer at (8,158) size 202x22 clip at (9,159) size 200x20 scrollWidth 221
-  RenderBlock {DIV} at (0,150) size 202x22 [border: (1px solid #000000)]
-    RenderText {#text} at (1,1) size 220x17
-      text run at (1,1) width 220: &quot;the the adlj adaasj sdklj. there there&quot;
-layer at (8,198) size 202x22 clip at (9,199) size 200x20 scrollX 20 scrollWidth 220
-  RenderBlock {DIV} at (0,190) size 202x22 [border: (1px solid #000000)]
-    RenderText {#text} at (-19,1) size 220x17
-      text run at (-19,1) width 220 RTL override: &quot;the the adlj adaasj sdklj. there there&quot;
</del></span></pre></div>
<a id="trunkLayoutTestsplatformeflwk2TestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/efl-wk2/TestExpectations (164642 => 164643)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/efl-wk2/TestExpectations        2014-02-25 12:44:42 UTC (rev 164642)
+++ trunk/LayoutTests/platform/efl-wk2/TestExpectations        2014-02-25 13:31:45 UTC (rev 164643)
</span><span class="lines">@@ -313,6 +313,8 @@
</span><span class="cx"> Bug(EFL) editing/spelling/grammar-markers.html [ Failure ]
</span><span class="cx"> Bug(EFL) editing/spelling/grammar-markers-hidpi.html [ Failure ]
</span><span class="cx"> Bug(EFL) editing/spelling/grammar-paste.html [ Failure ]
</span><ins>+Bug(EFL) editing/spelling/inline-spelling-markers.html [ Failure ]
+Bug(EFL) editing/spelling/inline-spelling-markers-hidpi.html [ Failure ]
</ins><span class="cx"> Bug(EFL) editing/spelling/markers.html [ Failure ]
</span><span class="cx"> 
</span><span class="cx"> # EFL's text checker doesn't support the text replacement feature.
</span></span></pre></div>
<a id="trunkLayoutTestsplatformgtkTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/gtk/TestExpectations (164642 => 164643)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/gtk/TestExpectations        2014-02-25 12:44:42 UTC (rev 164642)
+++ trunk/LayoutTests/platform/gtk/TestExpectations        2014-02-25 13:31:45 UTC (rev 164643)
</span><span class="lines">@@ -1136,6 +1136,8 @@
</span><span class="cx"> Bug(GTK) editing/spelling/grammar-markers.html [ Skip ]
</span><span class="cx"> Bug(GTK) editing/spelling/grammar-markers-hidpi.html [ Skip ]
</span><span class="cx"> Bug(GTK) editing/spelling/grammar-paste.html [ Skip ]
</span><ins>+Bug(GTK) editing/spelling/inline-spelling-markers.html [ Skip ]
+Bug(GTK) editing/spelling/inline-spelling-markers-hidpi.html [ Skip ]
</ins><span class="cx"> Bug(GTK) editing/spelling/markers.html [ Skip ]
</span><span class="cx"> 
</span><span class="cx"> # Missing asynchronous spellchecking implementation.
</span></span></pre></div>
<a id="trunkLayoutTestsplatformgtkeditingspellinginlinespellingmarkershidpiexpectedpng"></a>
<div class="binary"><h4>Deleted: trunk/LayoutTests/platform/gtk/editing/spelling/inline-spelling-markers-hidpi-expected.png</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkLayoutTestsplatformgtkeditingspellinginline_spelling_markersexpectedpng"></a>
<div class="binary"><h4>Deleted: trunk/LayoutTests/platform/gtk/editing/spelling/inline_spelling_markers-expected.png</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkLayoutTestsplatformgtkeditingspellinginline_spelling_markersexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/gtk/editing/spelling/inline_spelling_markers-expected.txt (164642 => 164643)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/gtk/editing/spelling/inline_spelling_markers-expected.txt        2014-02-25 12:44:42 UTC (rev 164642)
+++ trunk/LayoutTests/platform/gtk/editing/spelling/inline_spelling_markers-expected.txt        2014-02-25 13:31:45 UTC (rev 164643)
</span><span class="lines">@@ -1,39 +0,0 @@
</span><del>-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderBlock {HTML} at (0,0) size 800x600
-    RenderBody {BODY} at (8,8) size 784x584
-      RenderBlock {P} at (0,0) size 784x34
-        RenderText {#text} at (0,0) size 494x17
-          text run at (0,0) width 494: &quot;This tests the correct placement of inline spelling and grammar markers in text.&quot;
-        RenderBR {BR} at (494,14) size 0x0
-        RenderText {#text} at (0,17) size 477x17
-          text run at (0,17) width 477: &quot;Spelling markers should line up exactly under misspelled words in all cases.&quot;
-      RenderBlock (anonymous) at (0,50) size 784x17
-        RenderText {#text} at (0,0) size 31x17
-          text run at (0,0) width 31: &quot;LTR&quot;
-      RenderBlock (anonymous) at (0,89) size 784x17
-        RenderText {#text} at (0,0) size 31x17
-          text run at (0,0) width 31: &quot;RTL&quot;
-      RenderBlock (anonymous) at (0,128) size 784x17
-        RenderText {#text} at (0,0) size 184x17
-          text run at (0,0) width 184: &quot;LTR (text-overflow:ellipses):&quot;
-      RenderBlock (anonymous) at (0,167) size 784x17
-        RenderText {#text} at (0,0) size 184x17
-          text run at (0,0) width 184: &quot;RTL (text-overflow:ellipses):&quot;
-layer at (8,75) size 202x22 clip at (9,76) size 200x20 scrollWidth 221
-  RenderBlock {DIV} at (0,67) size 202x22 [border: (1px solid #000000)]
-    RenderText {#text} at (1,1) size 220x17
-      text run at (1,1) width 220: &quot;the the adlj adaasj sdklj. there there&quot;
-layer at (8,114) size 202x22 clip at (9,115) size 200x20 scrollX 20 scrollWidth 220
-  RenderBlock {DIV} at (0,106) size 202x22 [border: (1px solid #000000)]
-    RenderText {#text} at (-19,1) size 220x17
-      text run at (-19,1) width 220 RTL override: &quot;the the adlj adaasj sdklj. there there&quot;
-layer at (8,153) size 202x22 clip at (9,154) size 200x20 scrollWidth 221
-  RenderBlock {DIV} at (0,145) size 202x22 [border: (1px solid #000000)]
-    RenderText {#text} at (1,1) size 220x17
-      text run at (1,1) width 220: &quot;the the adlj adaasj sdklj. there there&quot;
-layer at (8,192) size 202x22 clip at (9,193) size 200x20 scrollX 20 scrollWidth 220
-  RenderBlock {DIV} at (0,184) size 202x22 [border: (1px solid #000000)]
-    RenderText {#text} at (-19,1) size 220x17
-      text run at (-19,1) width 220 RTL override: &quot;the the adlj adaasj sdklj. there there&quot;
</del></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingspellinginlinespellingmarkershidpiexpectedpng"></a>
<div class="binary"><h4>Added: trunk/LayoutTests/platform/mac/editing/spelling/inline-spelling-markers-hidpi-expected.png</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<span class="cx">Property changes on: trunk/LayoutTests/platform/mac/editing/spelling/inline-spelling-markers-hidpi-expected.png
</span><span class="cx">___________________________________________________________________
</span><a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="trunkLayoutTestsplatformmaceditingspellinginline_spelling_markersexpectedpng"></a>
<div class="binary"><h4>Deleted: trunk/LayoutTests/platform/mac/editing/spelling/inline_spelling_markers-expected.png</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingspellinginline_spelling_markersexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/mac/editing/spelling/inline_spelling_markers-expected.txt (164642 => 164643)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/spelling/inline_spelling_markers-expected.txt        2014-02-25 12:44:42 UTC (rev 164642)
+++ trunk/LayoutTests/platform/mac/editing/spelling/inline_spelling_markers-expected.txt        2014-02-25 13:31:45 UTC (rev 164643)
</span><span class="lines">@@ -1,39 +0,0 @@
</span><del>-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderBlock {HTML} at (0,0) size 800x600
-    RenderBody {BODY} at (8,8) size 784x584
-      RenderBlock {P} at (0,0) size 784x36
-        RenderText {#text} at (0,0) size 494x18
-          text run at (0,0) width 494: &quot;This tests the correct placement of inline spelling and grammar markers in text.&quot;
-        RenderBR {BR} at (494,14) size 0x0
-        RenderText {#text} at (0,18) size 477x18
-          text run at (0,18) width 477: &quot;Spelling markers should line up exactly under misspelled words in all cases.&quot;
-      RenderBlock (anonymous) at (0,52) size 784x18
-        RenderText {#text} at (0,0) size 31x18
-          text run at (0,0) width 31: &quot;LTR&quot;
-      RenderBlock (anonymous) at (0,92) size 784x18
-        RenderText {#text} at (0,0) size 31x18
-          text run at (0,0) width 31: &quot;RTL&quot;
-      RenderBlock (anonymous) at (0,132) size 784x18
-        RenderText {#text} at (0,0) size 184x18
-          text run at (0,0) width 184: &quot;LTR (text-overflow:ellipses):&quot;
-      RenderBlock (anonymous) at (0,172) size 784x18
-        RenderText {#text} at (0,0) size 184x18
-          text run at (0,0) width 184: &quot;RTL (text-overflow:ellipses):&quot;
-layer at (8,78) size 202x22 clip at (9,79) size 200x20 scrollWidth 221
-  RenderBlock {DIV} at (0,70) size 202x22 [border: (1px solid #000000)]
-    RenderText {#text} at (1,1) size 220x18
-      text run at (1,1) width 220: &quot;the the adlj adaasj sdklj. there there&quot;
-layer at (8,118) size 202x22 clip at (9,119) size 200x20 scrollX 20 scrollWidth 220
-  RenderBlock {DIV} at (0,110) size 202x22 [border: (1px solid #000000)]
-    RenderText {#text} at (-19,1) size 220x18
-      text run at (-19,1) width 220 RTL override: &quot;the the adlj adaasj sdklj. there there&quot;
-layer at (8,158) size 202x22 clip at (9,159) size 200x20 scrollWidth 221
-  RenderBlock {DIV} at (0,150) size 202x22 [border: (1px solid #000000)]
-    RenderText {#text} at (1,1) size 220x18
-      text run at (1,1) width 220: &quot;the the adlj adaasj sdklj. there there&quot;
-layer at (8,198) size 202x22 clip at (9,199) size 200x20 scrollX 20 scrollWidth 220
-  RenderBlock {DIV} at (0,190) size 202x22 [border: (1px solid #000000)]
-    RenderText {#text} at (-19,1) size 220x18
-      text run at (-19,1) width 220 RTL override: &quot;the the adlj adaasj sdklj. there there&quot;
</del></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2TestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-wk2/TestExpectations (164642 => 164643)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/TestExpectations        2014-02-25 12:44:42 UTC (rev 164642)
+++ trunk/LayoutTests/platform/mac-wk2/TestExpectations        2014-02-25 13:31:45 UTC (rev 164643)
</span><span class="lines">@@ -373,6 +373,8 @@
</span><span class="cx"> editing/spelling/grammar-markers.html
</span><span class="cx"> editing/spelling/grammar-paste.html
</span><span class="cx"> editing/spelling/grammar-markers-hidpi.html
</span><ins>+editing/spelling/inline-spelling-markers.html
+editing/spelling/inline-spelling-markers-hidpi.html
</ins><span class="cx"> editing/spelling/spellcheck-async-mutation.html
</span><span class="cx"> editing/spelling/spellcheck-async-remove-frame.html
</span><span class="cx"> editing/spelling/spellcheck-async.html
</span></span></pre></div>
<a id="trunkLayoutTestsplatformwinTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/win/TestExpectations (164642 => 164643)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/win/TestExpectations        2014-02-25 12:44:42 UTC (rev 164642)
+++ trunk/LayoutTests/platform/win/TestExpectations        2014-02-25 13:31:45 UTC (rev 164643)
</span><span class="lines">@@ -1063,6 +1063,8 @@
</span><span class="cx"> editing/spelling/grammar.html
</span><span class="cx"> 
</span><span class="cx"> # Needs grammar checking.
</span><ins>+editing/spelling/inline-spelling-markers.html [ Failure ]
+editing/spelling/inline-spelling-markers-hidpi.html [ Failure ]
</ins><span class="cx"> editing/spelling/markers.html
</span><span class="cx"> 
</span><span class="cx"> # EditorClient::requestCheckingOfString() is not implemented
</span></span></pre>
</div>
</div>

</body>
</html>