Reviewed by me
authorkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Apr 2004 20:18:59 +0000 (20:18 +0000)
committerkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Apr 2004 20:18:59 +0000 (20:18 +0000)
        Added one more layout test for editing.

        * layout-tests/editing/deleting/delete-3608445-fix-expected.txt: Added.
        * layout-tests/editing/deleting/delete-3608445-fix.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6348 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/editing/deleting/delete-3608445-fix-expected.txt [new file with mode: 0644]
LayoutTests/editing/deleting/delete-3608445-fix.html [new file with mode: 0644]
WebCore/ChangeLog-2005-08-23

diff --git a/LayoutTests/editing/deleting/delete-3608445-fix-expected.txt b/LayoutTests/editing/deleting/delete-3608445-fix-expected.txt
new file mode 100644 (file)
index 0000000..87682eb
--- /dev/null
@@ -0,0 +1,20 @@
+layer at (0,0) size 800x600
+  RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x128
+  RenderBlock {HTML} at (0,0) size 800x128
+    RenderBody {BODY} at (8,8) size 784x112
+      RenderBlock {DIV} at (0,0) size 784x112 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 205x84
+          RenderText {TEXT} at (14,14) size 15x28
+            text run at (14,14) width 15: "s "
+          RenderBR {BR} at (0,0) size 0x0
+          RenderText {TEXT} at (0,0) size 0x0
+          RenderBR {BR} at (14,42) size 0x28
+          RenderText {TEXT} at (14,70) size 205x28
+            text run at (14,70) width 94: " war. We "
+            text run at (108,70) width 111: "of that war."
+        RenderText {TEXT} at (0,0) size 0x0
+selection is CARET:
+start:      position 0 of child 5 {TEXT} of child 2 {SPAN} of root {DIV}
+upstream:   position 1 of child 4 {BR} of child 2 {SPAN} of root {DIV}
+downstream: position 0 of child 5 {TEXT} of child 2 {SPAN} of root {DIV}
diff --git a/LayoutTests/editing/deleting/delete-3608445-fix.html b/LayoutTests/editing/deleting/delete-3608445-fix.html
new file mode 100644 (file)
index 0000000..d15c7a6
--- /dev/null
@@ -0,0 +1,39 @@
+<html> 
+<head>
+
+<style>
+.editing { 
+    border: 2px solid red; 
+    padding: 12px; 
+    font-size: 24px; 
+}
+</style>
+<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
+
+<script>
+
+function editingTest() {
+    for (i = 0; i < 8; i++) {
+        moveSelectionForwardByCharacterCommand();    
+    }
+    for (i = 0; i < 4; i++) {
+        deleteCommand(); 
+    }
+}
+
+</script>
+
+<title>Editing Test</title> 
+</head> 
+<body>
+<div contenteditable id="root" class="editing">
+<span id="test">s <br>
+<br>that war. We  of that war.</span>
+</div>
+
+<script>
+runEditingTest();
+</script>
+
+</body>
+</html>
index 237e47fbd347e2c6d868cac0d4f4e42fb2087625..1166fbc47db6c8b1511cc7b32f29b798ca34b5b0 100644 (file)
@@ -1,3 +1,12 @@
+2004-04-09  Ken Kocienda  <kocienda@apple.com>
+
+        Reviewed by me
+        
+        Added one more layout test for editing.
+
+        * layout-tests/editing/deleting/delete-3608445-fix-expected.txt: Added.
+        * layout-tests/editing/deleting/delete-3608445-fix.html: Added.
+
 2004-04-08  Maciej Stachowiak  <mjs@apple.com>
 
         Reviewed by John.