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

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

Issue 2727673005: Better spellcheck_test (Closed)
Patch Set: more minor fix Created 3 years, 9 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 <script src="../../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script> 4 <script src="../assert_selection.js"></script>
5 <script src="spellcheck_test.js"></script> 5 <script src="spellcheck_test.js"></script>
6 6
7 <script> 7 <script>
8 // This file shows sample usage of spellcheck_test.js 8 // This file shows sample usage of spellcheck_test.js
9 9
10 spellcheck_test( 10 spellcheck_test(
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 const div = document.querySelector('div'); 56 const div = document.querySelector('div');
57 div.setAttribute('spellcheck', 'true'); 57 div.setAttribute('spellcheck', 'true');
58 // Trigger spellchecker by selection change. 58 // Trigger spellchecker by selection change.
59 document.getSelection().collapse(div, 0); 59 document.getSelection().collapse(div, 0);
60 }, 60 },
61 '<div contenteditable spellcheck="true">#zz#.</div>', 61 '<div contenteditable spellcheck="true">#zz#.</div>',
62 'Marker appears after setting spellcheck=true.' 62 'Marker appears after setting spellcheck=true.'
63 ) 63 )
64 }); 64 });
65 65
66 // TODO(xiaochengh): Design interface for specifying content of subframes. 66 // TODO(xiaochengh): Design interface to verify cold mode checking results.
67 </script> 67 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698