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

Side by Side Diff: LayoutTests/editing/deleting/delete-blockquote-large-offsets.html

Issue 6588066: Merge 79536 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 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
« no previous file with comments | « no previous file | LayoutTests/editing/deleting/delete-blockquote-large-offsets-expected.txt » ('j') | 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 <body> 3 <body>
4 This tests setting caret inside a blockquote with a large offset and running exe cCommand('Delete'). WebKit should not crash and you should see PASS below: 4 This tests setting caret inside a blockquote with a large offset and running exe cCommand('Delete'). WebKit should not crash and you should see PASS below:
5 <div id="test" contentEditable="true"> 5 <div id="test" contentEditable="true">
6 <blockquote type="cite" id="blockquote" style="font-size: 0px; -webkit-min-logic al-height: 4px;"><br></blockquote> 6 <blockquote type="cite" id="blockquote" style="font-size: 0px; -webkit-min-logic al-height: 4px;"><br></blockquote>
7 </div> 7 </div>
8 <script> 8 <script>
9 if (window.layoutTestController) 9 if (window.layoutTestController)
10 layoutTestController.dumpAsText(); 10 layoutTestController.dumpAsText();
11 11
12 window.getSelection().setPosition(document.getElementById('blockquote'), 2000000 000); 12 window.getSelection().setPosition(document.getElementById('blockquote'), 2000000 000);
13 document.execCommand("Delete"); 13 document.execCommand("Delete");
14 14
15 var test = document.getElementById('test'); 15 var test = document.getElementById('test');
16 if (test.innerHTML == '' || test.innerHTML == '<br>') // Allow a placeholder 16 if (test.innerHTML == '' || test.innerHTML == '<br>') // Allow a placeholder
17 document.writeln('PASS'); 17 document.writeln('PASS');
18 else 18 else
19 document.writeln('FAIL: expected empty line but got ' + test.innerHTML.repla ce('<', '&lt;')); 19 document.writeln('FAIL: expected empty line but got ' + test.innerHTML.repla ce('<', '&lt;'));
20 20
21 </script> 21 </script>
22 </body> 22 </body>
23 </html> 23 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/deleting/delete-blockquote-large-offsets-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698