Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / spelling / move-cursor-to-misspelled-word.html
blob53427ed204447db2f3b418748fefc6c6f3665ce8
1 <html>
2 <head>
3 <script src=../../resources/js-test.js language="javascript" type="text/javascript"></script>
4 <title>Testing moving cursor to a misspelled word</title>
5 </head>
6 <body>
7 <div id="src" contenteditable="true" spellcheck="true"></div><br/>
8 <script language="javascript">
9 description('Test if Chrome WebKit does not remove a misspelled marker when moving a cursor on a misspelled word.' +
10 'To test manually, type a misspelled word "zz " and type a left-arrow key to move the cursor on it.' +
11 'This test succeeds when "zz" is marked as misspelled.');
13 jsTestIsAsync = true;
15 internals.settings.setAsynchronousSpellCheckingEnabled(true);
16 var node = document.getElementById('src');
17 node.focus();
18 document.execCommand("InsertText", false, 'z');
19 document.execCommand("InsertText", false, 'z');
20 document.execCommand("InsertText", false, ' ');
21 window.getSelection().modify('move', 'backward', 'character');
22 shouldBecomeEqual('internals.hasSpellingMarker(document, 0, 2)', 'true', finishJSTest);
23 </script>
24 </body>
25 </html>