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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/spellcheck-editable-on-focus.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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../editing.js"></script> 4 <script src="../editing.js"></script>
5 <script src="resources/util.js"></script> 5 <script src="resources/util.js"></script>
6 <script src="../../resources/js-test.js"></script> 6 <script src="../../resources/js-test.js"></script>
7 </head> 7 </head>
8 <body> 8 <body>
9 <div id="container"> 9 <div id="container">
10 <div id="test_editable" contentEditable>zz zz zz.</div> 10 <div id="test_editable" contentEditable>zz zz zz.</div>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 }); 42 });
43 }); 43 });
44 } 44 }
45 45
46 function test() { 46 function test() {
47 if (!window.internals) { 47 if (!window.internals) {
48 debug("Automatic testing impossible. Test manually."); 48 debug("Automatic testing impossible. Test manually.");
49 return; 49 return;
50 } 50 }
51 51
52 internals.settings.setUnifiedTextCheckerEnabled(true);
53
54 // Check whether non-focused elements do not have spelling markers, then 52 // Check whether non-focused elements do not have spelling markers, then
55 // verify them when they get focused. 53 // verify them when they get focused.
56 verifySpellingMarkers(false); 54 verifySpellingMarkers(false);
57 } 55 }
58 test(); 56 test();
59 </script> 57 </script>
60 </body> 58 </body>
61 </html> 59 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698