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

Side by Side Diff: LayoutTests/editing/undo/crash-delete-from-document.html

Issue 315493004: reset VisibleSelection at the Undo command. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 <head> 2 <head>
3 <style>
4 hr { display: table-cell; }
5 </style>
6 <script> 3 <script>
7 if (window.testRunner) 4 if (window.testRunner)
8 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
9 6
10 onload = function() { 7 window.onload = function () {
11 document.designMode = 'on'; 8 document.designMode = 'on';
9
10 document.body.textContent = 'aaaa';
12 document.execCommand('SelectAll'); 11 document.execCommand('SelectAll');
13 document.execCommand('Indent'); 12 document.execCommand('Italic');
13 window.getSelection().deleteFromDocument();
14
15 document.execCommand('Undo');
16 window.getSelection().deleteFromDocument();
17
14 document.body.textContent = 'PASS if Blink doesn\'t crash.'; 18 document.body.textContent = 'PASS if Blink doesn\'t crash.';
15 }; 19 };
16 </script> 20 </script>
17 </head> 21 </head>
18 <body> 22 <body>
19 before<hr><hr>after
20 </body> 23 </body>
21 </html> 24 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/undo/crash-delete-from-document-expected.txt » ('j') | Source/core/dom/Range.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698