Reviewed by me
authorkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Nov 2004 15:58:45 +0000 (15:58 +0000)
committerkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Nov 2004 15:58:45 +0000 (15:58 +0000)
        More layout tests.

        * layout-tests/editing/deleting/delete-br-008-expected.txt: Added.
        * layout-tests/editing/deleting/delete-br-008.html: Added.
        * layout-tests/editing/deleting/delete-br-009-expected.txt: Added.
        * layout-tests/editing/deleting/delete-br-009.html: Added.
        * layout-tests/editing/deleting/delete-br-010-expected.txt: Added.
        * layout-tests/editing/deleting/delete-br-010.html: Added.

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

LayoutTests/editing/deleting/delete-br-008-expected.txt [new file with mode: 0644]
LayoutTests/editing/deleting/delete-br-008.html [new file with mode: 0644]
LayoutTests/editing/deleting/delete-br-009-expected.txt [new file with mode: 0644]
LayoutTests/editing/deleting/delete-br-009.html [new file with mode: 0644]
LayoutTests/editing/deleting/delete-br-010-expected.txt [new file with mode: 0644]
LayoutTests/editing/deleting/delete-br-010.html [new file with mode: 0644]
WebCore/ChangeLog-2005-08-23

diff --git a/LayoutTests/editing/deleting/delete-br-008-expected.txt b/LayoutTests/editing/deleting/delete-br-008-expected.txt
new file mode 100644 (file)
index 0000000..8857062
--- /dev/null
@@ -0,0 +1,16 @@
+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 [border: (2px solid #FF0000)]
+        RenderText {TEXT} at (14,14) size 40x28
+          text run at (14,14) width 40: "One"
+      RenderBlock (anonymous) at (0,56) size 784x0
+      RenderBlock {DIV} at (0,56) size 784x56 [border: (2px solid #FF0000)]
+        RenderText {TEXT} at (14,14) size 44x28
+          text run at (14,14) width 44: "Two"
+selection is CARET:
+start:      position 3 of child 1 {TEXT} of child 2 {DIV} of root {BODY}
+upstream:   position 3 of child 1 {TEXT} of child 2 {DIV} of root {BODY}
+downstream: position 3 of child 1 {TEXT} of child 2 {DIV} of root {BODY}
diff --git a/LayoutTests/editing/deleting/delete-br-008.html b/LayoutTests/editing/deleting/delete-br-008.html
new file mode 100644 (file)
index 0000000..813dc6d
--- /dev/null
@@ -0,0 +1,34 @@
+<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 < 4; i++)
+        moveSelectionForwardByCharacterCommand();
+    deleteCommand();
+}
+
+</script>
+
+<title>Editing Test</title> 
+</head> 
+<body contenteditable id="root">
+
+<div class="editing" id="test">One</div><br><div class="editing">Two</div>
+
+<script>
+runEditingTest();
+</script>
+
+</body>
+</html>
diff --git a/LayoutTests/editing/deleting/delete-br-009-expected.txt b/LayoutTests/editing/deleting/delete-br-009-expected.txt
new file mode 100644 (file)
index 0000000..424f894
--- /dev/null
@@ -0,0 +1,16 @@
+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 [border: (2px solid #FF0000)]
+        RenderText {TEXT} at (14,14) size 40x28
+          text run at (14,14) width 40: "One"
+      RenderBlock (anonymous) at (0,56) size 784x0
+      RenderBlock {DIV} at (0,56) size 784x56 [border: (2px solid #FF0000)]
+        RenderText {TEXT} at (14,14) size 44x28
+          text run at (14,14) width 44: "Two"
+selection is CARET:
+start:      position 0 of child 1 {TEXT} of child 3 {DIV} of root {BODY}
+upstream:   position 0 of child 3 {DIV} of root {BODY}
+downstream: position 0 of child 1 {TEXT} of child 3 {DIV} of root {BODY}
diff --git a/LayoutTests/editing/deleting/delete-br-009.html b/LayoutTests/editing/deleting/delete-br-009.html
new file mode 100644 (file)
index 0000000..14e7ebf
--- /dev/null
@@ -0,0 +1,34 @@
+<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 < 5; i++)
+        moveSelectionForwardByCharacterCommand();
+    deleteCommand();
+}
+
+</script>
+
+<title>Editing Test</title> 
+</head> 
+<body contenteditable id="root">
+
+<div class="editing" id="test">One</div><br><div class="editing">Two</div>
+
+<script>
+runEditingTest();
+</script>
+
+</body>
+</html>
diff --git a/LayoutTests/editing/deleting/delete-br-010-expected.txt b/LayoutTests/editing/deleting/delete-br-010-expected.txt
new file mode 100644 (file)
index 0000000..a681a5c
--- /dev/null
@@ -0,0 +1,15 @@
+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 [border: (2px solid #FF0000)]
+        RenderText {TEXT} at (14,14) size 40x28
+          text run at (14,14) width 40: "One"
+        RenderText {TEXT} at (54,14) size 44x28
+          text run at (54,14) width 44: "Two"
+      RenderBlock (anonymous) at (0,56) size 784x0
+selection is CARET:
+start:      position 3 of child 1 {TEXT} of child 2 {DIV} of root {BODY}
+upstream:   position 3 of child 1 {TEXT} of child 2 {DIV} of root {BODY}
+downstream: position 0 of child 2 {TEXT} of child 2 {DIV} of root {BODY}
diff --git a/LayoutTests/editing/deleting/delete-br-010.html b/LayoutTests/editing/deleting/delete-br-010.html
new file mode 100644 (file)
index 0000000..420ff45
--- /dev/null
@@ -0,0 +1,35 @@
+<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 < 5; i++)
+        moveSelectionForwardByCharacterCommand();
+    deleteCommand();
+    deleteCommand();
+}
+
+</script>
+
+<title>Editing Test</title> 
+</head> 
+<body contenteditable id="root">
+
+<div class="editing" id="test">One</div><br><div class="editing">Two</div>
+
+<script>
+runEditingTest();
+</script>
+
+</body>
+</html>
index 78a95ae486abf69ebbbb05109f69ae72f48e728d..21092ba3074df8359cb32c773122cb9982d5c58b 100644 (file)
@@ -1,3 +1,16 @@
+2004-11-03  Ken Kocienda  <kocienda@apple.com>
+
+        Reviewed by me
+        
+        More layout tests.
+
+        * layout-tests/editing/deleting/delete-br-008-expected.txt: Added.
+        * layout-tests/editing/deleting/delete-br-008.html: Added.
+        * layout-tests/editing/deleting/delete-br-009-expected.txt: Added.
+        * layout-tests/editing/deleting/delete-br-009.html: Added.
+        * layout-tests/editing/deleting/delete-br-010-expected.txt: Added.
+        * layout-tests/editing/deleting/delete-br-010.html: Added.
+
 2004-11-03  Maciej Stachowiak  <mjs@apple.com>
 
         Fix by Yasuo Kida, reviewed by me.