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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Text/normalize-crash-in-spell-checker.html

Issue 2251693003: Rename "ContinuousSpellChecking" to "SpellChecking" in Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 <div id="sample" contenteditable="true"></div> 2 <div id="sample" contenteditable="true"></div>
3 <script> 3 <script>
4 if (window.testRunner) 4 if (window.testRunner)
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 6
7 function $(id) { return document.getElementById(id); } 7 function $(id) { return document.getElementById(id); }
8 8
9 if (window.internals) { 9 if (window.internals) {
10 internals.setContinuousSpellCheckingEnabled(true); 10 internals.setSpellCheckingEnabled(true);
11 } 11 }
12 12
13 var text1 = document.createTextNode('abc'); 13 var text1 = document.createTextNode('abc');
14 var text2 = document.createTextNode(' defg'); 14 var text2 = document.createTextNode(' defg');
15 var sample = $('sample'); 15 var sample = $('sample');
16 sample.appendChild(text1); 16 sample.appendChild(text1);
17 sample.appendChild(text2); 17 sample.appendChild(text2);
18 var selection = window.getSelection(); 18 var selection = window.getSelection();
19 selection.collapse(sample, 0); 19 selection.collapse(sample, 0);
20 selection.extend(sample, 2); 20 selection.extend(sample, 2);
21 sample.normalize(); 21 sample.normalize();
22 22
23 if (window.testRunner) 23 if (window.testRunner)
24 document.body.textContent = 'PASS; NOT CRASHED'; 24 document.body.textContent = 'PASS; NOT CRASHED';
25 </script> 25 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698