I neglected to add these files on my previous checkin
authorkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Aug 2004 16:57:07 +0000 (16:57 +0000)
committerkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Aug 2004 16:57:07 +0000 (16:57 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7310 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/editing/inserting/insert-br-case6-expected.txt [new file with mode: 0644]
LayoutTests/editing/inserting/insert-br-case6.html [new file with mode: 0644]

diff --git a/LayoutTests/editing/inserting/insert-br-case6-expected.txt b/LayoutTests/editing/inserting/insert-br-case6-expected.txt
new file mode 100644 (file)
index 0000000..e1ce168
--- /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 784x112 [border: (2px solid #FF0000)]
+        RenderInline {SPAN} at (0,0) size 32x84
+          RenderText {TEXT} at (14,14) size 32x28
+            text run at (14,14) width 32: "foo"
+          RenderBR {BR} at (0,0) size 0x0
+          RenderBR {BR} at (14,42) size 0x28
+          RenderBR {BR} at (14,70) size 0x28
+selection is CARET:
+start:      position 0 of child 4 {BR} of child 2 {SPAN} of root {DIV}
+upstream:   position 1 of child 3 {BR} of child 2 {SPAN} of root {DIV}
+downstream: position 0 of child 4 {BR} of child 2 {SPAN} of root {DIV}
diff --git a/LayoutTests/editing/inserting/insert-br-case6.html b/LayoutTests/editing/inserting/insert-br-case6.html
new file mode 100644 (file)
index 0000000..951f545
--- /dev/null
@@ -0,0 +1,36 @@
+<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 < 3; i++)
+        moveSelectionForwardByCharacterCommand();
+    insertNewlineCommand();
+    insertNewlineCommand();
+}
+
+</script>
+
+<title>Editing Test</title> 
+</head> 
+<body>
+<div contenteditable id="root" class="editing">
+<span id="test">foo</span>
+</div>
+
+<script>
+runEditingTest();
+</script>
+
+</body>
+</html>