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

Side by Side Diff: LayoutTests/editing/undo/undo-after-event-edited.html

Issue 16045003: Make editing/undo/undo-after-event-edited.html stable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2013-06-03T16:54 Created 7 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 * { display:run-in; } 5 * { display:run-in; }
6 .collapse { visibility:collapse; } 6 .collapse { visibility:collapse; }
7 </style> 7 </style>
8 <script> 8 <script>
9 9
10 if (window.testRunner) { 10 if (window.testRunner) {
(...skipping 19 matching lines...) Expand all
30 } 30 }
31 31
32 document.addEventListener("webkitEditableContentChanged", event_handler_webkitEd itableContentChanged, true); 32 document.addEventListener("webkitEditableContentChanged", event_handler_webkitEd itableContentChanged, true);
33 33
34 function event_handler_DOMCharacterDataModified() { 34 function event_handler_DOMCharacterDataModified() {
35 document.execCommand('InsertParagraph',false,false); 35 document.execCommand('InsertParagraph',false,false);
36 } 36 }
37 37
38 document.addEventListener("DOMCharacterDataModified", event_handler_DOMCharacter DataModified, false); 38 document.addEventListener("DOMCharacterDataModified", event_handler_DOMCharacter DataModified, false);
39 39
40 setTimeout(function() { 40 window.addEventListener("load", function() {
41 var selection=window.getSelection(); 41 var selection=window.getSelection();
42 document.execCommand("SelectAll", false) 42 document.execCommand("SelectAll", false)
43 var range = selection.getRangeAt(0); 43 var range = selection.getRangeAt(0);
44 var documentFragment = range.extractContents(); 44 var documentFragment = range.extractContents();
45 document.execCommand('Undo',false); 45 document.execCommand('Undo',false);
46 }, 1); 46 });
47 </script> 47 </script>
48 </head> 48 </head>
49 <body> 49 <body>
50 <table class="collapse"> 50 <table class="collapse">
51 <caption> 51 <caption>
52 original text 52 original text
53 </caption> 53 </caption>
54 </table> 54 </table>
55 </body> 55 </body>
56 </html> 56 </html>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698