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

Side by Side Diff: LayoutTests/editing/deleting/display-table.html

Issue 59963002: Unable to delete the first and the last characters of a contenteditable div with display: table. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Introducing isTableElement() Created 7 years, 1 month 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 #tableDiv {
6 display: table;
7 }
8 </style>
9 <script src="../../resources/dump-as-markup.js"></script>
10 </head>
11 <body>
12 <div id="tableDiv" contenteditable="true">Try deleting characters at the beginni ng and at the end of this line.</div>
13 <script>
14 Markup.description("Testcase for bug http://crbug.com/107366: Can't delete first and last characters of a root editable element with display: table");
15
16 Markup.waitUntilDone();
17
18 var testDiv = document.getElementById('tableDiv');
19 var selection = window.getSelection();
20
21 selection.collapse(testDiv, 0);
22 document.execCommand("forwardDelete");
yosin_UTC9 2013/11/14 06:57:59 I think js-test.js is easier to write test and ver
arpitab_ 2013/11/14 07:08:19 Understand. I will post another patch with the men
23 Markup.dump(testDiv, "The following markup should show the 'T' character deleted from the start word 'Try'.");
24
25 selection.collapse(testDiv, 1);
26 document.execCommand("Delete");
27 Markup.dump(testDiv, "The following markup should show the '.' character deleted from the end of the line.");
28
29 Markup.notifyDone();
30 </script>
31 </body>
32 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/deleting/display-table-expected.txt » ('j') | Source/core/editing/CompositeEditCommand.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698