Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / key-events-in-editable-gridbox.html
blob1bbbedef6fc10762404f343eeaa3be07424d6b7c
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <style>
4 #target {
5 display: grid;
6 display: -webkit-grid;
8 </style>
9 <div id="target" contentEditable>T</div>
10 <script>
11 var targetDiv = document.getElementById('target');
12 targetDiv.focus();
14 // Move cursor to the end of line.
15 getSelection().modify('move', 'forward', 'lineboundary');
17 document.execCommand("insertText", false, "EST");
18 shouldBeEqualToString("targetDiv.innerText", "TEST");
20 document.execCommand("delete");
21 document.execCommand("delete");
22 document.execCommand("delete");
23 document.execCommand("delete");
24 shouldBeEmptyString("targetDiv.innerText");
26 document.execCommand("insertText", false, "TEST");
27 shouldBeEqualToString("targetDiv.innerText", "TEST");
28 </script>