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

Side by Side Diff: LayoutTests/editing/spelling/grammar-edit-word.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 <title>Editing a grammatically-incorrect word</title> 5 <title>Editing a grammatically-incorrect word</title>
6 </head> 6 </head>
7 <body> 7 <body>
8 <div id="src" contenteditable="true" spellcheck="true"></div><br/> 8 <div id="src" contenteditable="true" spellcheck="true"></div><br/>
9 <script language="javascript"> 9 <script language="javascript">
10 description('Test if WebKit removes grammar markers when we edit a grammatically -incorrect word. ' 10 description('Test if WebKit removes grammar markers when we edit a grammatically -incorrect word. '
11 + 'To test manually, type a grammatically-incorrect sentence "You has the ri ght." and type ' 11 + 'To test manually, type a grammatically-incorrect sentence "You has the ri ght." and type '
12 + 'a backspace key to delete the last character of "has". ' 12 + 'a backspace key to delete the last character of "has". '
13 + 'This test succeeds when "ha" does not have grammar markers.'); 13 + 'This test succeeds when "ha" does not have grammar markers.');
14 14
(...skipping 15 matching lines...) Expand all
30 30
31 var target = document.getElementById('src'); 31 var target = document.getElementById('src');
32 target.focus(); 32 target.focus();
33 document.execCommand("InsertText", false, "You has the right."); 33 document.execCommand("InsertText", false, "You has the right.");
34 34
35 if (window.internals) 35 if (window.internals)
36 shouldBecomeEqual('internals.hasGrammarMarker(document, 4, 3)', 'true', edit AndCheckSentence); 36 shouldBecomeEqual('internals.hasGrammarMarker(document, 4, 3)', 'true', edit AndCheckSentence);
37 </script> 37 </script>
38 </body> 38 </body>
39 </html> 39 </html>
OLDNEW
« no previous file with comments | « LayoutTests/editing/spelling/grammar.html ('k') | LayoutTests/editing/spelling/grammar-markers.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698