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

Side by Side Diff: LayoutTests/editing/selection/character-data-mutation-crash.html

Issue 217003006: Remove carriage returns from LayoutTests (01) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix caret-and-focus-ring Created 6 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <p>This tests modifying the value of text node that's pointed by the selection a nd executing an editing command. WebKit should not crash and you should see PASS :</p> 4 <p>This tests modifying the value of text node that's pointed by the selection a nd executing an editing command. WebKit should not crash and you should see PASS :</p>
5 <div id="test" contenteditable>hello world</div> 5 <div id="test" contenteditable>hello world</div>
6 <script> 6 <script>
7 7
8 if (window.testRunner) 8 if (window.testRunner)
9 testRunner.dumpAsText(); 9 testRunner.dumpAsText();
10 10
11 var test = document.getElementById('test'); 11 var test = document.getElementById('test');
12 test.focus(); 12 test.focus();
13 window.getSelection().setBaseAndExtent(test.firstChild, 1, test.firstChild, 10); 13 window.getSelection().setBaseAndExtent(test.firstChild, 1, test.firstChild, 10);
14 test.firstChild.data = 'hey'; 14 test.firstChild.data = 'hey';
15 document.execCommand('insertLineBreak', false, null); 15 document.execCommand('insertLineBreak', false, null);
16 16
17 test.innerHTML = 'PASS'; 17 test.innerHTML = 'PASS';
18 18
19 </script> 19 </script>
20 </body> 20 </body>
21 </html> 21 </html>
OLDNEW
« no previous file with comments | « LayoutTests/editing/selection/character-data-mutation.html ('k') | LayoutTests/editing/selection/clear-selection-crash.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698