Added a couple more layout tests.
* layout-tests/editing/deleting/delete-line-013-expected.txt: Added.
* layout-tests/editing/deleting/delete-line-013.html: Added.
* layout-tests/editing/deleting/delete-line-014-expected.txt: Added.
* layout-tests/editing/deleting/delete-line-014.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8145
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
--- /dev/null
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x600
+ RenderBlock {HTML} at (0,0) size 800x600
+ RenderBody {BODY} at (8,8) size 784x584
+ RenderBlock {DIV} at (0,0) size 784x28
+ RenderText {TEXT} at (0,0) size 139x28
+ text run at (0,0) width 139: "There is a tide"
+ RenderBlock (anonymous) at (0,28) size 784x28
+ RenderText {TEXT} at (0,0) size 197x28
+ text run at (0,0) width 197: "in the affairs of men"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+selection is CARET:
+start: position 15 of child 1 {TEXT} of child 1 {DIV} of root {BODY}
+upstream: position 15 of child 1 {TEXT} of child 1 {DIV} of root {BODY}
+downstream: position 15 of child 1 {TEXT} of child 1 {DIV} of root {BODY}
--- /dev/null
+<html>
+<head>
+
+<style>
+body {
+ font-size: 24px;
+}
+</style>
+<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
+
+<script>
+
+function editingTest() {
+ for (i = 0; i < 16; i++)
+ moveSelectionForwardByCharacterCommand();
+ deleteCommand();
+}
+
+</script>
+
+<title>Editing Test</title>
+</head>
+<body contenteditable id="root">
+<div id="test">There is a tide</div><br>in the affairs of men
+
+<!-- Delete only the <br> after the block -->
+
+<script>
+runEditingTest();
+</script>
+
+</body>
+</html>
--- /dev/null
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x600
+ RenderBlock {HTML} at (0,0) size 800x600
+ RenderBody {BODY} at (8,8) size 784x584
+ RenderBlock {DIV} at (0,0) size 784x56
+ RenderText {TEXT} at (0,0) size 15x28
+ text run at (0,0) width 15: "T"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,28) size 197x28
+ text run at (0,28) width 197: "in the affairs of men"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,56) size 784x0
+selection is CARET:
+start: position 1 of child 1 {TEXT} of child 1 {DIV} of root {BODY}
+upstream: position 1 of child 1 {TEXT} of child 1 {DIV} of root {BODY}
+downstream: position 0 of child 2 {BR} of child 1 {DIV} of root {BODY}
--- /dev/null
+<html>
+<head>
+
+<style>
+body {
+ font-size: 24px;
+}
+</style>
+<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
+
+<script>
+
+function editingTest() {
+ moveSelectionForwardByCharacterCommand();
+ for (i = 0; i < 15; i++)
+ extendSelectionForwardByCharacterCommand();
+ deleteCommand();
+}
+
+</script>
+
+<title>Editing Test</title>
+</head>
+<body contenteditable id="root">
+<div id="test">There is a tide</div><br>in the affairs of men
+
+<!-- Do not fall into the trap represented by this bug:
+ <rdar://problem/3890955> 8A314: Forward delete sometimes fails to delete the selected quoted text
+
+ Delete the whole selection and not just the trailing <br>.
+-->
+
+<script>
+runEditingTest();
+</script>
+
+</body>
+</html>
+2004-12-07 Ken Kocienda <kocienda@apple.com>
+
+ Reviewed by me
+
+ Added a couple more layout tests.
+
+ * layout-tests/editing/deleting/delete-line-013-expected.txt: Added.
+ * layout-tests/editing/deleting/delete-line-013.html: Added.
+ * layout-tests/editing/deleting/delete-line-014-expected.txt: Added.
+ * layout-tests/editing/deleting/delete-line-014.html: Added.
+
2004-12-06 Maciej Stachowiak <mjs@apple.com>
Reviewed by Hyatt.