[webkit-changes] cvs commit: LayoutTests/editing/inserting
insert-br-quoted-001-expected.png
insert-br-quoted-001-expected.txt insert-br-quoted-001.html
insert-br-quoted-002-expected.png
insert-br-quoted-002-expected.txt insert-br-quoted-002.html
insert-br-quoted-003-expected.png
insert-br-quoted-003-expected.txt insert-br-quoted-003.html
insert-br-quoted-004-expected.png
insert-br-quoted-004-expected.txt insert-br-quoted-004.html
insert-br-quoted-005-expected.png
insert-br-quoted-005-expected.txt insert-br-quoted-005.html
insert-br-quoted-006-expected.png
insert-br-quoted-006-expected.txt insert-br-quoted-006.html
David
harrison at opensource.apple.com
Wed Nov 2 18:21:37 PST 2005
harrison 05/11/02 18:21:37
Modified: . ChangeLog
Added: editing/inserting insert-br-quoted-001-expected.png
insert-br-quoted-001-expected.txt
insert-br-quoted-001.html
insert-br-quoted-002-expected.png
insert-br-quoted-002-expected.txt
insert-br-quoted-002.html
insert-br-quoted-003-expected.png
insert-br-quoted-003-expected.txt
insert-br-quoted-003.html
insert-br-quoted-004-expected.png
insert-br-quoted-004-expected.txt
insert-br-quoted-004.html
insert-br-quoted-005-expected.png
insert-br-quoted-005-expected.txt
insert-br-quoted-005.html
insert-br-quoted-006-expected.png
insert-br-quoted-006-expected.txt
insert-br-quoted-006.html
Log:
Reviewed by Justin.
Tests for...
<rdar://problem/4017861> in reply, extra line is inserted after pressing return on blank quoted line
* editing/editing.js:
* editing/inserting/insert-br-quoted-001-expected.png: Added.
* editing/inserting/insert-br-quoted-001-expected.txt: Added.
* editing/inserting/insert-br-quoted-001.html: Added.
* editing/inserting/insert-br-quoted-002-expected.png: Added.
* editing/inserting/insert-br-quoted-002-expected.txt: Added.
* editing/inserting/insert-br-quoted-002.html: Added.
* editing/inserting/insert-br-quoted-003-expected.png: Added.
* editing/inserting/insert-br-quoted-003-expected.txt: Added.
* editing/inserting/insert-br-quoted-003.html: Added.
* editing/inserting/insert-br-quoted-004-expected.png: Added.
* editing/inserting/insert-br-quoted-004-expected.txt: Added.
* editing/inserting/insert-br-quoted-004.html: Added.
* editing/inserting/insert-br-quoted-005-expected.png: Added.
* editing/inserting/insert-br-quoted-005-expected.txt: Added.
* editing/inserting/insert-br-quoted-005.html: Added.
* editing/inserting/insert-br-quoted-006-expected.png: Added.
* editing/inserting/insert-br-quoted-006-expected.txt: Added.
* editing/inserting/insert-br-quoted-006.html: Added.
Revision Changes Path
1.67 +27 -0 LayoutTests/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvs/root/LayoutTests/ChangeLog,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -r1.66 -r1.67
--- ChangeLog 1 Nov 2005 17:02:16 -0000 1.66
+++ ChangeLog 3 Nov 2005 02:21:34 -0000 1.67
@@ -1,3 +1,30 @@
+2005-11-02 David Harrison <harrison at apple.com>
+
+ Reviewed by Justin.
+
+ Tests for...
+ <rdar://problem/4017861> in reply, extra line is inserted after pressing return on blank quoted line
+
+ * editing/editing.js:
+ * editing/inserting/insert-br-quoted-001-expected.png: Added.
+ * editing/inserting/insert-br-quoted-001-expected.txt: Added.
+ * editing/inserting/insert-br-quoted-001.html: Added.
+ * editing/inserting/insert-br-quoted-002-expected.png: Added.
+ * editing/inserting/insert-br-quoted-002-expected.txt: Added.
+ * editing/inserting/insert-br-quoted-002.html: Added.
+ * editing/inserting/insert-br-quoted-003-expected.png: Added.
+ * editing/inserting/insert-br-quoted-003-expected.txt: Added.
+ * editing/inserting/insert-br-quoted-003.html: Added.
+ * editing/inserting/insert-br-quoted-004-expected.png: Added.
+ * editing/inserting/insert-br-quoted-004-expected.txt: Added.
+ * editing/inserting/insert-br-quoted-004.html: Added.
+ * editing/inserting/insert-br-quoted-005-expected.png: Added.
+ * editing/inserting/insert-br-quoted-005-expected.txt: Added.
+ * editing/inserting/insert-br-quoted-005.html: Added.
+ * editing/inserting/insert-br-quoted-006-expected.png: Added.
+ * editing/inserting/insert-br-quoted-006-expected.txt: Added.
+ * editing/inserting/insert-br-quoted-006.html: Added.
+
2005-11-01 Anders Carlsson <andersca at mac.com>
Reviewed by Darin.
1.1 LayoutTests/editing/inserting/insert-br-quoted-001-expected.png
<<Binary file>>
1.1 LayoutTests/editing/inserting/insert-br-quoted-001-expected.txt
Index: insert-br-quoted-001-expected.txt
===================================================================
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 2 of DIV > DIV > BODY > HTML > #document to 2 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
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 784x110
RenderBlock {DIV} at (0,0) size 784x28
RenderText {TEXT} at (0,0) size 277x18
text run at (0,0) width 277: "Splitting Mail blockquotes."
RenderBlock {DIV} at (0,28) size 784x82
RenderText {TEXT} at (0,0) size 189x18
text run at (0,0) width 189: "Expected Results: "
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,28) size 371x18
text run at (0,28) width 371: "Two blockquotes, with an unquoted blank line in between."
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,46) size 403x18
text run at (0,46) width 403: "The first blockquote contains two lines, the second one is blank."
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,64) size 312x18
text run at (0,64) width 312: "The second blockquote is a single non-blank line."
RenderBlock {DIV} at (0,110) size 784x224 [border: (2px solid #FF0000)]
RenderBlock (anonymous) at (14,14) size 756x28
RenderText {TEXT} at (0,0) size 120x28
text run at (0,0) width 120: "My citation:"
RenderBlock {DIV} at (14,66) size 756x144
RenderBlock {BLOCKQUOTE} at (40,0) size 676x60 [border: (2px solid #0000FF)]
RenderBlock {DIV} at (2,2) size 672x28
RenderText {TEXT} at (0,0) size 35x28
text run at (0,0) width 35: "one"
RenderBlock {DIV} at (2,30) size 672x28
RenderBR {BR} at (0,0) size 0x28
RenderBlock (anonymous) at (0,60) size 756x28
RenderBR {BR} at (0,0) size 0x28
RenderBlock {BLOCKQUOTE} at (40,112) size 676x32 [border: (2px solid #0000FF)]
RenderBlock {DIV} at (2,2) size 672x28
RenderText {TEXT} at (0,0) size 36x28
text run at (0,0) width 36: "two"
caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
1.1 LayoutTests/editing/inserting/insert-br-quoted-001.html
Index: insert-br-quoted-001.html
===================================================================
<html>
<head>
<style>
.editing {
border: 2px solid red;
padding: 12px;
font-size: 24px;
}
.scenario:first-line { font-weight: bold; font-size: 24px; }
.expected:first-line { font-weight: bold; font-size: 24px; }
.citation { margin-bottom: 0px; border: 2px solid blue; font-size: 24px; }
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
moveSelectionForwardByCharacterCommand();
moveSelectionForwardByCharacterCommand();
moveSelectionForwardByCharacterCommand();
moveSelectionForwardByCharacterCommand();
insertNewlineInQuotedContentCommand();
}
</script>
<title>Editing Test</title>
</head>
<body id="root">
<div class="explanation">
<div class="scenario">
Splitting Mail blockquotes.
</div>
<div class="expected">
Expected Results:
<br>
Two blockquotes, with an unquoted blank line in between.<br>
The first blockquote contains two lines, the second one is blank.<br>
The second blockquote is a single non-blank line.
</div>
</div>
<div contenteditable class="editing">My citation:
<div id="test">
<blockquote class="citation" type="cite"><div>one</div><div style="min-height: 24px;"><br></div><div>two</div></blockquote>
</div>
</div>
<script>
runEditingTest();
</script>
</body>
</html>
1.1 LayoutTests/editing/inserting/insert-br-quoted-002-expected.png
<<Binary file>>
1.1 LayoutTests/editing/inserting/insert-br-quoted-002-expected.txt
Index: insert-br-quoted-002-expected.txt
===================================================================
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 2 of DIV > DIV > BODY > HTML > #document to 2 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
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 784x110
RenderBlock {DIV} at (0,0) size 784x28
RenderText {TEXT} at (0,0) size 277x18
text run at (0,0) width 277: "Splitting Mail blockquotes."
RenderBlock {DIV} at (0,28) size 784x82
RenderText {TEXT} at (0,0) size 189x18
text run at (0,0) width 189: "Expected Results: "
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,28) size 371x18
text run at (0,28) width 371: "Two blockquotes, with an unquoted blank line in between."
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,46) size 403x18
text run at (0,46) width 403: "The first blockquote contains two lines, the second one is blank."
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,64) size 312x18
text run at (0,64) width 312: "The second blockquote is a single non-blank line."
RenderBlock {DIV} at (0,110) size 784x224 [border: (2px solid #FF0000)]
RenderBlock (anonymous) at (14,14) size 756x28
RenderText {TEXT} at (0,0) size 120x28
text run at (0,0) width 120: "My citation:"
RenderBlock {DIV} at (14,66) size 756x144
RenderBlock {BLOCKQUOTE} at (40,0) size 676x60 [border: (2px solid #0000FF)]
RenderBlock {DIV} at (2,2) size 672x28
RenderText {TEXT} at (0,0) size 35x28
text run at (0,0) width 35: "one"
RenderBlock {DIV} at (2,30) size 672x28
RenderBlock {DIV} at (0,0) size 672x28
RenderBlock {DIV} at (0,0) size 672x28
RenderBR {BR} at (0,0) size 0x28
RenderBlock (anonymous) at (0,60) size 756x28
RenderBR {BR} at (0,0) size 0x28
RenderBlock {BLOCKQUOTE} at (40,112) size 676x32 [border: (2px solid #0000FF)]
RenderBlock {DIV} at (2,2) size 672x28
RenderText {TEXT} at (0,0) size 36x28
text run at (0,0) width 36: "two"
caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
1.1 LayoutTests/editing/inserting/insert-br-quoted-002.html
Index: insert-br-quoted-002.html
===================================================================
<html>
<head>
<style>
.editing {
border: 2px solid red;
padding: 12px;
font-size: 24px;
}
.scenario:first-line { font-weight: bold; font-size: 24px; }
.expected:first-line { font-weight: bold; font-size: 24px; }
.citation { margin-bottom: 0px; border: 2px solid blue; font-size: 24px; }
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
moveSelectionForwardByCharacterCommand();
moveSelectionForwardByCharacterCommand();
moveSelectionForwardByCharacterCommand();
moveSelectionForwardByCharacterCommand();
insertNewlineInQuotedContentCommand();
}
</script>
<title>Editing Test</title>
</head>
<body id="root">
<div class="explanation">
<div class="scenario">
Splitting Mail blockquotes.
</div>
<div class="expected">
Expected Results:
<br>
Two blockquotes, with an unquoted blank line in between.<br>
The first blockquote contains two lines, the second one is blank.<br>
The second blockquote is a single non-blank line.
</div>
</div>
<div contenteditable class="editing">My citation:
<div id="test">
<blockquote class="citation" type="cite"><div>one</div><div style="min-height: 24px;"><div style="min-height: 24px;"><div style="min-height: 24px;"><br></div></div></div><div>two</div></blockquote>
</div>
</div>
<script>
runEditingTest();
</script>
</body>
</html>
1.1 LayoutTests/editing/inserting/insert-br-quoted-003-expected.png
<<Binary file>>
1.1 LayoutTests/editing/inserting/insert-br-quoted-003-expected.txt
Index: insert-br-quoted-003-expected.txt
===================================================================
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 2 of DIV > DIV > BODY > HTML > #document to 2 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
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 784x110
RenderBlock {DIV} at (0,0) size 784x28
RenderText {TEXT} at (0,0) size 277x18
text run at (0,0) width 277: "Splitting Mail blockquotes."
RenderBlock {DIV} at (0,28) size 784x82
RenderText {TEXT} at (0,0) size 189x18
text run at (0,0) width 189: "Expected Results: "
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,28) size 371x18
text run at (0,28) width 371: "Two blockquotes, with an unquoted blank line in between."
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,46) size 403x18
text run at (0,46) width 403: "The first blockquote contains two lines, the second one is blank."
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,64) size 336x18
text run at (0,64) width 336: "The second blockquote contains two non-blank lines."
RenderBlock {DIV} at (0,110) size 784x252 [border: (2px solid #FF0000)]
RenderBlock (anonymous) at (14,14) size 756x28
RenderText {TEXT} at (0,0) size 120x28
text run at (0,0) width 120: "My citation:"
RenderBlock {DIV} at (14,66) size 756x172
RenderBlock {BLOCKQUOTE} at (40,0) size 676x60 [border: (2px solid #0000FF)]
RenderBlock {DIV} at (2,2) size 672x28
RenderText {TEXT} at (0,0) size 35x28
text run at (0,0) width 35: "one"
RenderBlock {DIV} at (2,30) size 672x28
RenderBlock {DIV} at (0,0) size 672x28
RenderBlock {DIV} at (0,0) size 672x28
RenderBR {BR} at (0,0) size 0x28
RenderBlock (anonymous) at (0,60) size 756x28
RenderBR {BR} at (0,0) size 0x28
RenderBlock {BLOCKQUOTE} at (40,112) size 676x60 [border: (2px solid #0000FF)]
RenderBlock {DIV} at (2,2) size 672x28
RenderBlock {DIV} at (0,0) size 672x28
RenderBlock {DIV} at (0,0) size 672x28
RenderText {TEXT} at (0,0) size 137x28
text run at (0,0) width 137: "one and a half"
RenderBlock {DIV} at (2,30) size 672x28
RenderText {TEXT} at (0,0) size 36x28
text run at (0,0) width 36: "two"
caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
1.1 LayoutTests/editing/inserting/insert-br-quoted-003.html
Index: insert-br-quoted-003.html
===================================================================
<html>
<head>
<style>
.editing {
border: 2px solid red;
padding: 12px;
font-size: 24px;
}
.scenario:first-line { font-weight: bold; font-size: 24px; }
.expected:first-line { font-weight: bold; font-size: 24px; }
.citation { margin-bottom: 0px; border: 2px solid blue; font-size: 24px; }
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
moveSelectionForwardByCharacterCommand();
moveSelectionForwardByCharacterCommand();
moveSelectionForwardByCharacterCommand();
moveSelectionForwardByCharacterCommand();
insertNewlineInQuotedContentCommand();
}
</script>
<title>Editing Test</title>
</head>
<body id="root">
<div class="explanation">
<div class="scenario">
Splitting Mail blockquotes.
</div>
<div class="expected">
Expected Results:
<br>
Two blockquotes, with an unquoted blank line in between.<br>
The first blockquote contains two lines, the second one is blank.<br>
The second blockquote contains two non-blank lines.
</div>
</div>
<div contenteditable class="editing">My citation:
<div id="test">
<blockquote class="citation" type="cite"><div>one</div><div style="min-height: 24px;"><div style="min-height: 24px;"><div style="min-height: 24px;"><br>one and a half</div></div></div><div>two</div></blockquote>
</div>
</div>
<script>
runEditingTest();
</script>
</body>
</html>
1.1 LayoutTests/editing/inserting/insert-br-quoted-004-expected.png
<<Binary file>>
1.1 LayoutTests/editing/inserting/insert-br-quoted-004-expected.txt
Index: insert-br-quoted-004-expected.txt
===================================================================
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 2 of DIV > DIV > BODY > HTML > #document to 2 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
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 784x110
RenderBlock {DIV} at (0,0) size 784x28
RenderText {TEXT} at (0,0) size 277x18
text run at (0,0) width 277: "Splitting Mail blockquotes."
RenderBlock {DIV} at (0,28) size 784x82
RenderText {TEXT} at (0,0) size 189x18
text run at (0,0) width 189: "Expected Results: "
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,28) size 371x18
text run at (0,28) width 371: "Two blockquotes, with an unquoted blank line in between."
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,46) size 403x18
text run at (0,46) width 403: "The first blockquote contains two lines, the second one is blank."
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,64) size 336x18
text run at (0,64) width 336: "The second blockquote contains two non-blank lines."
RenderBlock {DIV} at (0,110) size 784x252 [border: (2px solid #FF0000)]
RenderBlock (anonymous) at (14,14) size 756x28
RenderText {TEXT} at (0,0) size 120x28
text run at (0,0) width 120: "My citation:"
RenderBlock {DIV} at (14,66) size 756x172
RenderBlock {BLOCKQUOTE} at (40,0) size 676x60 [border: (2px solid #0000FF)]
RenderBlock {DIV} at (2,2) size 672x28
RenderText {TEXT} at (0,0) size 35x28
text run at (0,0) width 35: "one"
RenderBlock {DIV} at (2,30) size 672x28
RenderBlock {DIV} at (0,0) size 672x28
RenderBlock {DIV} at (0,0) size 672x28
RenderBR {BR} at (0,0) size 0x28
RenderBlock (anonymous) at (0,28) size 672x0
RenderBlock (anonymous) at (0,60) size 756x28
RenderBR {BR} at (0,0) size 0x28
RenderBlock {BLOCKQUOTE} at (40,112) size 676x60 [border: (2px solid #0000FF)]
RenderBlock {DIV} at (2,2) size 672x28
RenderBlock {DIV} at (0,0) size 672x28
RenderText {TEXT} at (0,0) size 137x28
text run at (0,0) width 137: "one and a half"
RenderBlock {DIV} at (2,30) size 672x28
RenderText {TEXT} at (0,0) size 36x28
text run at (0,0) width 36: "two"
caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
1.1 LayoutTests/editing/inserting/insert-br-quoted-004.html
Index: insert-br-quoted-004.html
===================================================================
<html>
<head>
<style>
.editing {
border: 2px solid red;
padding: 12px;
font-size: 24px;
}
.scenario:first-line { font-weight: bold; font-size: 24px; }
.expected:first-line { font-weight: bold; font-size: 24px; }
.citation { margin-bottom: 0px; border: 2px solid blue; font-size: 24px; }
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
moveSelectionForwardByCharacterCommand();
moveSelectionForwardByCharacterCommand();
moveSelectionForwardByCharacterCommand();
moveSelectionForwardByCharacterCommand();
insertNewlineInQuotedContentCommand();
}
</script>
<title>Editing Test</title>
</head>
<body id="root">
<div class="explanation">
<div class="scenario">
Splitting Mail blockquotes.
</div>
<div class="expected">
Expected Results:
<br>
Two blockquotes, with an unquoted blank line in between.<br>
The first blockquote contains two lines, the second one is blank.<br>
The second blockquote contains two non-blank lines.
</div>
</div>
<div contenteditable class="editing">My citation:
<div id="test">
<blockquote class="citation" type="cite"><div>one</div><div style="min-height: 24px;"><div style="min-height: 24px;"><div style="min-height: 24px;"><br></div>one and a half</div></div><div>two</div></blockquote>
</div>
</div>
<script>
runEditingTest();
</script>
</body>
</html>
1.1 LayoutTests/editing/inserting/insert-br-quoted-005-expected.png
<<Binary file>>
1.1 LayoutTests/editing/inserting/insert-br-quoted-005-expected.txt
Index: insert-br-quoted-005-expected.txt
===================================================================
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 2 of DIV > DIV > BODY > HTML > #document to 2 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
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 784x110
RenderBlock {DIV} at (0,0) size 784x28
RenderText {TEXT} at (0,0) size 277x18
text run at (0,0) width 277: "Splitting Mail blockquotes."
RenderBlock {DIV} at (0,28) size 784x82
RenderText {TEXT} at (0,0) size 189x18
text run at (0,0) width 189: "Expected Results: "
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,28) size 371x18
text run at (0,28) width 371: "Two blockquotes, with an unquoted blank line in between."
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,46) size 403x18
text run at (0,46) width 403: "The first blockquote contains two lines, the second one is blank."
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,64) size 312x18
text run at (0,64) width 312: "The second blockquote is a single non-blank line."
RenderBlock {DIV} at (0,110) size 784x224 [border: (2px solid #FF0000)]
RenderBlock (anonymous) at (14,14) size 756x28
RenderText {TEXT} at (0,0) size 120x28
text run at (0,0) width 120: "My citation:"
RenderBlock {DIV} at (14,66) size 756x144
RenderBlock {BLOCKQUOTE} at (40,0) size 676x60 [border: (2px solid #0000FF)]
RenderBlock {DIV} at (2,2) size 672x28
RenderText {TEXT} at (0,0) size 35x28
text run at (0,0) width 35: "one"
RenderBlock {DIV} at (2,30) size 672x28
RenderBlock {DIV} at (0,0) size 672x28
RenderBlock {DIV} at (0,0) size 672x28
RenderBR {BR} at (0,0) size 0x28
RenderBlock (anonymous) at (0,60) size 756x28
RenderBR {BR} at (0,0) size 0x28
RenderBlock {BLOCKQUOTE} at (40,112) size 676x32 [border: (2px solid #0000FF)]
RenderBlock {DIV} at (2,2) size 672x28
RenderText {TEXT} at (0,0) size 36x28
text run at (0,0) width 36: "two"
caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
1.1 LayoutTests/editing/inserting/insert-br-quoted-005.html
Index: insert-br-quoted-005.html
===================================================================
<html>
<head>
<style>
.editing {
border: 2px solid red;
padding: 12px;
font-size: 24px;
}
.scenario:first-line { font-weight: bold; font-size: 24px; }
.expected:first-line { font-weight: bold; font-size: 24px; }
.citation { margin-bottom: 0px; border: 2px solid blue; font-size: 24px; }
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
moveSelectionForwardByCharacterCommand();
moveSelectionForwardByCharacterCommand();
moveSelectionForwardByCharacterCommand();
moveSelectionForwardByCharacterCommand();
insertNewlineInQuotedContentCommand();
}
</script>
<title>Editing Test</title>
</head>
<body id="root">
<div class="explanation">
<div class="scenario">
Splitting Mail blockquotes.
</div>
<div class="expected">
Expected Results:
<br>
Two blockquotes, with an unquoted blank line in between.<br>
The first blockquote contains two lines, the second one is blank.<br>
The second blockquote is a single non-blank line.
</div>
</div>
<div contenteditable class="editing">My citation:
<div id="test">
<blockquote class="citation" type="cite"><div>one</div><div style="min-height: 24px;"><div style="min-height: 24px;"><div style="min-height: 24px;"><br></div></div></div><div>two</div></blockquote>
</div>
</div>
<script>
runEditingTest();
</script>
</body>
</html>
1.1 LayoutTests/editing/inserting/insert-br-quoted-006-expected.png
<<Binary file>>
1.1 LayoutTests/editing/inserting/insert-br-quoted-006-expected.txt
Index: insert-br-quoted-006-expected.txt
===================================================================
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 2 of DIV > DIV > BODY > HTML > #document to 2 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
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 784x110
RenderBlock {DIV} at (0,0) size 784x28
RenderText {TEXT} at (0,0) size 277x18
text run at (0,0) width 277: "Splitting Mail blockquotes."
RenderBlock {DIV} at (0,28) size 784x82
RenderText {TEXT} at (0,0) size 189x18
text run at (0,0) width 189: "Expected Results: "
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,28) size 371x18
text run at (0,28) width 371: "Two blockquotes, with an unquoted blank line in between."
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,46) size 403x18
text run at (0,46) width 403: "The first blockquote contains two lines, the second one is blank."
RenderBR {BR} at (0,0) size 0x0
RenderText {TEXT} at (0,64) size 403x18
text run at (0,64) width 403: "The second blockquote contains two lines, the first one is blank."
RenderBR {BR} at (0,0) size 0x0
RenderBlock {DIV} at (0,110) size 784x300 [border: (2px solid #FF0000)]
RenderBlock (anonymous) at (14,14) size 756x28
RenderText {TEXT} at (0,0) size 120x28
text run at (0,0) width 120: "My citation:"
RenderBlock {DIV} at (14,66) size 756x196
RenderBlock {BLOCKQUOTE} at (40,0) size 676x60 [border: (2px solid #0000FF)]
RenderBlock {DIV} at (2,2) size 672x28
RenderText {TEXT} at (0,0) size 35x28
text run at (0,0) width 35: "one"
RenderBlock {DIV} at (2,30) size 672x28
RenderBlock {DIV} at (0,0) size 672x28
RenderBlock {DIV} at (0,0) size 672x28
RenderBR {BR} at (0,0) size 0x28
RenderBlock (anonymous) at (2,58) size 672x0
RenderBlock (anonymous) at (0,84) size 756x28
RenderBR {BR} at (0,0) size 0x28
RenderBlock {BLOCKQUOTE} at (40,136) size 676x60 [border: (2px solid #0000FF)]
RenderBlock (anonymous) at (2,2) size 672x28
RenderBR {BR} at (0,0) size 0x28
RenderBlock {DIV} at (2,30) size 672x28
RenderText {TEXT} at (0,0) size 36x28
text run at (0,0) width 36: "two"
caret: position 0 of child 2 {BR} of child 1 {DIV} of child 3 {DIV} of child 1 {BODY} of child 0 {HTML} of document
1.1 LayoutTests/editing/inserting/insert-br-quoted-006.html
Index: insert-br-quoted-006.html
===================================================================
<html>
<head>
<style>
.editing {
border: 2px solid red;
padding: 12px;
font-size: 24px;
}
.scenario:first-line { font-weight: bold; font-size: 24px; }
.expected:first-line { font-weight: bold; font-size: 24px; }
.citation { margin-top: 0px margin-bottom: 0px; border: 2px solid blue; font-size: 24px; }
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
moveSelectionForwardByCharacterCommand();
moveSelectionForwardByCharacterCommand();
moveSelectionForwardByCharacterCommand();
moveSelectionForwardByCharacterCommand();
insertNewlineInQuotedContentCommand();
}
</script>
<title>Editing Test</title>
</head>
<body id="root">
<div class="explanation">
<div class="scenario">
Splitting Mail blockquotes.
</div>
<div class="expected">
Expected Results:
<br>
Two blockquotes, with an unquoted blank line in between.<br>
The first blockquote contains two lines, the second one is blank.<br>
The second blockquote contains two lines, the first one is blank.<br>
</div>
</div>
<div contenteditable class="editing">My citation:
<div id="test">
<blockquote class="citation" type="cite"><div>one</div><div style="min-height: 24px;"><div style="min-height: 24px;"><div style="min-height: 24px;"><br></div></div></div><br><div>two</div></blockquote>
</div>
</div>
<script>
runEditingTest();
</script>
</body>
</html>
More information about the webkit-changes
mailing list