Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(483)

Side by Side Diff: LayoutTests/platform/chromium/editing/spelling/move-cursor-to-misspelled-word.html

Issue 14120003: Move LayoutTests from platform/chromium/... to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src=../../../../fast/js/resources/js-test-pre.js language="javascript" t ype="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 movi ng a cursor on a misspelled word.' +
10 'To test manually, type a misspelled word "zz " and type a left-arro w key to move the cursor on it.' +
11 'This test succeeds when "zz" is marked as misspelled.');
12
13 internals.settings.setAsynchronousSpellCheckingEnabled(true);
14 var node = document.getElementById('src');
15 node.focus();
16 document.execCommand("InsertText", false, 'z');
17 document.execCommand("InsertText", false, 'z');
18 document.execCommand("InsertText", false, ' ');
19 window.getSelection().modify('move', 'backward', 'character');
20 shouldBeTrue('internals.hasSpellingMarker(document, 0, 2)');
21 </script>
22 <script src="../../../../fast/js/resources/js-test-post.js"></script>
23 </body>
24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698