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

Side by Side Diff: LayoutTests/fast/events/key-events-in-editable-gridbox.html

Issue 870013003: Div having contentEditable and display:grid cannot be edited if it is empty. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: ResolveConflict Created 5 years, 10 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/fast/events/key-events-in-editable-gridbox-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
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <style>
4 #target {
5 display: grid;
6 display: -webkit-grid;
7 }
8 </style>
9 <div id="target" contentEditable>T</div>
10 <script>
11 var targetDiv = document.getElementById('target');
12 targetDiv.focus();
13
14 // Move cursor to the end of line.
15 getSelection().modify('move', 'forward', 'lineboundary');
16
17 document.execCommand("insertText", false, "EST");
18 shouldBeEqualToString("targetDiv.innerText", "TEST");
19
20 document.execCommand("delete");
21 document.execCommand("delete");
22 document.execCommand("delete");
23 document.execCommand("delete");
24 shouldBeEmptyString("targetDiv.innerText");
25
26 document.execCommand("insertText", false, "TEST");
27 shouldBeEqualToString("targetDiv.innerText", "TEST");
28 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/key-events-in-editable-gridbox-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698