| Index: LayoutTests/editing/deleting/display-table.html
|
| diff --git a/LayoutTests/editing/deleting/display-table.html b/LayoutTests/editing/deleting/display-table.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8926a68b0d639916dde41c306343bf4ca49911cb
|
| --- /dev/null
|
| +++ b/LayoutTests/editing/deleting/display-table.html
|
| @@ -0,0 +1,32 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<style>
|
| +#tableDiv {
|
| + display: table;
|
| +}
|
| +</style>
|
| +<script src="../../resources/dump-as-markup.js"></script>
|
| +</head>
|
| +<body>
|
| +<div id="tableDiv" contenteditable="true">Try deleting characters at the beginning and at the end of this line.</div>
|
| +<script>
|
| +Markup.description("Testcase for bug http://crbug.com/107366: Can't delete first and last characters of a root editable element with display: table");
|
| +
|
| +Markup.waitUntilDone();
|
| +
|
| +var testDiv = document.getElementById('tableDiv');
|
| +var selection = window.getSelection();
|
| +
|
| +selection.collapse(testDiv, 0);
|
| +document.execCommand("forwardDelete");
|
| +Markup.dump(testDiv, "The following markup should show the 'T' character deleted from the start word 'Try'.");
|
| +
|
| +selection.collapse(testDiv, 1);
|
| +document.execCommand("Delete");
|
| +Markup.dump(testDiv, "The following markup should show the '.' character deleted from the end of the line.");
|
| +
|
| +Markup.notifyDone();
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|