- added a few layout tests, rdar://3694510
authorvicki <vicki@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Jun 2004 18:07:27 +0000 (18:07 +0000)
committervicki <vicki@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Jun 2004 18:07:27 +0000 (18:07 +0000)
        * layout-tests/editing/deleting/delete-image-004-expected.txt: Added.
        * layout-tests/editing/deleting/delete-image-004.html: Added.
        * layout-tests/editing/selection/extend-by-character-006-expected.txt: Added.
        * layout-tests/editing/selection/extend-by-character-006.html: Added.

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

LayoutTests/editing/deleting/delete-image-004-expected.txt [new file with mode: 0644]
LayoutTests/editing/deleting/delete-image-004.html [new file with mode: 0644]
LayoutTests/editing/selection/extend-by-character-006-expected.txt [new file with mode: 0644]
LayoutTests/editing/selection/extend-by-character-006.html [new file with mode: 0644]
WebCore/ChangeLog-2005-08-23

diff --git a/LayoutTests/editing/deleting/delete-image-004-expected.txt b/LayoutTests/editing/deleting/delete-image-004-expected.txt
new file mode 100644 (file)
index 0000000..4c9ffa5
--- /dev/null
@@ -0,0 +1,18 @@
+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 784x137 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 158x28
+          RenderText {TEXT} at (0,0) size 0x0
+          RenderImage {IMG} at (14,14) size 76x103
+          RenderText {TEXT} at (90,95) size 6x28
+            text run at (90,95) width 6: " "
+          RenderImage {IMG} at (96,14) size 76x103
+          RenderText {TEXT} at (0,0) size 0x0
+        RenderText {TEXT} at (0,0) size 0x0
+selection is CARET:
+start:      position 0 of child 1 {TEXT} of child 2 {SPAN} of root {DIV}
+upstream:   position 0 of child 1 {TEXT} of root {DIV}
+downstream: position 0 of child 2 {IMG} of child 2 {SPAN} of root {DIV}
diff --git a/LayoutTests/editing/deleting/delete-image-004.html b/LayoutTests/editing/deleting/delete-image-004.html
new file mode 100644 (file)
index 0000000..31b7aaa
--- /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 < 4; i++)
+       extendSelectionForwardByCharacterCommand();
+       deleteCommand();
+}
+
+</script>
+
+<title>Editing Test</title> 
+</head> 
+<body>
+<div contenteditable id="root" class="editing">
+<span id="test"> <img src="../abe.jpg"> <img src="../abe.jpg"> </span>
+</div>
+
+<script>
+runEditingTest();
+</script>
+
+</body>
+</html>
diff --git a/LayoutTests/editing/selection/extend-by-character-006-expected.txt b/LayoutTests/editing/selection/extend-by-character-006-expected.txt
new file mode 100644 (file)
index 0000000..91b3721
--- /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)]
+        RenderInline {SPAN} at (0,0) size 32x28
+          RenderText {TEXT} at (14,14) size 32x28
+            text run at (14,14) width 32: "foo"
+        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 0 of child 1 {TEXT} of child 1 {SPAN} of root {DIV}
+upstream:   position 0 of child 1 {TEXT} of child 1 {SPAN} of root {DIV}
+downstream: position 1 of child 1 {TEXT} of child 1 {SPAN} of root {DIV}
diff --git a/LayoutTests/editing/selection/extend-by-character-006.html b/LayoutTests/editing/selection/extend-by-character-006.html
new file mode 100644 (file)
index 0000000..a890497
--- /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 < 4; i++) {
+        extendSelectionForwardByCharacterCommand();
+    }
+}
+
+</script>
+
+<title>Editing Test</title> 
+</head> 
+<body>
+<!-- rdar://problem/3694510 //-->
+<div contenteditable id="root" class="editing">
+<span id="test"> foo</span>
+
+<script>
+runEditingTest();
+</script>
+
+</body>
+</html>
index e022680e4aacd1da5bd5cc3a653ecf71a5557a35..eeada08a5b9e885afe7e4e204f28fe69b2948266 100644 (file)
@@ -1,3 +1,12 @@
+2004-06-15  Vicki Murley <vicki@apple.com>
+
+       - added a few layout tests, rdar://3694510
+
+        * layout-tests/editing/deleting/delete-image-004-expected.txt: Added.
+        * layout-tests/editing/deleting/delete-image-004.html: Added.
+        * layout-tests/editing/selection/extend-by-character-006-expected.txt: Added.
+        * layout-tests/editing/selection/extend-by-character-006.html: Added.
+
 2004-06-15  Trey Matteson  <trey@apple.com>
 
        Dragging tweak:  We pass the mouse down coords instead of the
@@ -17587,4 +17596,4 @@ Added support for getting at Java object fields.
         link to the parent node, not just when following a link to the next child node.
         * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::attributedString): Ditto.
 
-== Rolled over to ChangeLog-2003-10-25 ==ite
\ No newline at end of file
+== Rolled over to ChangeLog-2003-10-25 ==ite