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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/inline_spelling_markers.html

Issue 2235643002: Code cleanup related to unified text checker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@EnableUnifiedTextCheckerByDefault
Patch Set: Rebased on removal of grammar-checking code Created 4 years, 4 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 <script src="../../editing/editing.js"></script> 4 <script src="../../editing/editing.js"></script>
5 <style> 5 <style>
6 body { overflow:hidden; } 6 body { overflow:hidden; }
7 7
8 .testDiv { 8 .testDiv {
9 width: 200px; 9 width: 200px;
10 height: 20px; 10 height: 20px;
(...skipping 15 matching lines...) Expand all
26 26
27 </head> 27 </head>
28 <body> 28 <body>
29 <script> 29 <script>
30 description("This tests the correct placement of inline spelling and grammar " 30 description("This tests the correct placement of inline spelling and grammar "
31 + "markers in text. Spelling markers should line up exactly under misspelled " 31 + "markers in text. Spelling markers should line up exactly under misspelled "
32 + "words in all cases."); 32 + "words in all cases.");
33 33
34 jsTestIsAsync = true; 34 jsTestIsAsync = true;
35 35
36 if (window.internals)
37 internals.settings.setUnifiedTextCheckerEnabled(true);
38
39 if (window.testRunner) 36 if (window.testRunner)
40 testRunner.dumpAsTextWithPixelResults(); 37 testRunner.dumpAsTextWithPixelResults();
41
42 </script> 38 </script>
43 39
44 LTR 40 LTR
45 <div id="testLTR" class="testDiv" contenteditable="true">the the adlj adaasj sdk lj. there there</div> 41 <div id="testLTR" class="testDiv" contenteditable="true">the the adlj adaasj sdk lj. there there</div>
46 42
47 RTL 43 RTL
48 <div id="testRTL" class="testDiv forcertl" contenteditable="true">the the adlj a daasj sdklj. there there</div> 44 <div id="testRTL" class="testDiv forcertl" contenteditable="true">the the adlj a daasj sdklj. there there</div>
49 45
50 LTR (text-overflow:ellipses): 46 LTR (text-overflow:ellipses):
51 <div id="testLTREllipses" class="testDiv ellipses" contenteditable="true">the th e adlj adaasj sdklj. there there</div> 47 <div id="testLTREllipses" class="testDiv ellipses" contenteditable="true">the th e adlj adaasj sdklj. there there</div>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 var next = tests.shift(); 96 var next = tests.shift();
101 if (next) 97 if (next)
102 return window.setTimeout(next, 0); 98 return window.setTimeout(next, 0);
103 99
104 finishJSTest(); 100 finishJSTest();
105 } 101 }
106 done(); 102 done();
107 </script> 103 </script>
108 </body> 104 </body>
109 </html> 105 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698