Commit a96dc167 authored by yosin's avatar yosin Committed by Commit bot

Make layout tests in editing/inserting to use w3c test harness

This patch makes following tests to use w3c test harness to simplify tests
and avoid to compare pixel results.

Pixel results aren't essential for tests changed in this patch and when
we enable asynchronous spell checking, pixel result contains red wave lines for
miss spelled. These read wave lines aren't related what we want to test.

This patch is a preparation of getting rid of synchronous code path for
spellcheck to enable asynchronous spell checking always.

BUG=295722
TEST=n/a; no behavior changes

Review URL: https://codereview.chromium.org/1456333002

Cr-Commit-Position: refs/heads/master@{#360548}
parent 0570f9ba
<html> <!DOCTYPE html>
<head> <script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<style>
.editing {
border: 2px solid red;
font-size: 24px;
}
.explanation {
border: 2px solid blue;
padding: 12px;
font-size: 24px;
margin-bottom: 24px;
}
.scenario { margin-bottom: 16px;}
.scenario:first-line { font-weight: bold; margin-bottom: 16px;}
.expected-results:first-line { font-weight: bold }
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
extendSelectionForwardByLineCommand();
boldCommand();
moveSelectionForwardByCharacterCommand();
insertParagraphCommand();
boldCommand();
typeCharacterCommand();
moveSelectionBackwardByCharacterCommand();
deleteCommand();
}
</script>
<title>Editing Test</title>
</head>
<body>
<div class="explanation"> <div class="explanation">
<div class="scenario"> <div class="scenario">
Tests: Tests:
...@@ -52,13 +16,23 @@ Should see this content in the red box below: <b>fo</b>x ...@@ -52,13 +16,23 @@ Should see this content in the red box below: <b>fo</b>x
</div> </div>
<div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;"> <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
<div id="test" class="editing"> <div id="sample" class="editing">fo</div>
fo <div id="log"></div>
</div>
<script> <script>
runEditingTest(); test(function() {
var selection = window.getSelection();
var sample = document.getElementById('sample');
selection.collapse(sample.firstChild, 0);
selection.modify('extend', 'forward', 'line');
document.execCommand('bold');
selection.modify('move', 'forward', 'character');
document.execCommand('insertParagraph');
document.execCommand('bold');
document.execCommand('InsertText', false, 'x')
selection.modify('move', 'backward', 'character');
document.execCommand('delete');
assert_equals(sample.innerHTML, '<b>fo</b>x');
});
</script> </script>
</body>
</html>
<script> <!DOCTYPE html>
if (window.testRunner) <script src="../../resources/testharness.js"></script>
testRunner.dumpEditingCallbacks(); <script src="../../resources/testharnessreport.js"></script>
</script>
<p>This tests inserting a paragraph separator after a horizontal rule. You should see 'foo', empty paragraph, horizontal rule, 'bar', and the caret should be just after the horizontal rule. <b>This demonstrates 8345. The caret after a horizontal rule is drawn in the same location as the caret before a horizontal rule.</p> <p>This tests inserting a paragraph separator after a horizontal rule. You should see 'foo', empty paragraph, horizontal rule, 'bar', and the caret should be just after the horizontal rule. <b>This demonstrates 8345. The caret after a horizontal rule is drawn in the same location as the caret before a horizontal rule.</p>
<div contenteditable="true" id="div">foo<hr>bar</div> <div contenteditable="true" id="div">foo<hr>bar</div>
<div id="log"></div>
<script> <script>
if (window.internals) test(function() {
internals.settings.setEditingBehavior('mac'); if (window.internals)
var sel = window.getSelection(); internals.settings.setEditingBehavior('mac');
var div = document.getElementById("div"); var selection = window.getSelection();
sel.collapse(div, 0); var div = document.getElementById('div');
sel.modify("move", "forward", "word"); selection.collapse(div, 0);
sel.modify("move", "forward", "character"); selection.modify('move', 'forward', 'word');
sel.modify("move", "forward", "character"); selection.modify('move', 'forward', 'character');
document.execCommand("InsertParagraph"); selection.modify('move', 'forward', 'character');
document.execCommand('insertParagraph');
assert_equals(div.innerHTML, 'foo<hr><br>bar');
});
</script> </script>
<html> <!DOCTYPE html>
<head> <script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<style>
.editing {
border: 2px solid red;
font-size: 24px;
}
.explanation {
border: 2px solid blue;
padding: 12px;
font-size: 24px;
margin-bottom: 24px;
}
.scenario { margin-bottom: 16px;}
.scenario:first-line { font-weight: bold; margin-bottom: 16px;}
.expected-results:first-line { font-weight: bold }
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
moveSelectionForwardByLineCommand();
extendSelectionForwardByLineCommand();
insertParagraphCommand();
}
</script>
<title>Editing Test</title>
</head>
<body>
<div class="explanation"> <div class="explanation">
<div class="scenario"> <div class="scenario">
Tests: Tests:
<br> <br>
Fix for this bug: Fix for this bug:
<a href="rdar://problem/4045521">&lt;rdar://problem/4045521&gt;</a> Hitting return key with full line selected does not add blank line as it should Hitting return key with full line selected does not add blank line as it should
</div> </div>
<div class="expected-results"> <div class="expected-results">
Expected Results: Expected Results:
<br> <br>
Should see this content in the red box below (note that the insertion point should be at the start of the third line, immediately preceding "baz"): Should see this content in the box below (note that the insertion point should be at the start of the third line, immediately preceding "baz"):
<div>foo</div><div><br></div><div>baz</div> <div>foo</div><div><br></div><div>baz</div>
</div> </div>
</div> </div>
<div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;"> <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
<div id="test" class="editing"> <div id="sample" class="editing"><div>foo</div><div>bar</div><div>baz</div></div></div>
<div>foo</div><div>bar</div><div>baz</div> <div id="log"></div>
</div>
</div>
<script> <script>
runEditingTest(); test(function() {
var selection = window.getSelection();
var sample = document.getElementById('sample');
selection.collapse(sample, 0);
selection.modify('move', 'forward', 'line');
selection.modify('extend', 'forward', 'line');
document.execCommand('insertParagraph');
assert_equals(sample.innerHTML, '<div>foo</div><div><br></div><div>baz<br></div>');
assert_true(selection.isCollapsed);
assert_equals(selection.anchorNode, sample.childNodes[2].firstChild);
assert_equals(selection.anchorOffset, 0);
});
</script> </script>
</body>
</html>
<html> <!DOCTYPE html>
<head> <script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<style>
.editing {
border: 2px solid red;
font-size: 24px;
}
.explanation {
border: 2px solid blue;
padding: 12px;
font-size: 24px;
margin-bottom: 24px;
}
.scenario { margin-bottom: 16px;}
.scenario:first-line { font-weight: bold; margin-bottom: 16px;}
.expected-results:first-line { font-weight: bold }
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
moveSelectionForwardByLineCommand();
extendSelectionForwardByLineCommand();
extendSelectionForwardByCharacterCommand();
insertParagraphCommand();
}
</script>
<title>Editing Test</title>
</head>
<body>
<div class="explanation"> <div class="explanation">
<div class="scenario"> <div class="scenario">
Tests: Tests:
...@@ -43,20 +11,29 @@ A scenario I thought of based on my experiences with this bug: ...@@ -43,20 +11,29 @@ A scenario I thought of based on my experiences with this bug:
<div class="expected-results"> <div class="expected-results">
Expected Results: Expected Results:
<br> <br>
Should see this content in the red box below (note that the insertion point should be at the start of the third line, immediately preceding "baz"): Should see this content in the box below (note that the insertion point should be at the start of the third line, immediately preceding "baz"):
<div>foo</div><div><br></div><div>baz</div> <div>foo</div><div><br></div><div>baz</div>
</div> </div>
</div> </div>
<div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;"> <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
<div id="test" class="editing"> <div id="sample" class="editing"><div>foo</div><div>bar</div><div id="baz">bbaz</div></div>
<div>foo</div><div>bar</div><div>bbaz</div>
</div>
</div> </div>
<div id="log"></div>
<script> <script>
runEditingTest(); test(function() {
var selection = window.getSelection();
var sample = document.getElementById('sample');
selection.collapse(sample, 0);
selection.modify('move', 'forward', 'line');
selection.modify('extend', 'forward', 'line');
selection.modify('extend', 'forward', 'character');
document.execCommand('insertParagraph');
assert_equals(sample.innerHTML, '<div>foo</div><div><br></div><div>baz<br></div>');
assert_true(selection.isCollapsed);
assert_equals(selection.anchorNode, sample.childNodes[2].firstChild);
assert_equals(selection.anchorOffset, 0);
});
</script> </script>
</body>
</html>
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x600
LayoutBlockFlow {BODY} at (8,8) size 784x584
LayoutBlockFlow {DIV} at (0,0) size 784x210 [border: (2px solid #0000FF)]
LayoutBlockFlow {DIV} at (14,14) size 756x111
LayoutText {#text} at (0,0) size 64x26
text run at (0,0) width 64: "Tests: "
LayoutBR {BR} at (0,0) size 0x0
LayoutText {#text} at (0,27) size 711x55
text run at (0,27) width 711: "Inserting blocks for paragraphs should do a better job of finding a block to"
text run at (0,55) width 115: "insert after. "
LayoutInline {A} at (0,0) size 258x27 [color=#0000EE]
LayoutText {#text} at (114,55) size 258x27
text run at (114,55) width 258: "<rdar://problem/3996605>"
LayoutText {#text} at (371,55) size 727x55
text run at (371,55) width 356: " Insert paragraph command puts new"
text run at (0,83) width 543: "block in wrong place, creating difficult-to-handle HTML"
LayoutBlockFlow {DIV} at (14,141) size 756x55
LayoutText {#text} at (0,0) size 189x26
text run at (0,0) width 189: "Expected Results: "
LayoutBR {BR} at (189,21) size 0x0
LayoutText {#text} at (0,27) size 436x27
text run at (0,27) width 436: "Should see this content in the red box below: "
LayoutInline {B} at (0,0) size 19x26
LayoutText {#text} at (436,27) size 19x26
text run at (436,27) width 19: "fo"
LayoutText {#text} at (455,27) size 12x27
text run at (455,27) width 12: "x"
LayoutBlockFlow {DIV} at (0,234) size 784x32
LayoutBlockFlow {DIV} at (0,0) size 784x32 [border: (2px solid #FF0000)]
LayoutInline {B} at (0,0) size 19x26
LayoutText {#text} at (2,2) size 19x26
text run at (2,2) width 19: "fo"
LayoutText {#text} at (21,2) size 12x27
text run at (21,2) width 12: "x"
caret: position 3 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of body
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x600
LayoutBlockFlow {BODY} at (8,8) size 784x584
LayoutBlockFlow {P} at (0,0) size 784x60
LayoutText {#text} at (0,0) size 772x39
text run at (0,0) width 384: "This tests inserting a paragraph separator after a horizontal rule. "
text run at (384,0) width 388: "You should see 'foo', empty paragraph, horizontal rule, 'bar', and"
text run at (0,20) width 288: "the caret should be just after the horizontal rule. "
LayoutInline {B} at (0,0) size 766x39
LayoutText {#text} at (288,20) size 766x39
text run at (288,20) width 167: "This demonstrates 8345. "
text run at (455,20) width 311: "The caret after a horizontal rule is drawn in the"
text run at (0,40) width 335: "same location as the caret before a horizontal rule."
LayoutBlockFlow (anonymous) at (0,76) size 784x0
LayoutInline {B} at (0,0) size 0x0
LayoutText {#text} at (0,0) size 0x0
LayoutBlockFlow (anonymous) at (0,76) size 784x78
LayoutBlockFlow {DIV} at (0,0) size 784x78
LayoutBlockFlow (anonymous) at (0,0) size 784x20
LayoutText {#text} at (0,0) size 21x19
text run at (0,0) width 21: "foo"
LayoutBlockFlow {HR} at (0,28) size 784x2 [border: (1px inset #EEEEEE)]
LayoutBlockFlow (anonymous) at (0,38) size 784x40
LayoutBR {BR} at (0,0) size 0x19
LayoutText {#text} at (0,20) size 22x19
text run at (0,20) width 22: "bar"
LayoutBlockFlow (anonymous) at (0,154) size 784x0
LayoutInline {B} at (0,0) size 0x0
caret: position 0 of child 2 {BR} of child 1 {DIV} of child 1 {B} of body
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x600
LayoutBlockFlow {BODY} at (8,8) size 784x584
LayoutBlockFlow {DIV} at (0,0) size 784x294 [border: (2px solid #0000FF)]
LayoutBlockFlow {DIV} at (14,14) size 756x83
LayoutText {#text} at (0,0) size 64x26
text run at (0,0) width 64: "Tests: "
LayoutBR {BR} at (0,0) size 0x0
LayoutText {#text} at (0,27) size 158x27
text run at (0,27) width 158: "Fix for this bug: "
LayoutInline {A} at (0,0) size 257x27 [color=#0000EE]
LayoutText {#text} at (158,27) size 257x27
text run at (158,27) width 257: "<rdar://problem/4045521>"
LayoutText {#text} at (415,27) size 719x55
text run at (415,27) width 304: " Hitting return key with full line"
text run at (0,55) width 420: "selected does not add blank line as it should"
LayoutBlockFlow {DIV} at (14,113) size 756x167
LayoutBlockFlow (anonymous) at (0,0) size 756x83
LayoutText {#text} at (0,0) size 189x26
text run at (0,0) width 189: "Expected Results: "
LayoutBR {BR} at (189,21) size 0x0
LayoutText {#text} at (0,27) size 703x55
text run at (0,27) width 703: "Should see this content in the red box below (note that the insertion point"
text run at (0,55) width 657: "should be at the start of the third line, immediately preceding \"baz\"):"
LayoutBlockFlow {DIV} at (0,83) size 756x28
LayoutText {#text} at (0,0) size 32x27
text run at (0,0) width 32: "foo"
LayoutBlockFlow {DIV} at (0,111) size 756x28
LayoutBR {BR} at (0,0) size 0x27
LayoutBlockFlow {DIV} at (0,139) size 756x28
LayoutText {#text} at (0,0) size 33x27
text run at (0,0) width 33: "baz"
LayoutBlockFlow {DIV} at (0,318) size 784x88
LayoutBlockFlow {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
LayoutBlockFlow {DIV} at (2,2) size 780x28
LayoutText {#text} at (0,0) size 32x27
text run at (0,0) width 32: "foo"
LayoutBlockFlow {DIV} at (2,30) size 780x28
LayoutBR {BR} at (0,0) size 0x27
LayoutBlockFlow {DIV} at (2,58) size 780x28
LayoutText {#text} at (0,0) size 33x27
text run at (0,0) width 33: "baz"
caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {DIV} of child 3 {DIV} of body
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: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x600
LayoutBlockFlow {BODY} at (8,8) size 784x584
LayoutBlockFlow {DIV} at (0,0) size 784x322 [border: (2px solid #0000FF)]
LayoutBlockFlow {DIV} at (14,14) size 756x111
LayoutText {#text} at (0,0) size 64x26
text run at (0,0) width 64: "Tests: "
LayoutBR {BR} at (0,0) size 0x0
LayoutText {#text} at (0,27) size 604x27
text run at (0,27) width 604: "A scenario I thought of based on my experiences with this bug:"
LayoutInline {A} at (0,0) size 257x27 [color=#0000EE]
LayoutText {#text} at (0,55) size 257x27
text run at (0,55) width 257: "<rdar://problem/4045521>"
LayoutText {#text} at (257,55) size 732x55
text run at (257,55) width 475: " Hitting return key with full line selected does not"
text run at (0,83) width 249: "add blank line as it should"
LayoutBlockFlow {DIV} at (14,141) size 756x167
LayoutBlockFlow (anonymous) at (0,0) size 756x83
LayoutText {#text} at (0,0) size 189x26
text run at (0,0) width 189: "Expected Results: "
LayoutBR {BR} at (189,21) size 0x0
LayoutText {#text} at (0,27) size 703x55
text run at (0,27) width 703: "Should see this content in the red box below (note that the insertion point"
text run at (0,55) width 657: "should be at the start of the third line, immediately preceding \"baz\"):"
LayoutBlockFlow {DIV} at (0,83) size 756x28
LayoutText {#text} at (0,0) size 32x27
text run at (0,0) width 32: "foo"
LayoutBlockFlow {DIV} at (0,111) size 756x28
LayoutBR {BR} at (0,0) size 0x27
LayoutBlockFlow {DIV} at (0,139) size 756x28
LayoutText {#text} at (0,0) size 33x27
text run at (0,0) width 33: "baz"
LayoutBlockFlow {DIV} at (0,346) size 784x88
LayoutBlockFlow {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
LayoutBlockFlow {DIV} at (2,2) size 780x28
LayoutText {#text} at (0,0) size 32x27
text run at (0,0) width 32: "foo"
LayoutBlockFlow {DIV} at (2,30) size 780x28
LayoutBR {BR} at (0,0) size 0x27
LayoutBlockFlow {DIV} at (2,58) size 780x28
LayoutText {#text} at (0,0) size 33x27
text run at (0,0) width 33: "baz"
caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {DIV} of child 3 {DIV} of body
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x600
LayoutBlockFlow {BODY} at (8,8) size 784x584
LayoutBlockFlow {DIV} at (0,0) size 784x212 [border: (2px solid #0000FF)]
LayoutBlockFlow {DIV} at (14,14) size 756x112
LayoutText {#text} at (0,0) size 66x28
text run at (0,0) width 66: "Tests: "
LayoutBR {BR} at (0,0) size 0x0
LayoutText {#text} at (0,28) size 714x56
text run at (0,28) width 714: "Inserting blocks for paragraphs should do a better job of finding a block to"
text run at (0,56) width 114: "insert after. "
LayoutInline {A} at (0,0) size 258x28 [color=#0000EE]
LayoutText {#text} at (113,56) size 258x28
text run at (113,56) width 258: "<rdar://problem/3996605>"
LayoutText {#text} at (370,56) size 726x56
text run at (370,56) width 356: " Insert paragraph command puts new"
text run at (0,84) width 546: "block in wrong place, creating difficult-to-handle HTML"
LayoutBlockFlow {DIV} at (14,142) size 756x56
LayoutText {#text} at (0,0) size 190x28
text run at (0,0) width 190: "Expected Results: "
LayoutBR {BR} at (189,22) size 1x0
LayoutText {#text} at (0,28) size 438x28
text run at (0,28) width 438: "Should see this content in the red box below: "
LayoutInline {B} at (0,0) size 21x28
LayoutText {#text} at (437,28) size 21x28
text run at (437,28) width 21: "fo"
LayoutText {#text} at (457,28) size 13x28
text run at (457,28) width 13: "x"
LayoutBlockFlow {DIV} at (0,236) size 784x32
LayoutBlockFlow {DIV} at (0,0) size 784x32 [border: (2px solid #FF0000)]
LayoutInline {B} at (0,0) size 20x28
LayoutText {#text} at (2,2) size 20x28
text run at (2,2) width 20: "fo"
LayoutText {#text} at (21,2) size 13x28
text run at (21,2) width 13: "x"
caret: position 3 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of body
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x600
LayoutBlockFlow {BODY} at (8,8) size 784x584
LayoutBlockFlow {P} at (0,0) size 784x54
LayoutText {#text} at (0,0) size 763x36
text run at (0,0) width 413: "This tests inserting a paragraph separator after a horizontal rule. "
text run at (412,0) width 351: "You should see 'foo', empty paragraph, horizontal rule,"
text run at (0,18) width 372: "'bar', and the caret should be just after the horizontal rule. "
LayoutInline {B} at (0,0) size 776x36
LayoutText {#text} at (371,18) size 776x36
text run at (371,18) width 171: "This demonstrates 8345. "
text run at (541,18) width 235: "The caret after a horizontal rule is"
text run at (0,36) width 435: "drawn in the same location as the caret before a horizontal rule."
LayoutBlockFlow (anonymous) at (0,70) size 784x0
LayoutInline {B} at (0,0) size 0x0
LayoutText {#text} at (0,0) size 0x0
LayoutBlockFlow (anonymous) at (0,70) size 784x72
LayoutBlockFlow {DIV} at (0,0) size 784x72
LayoutBlockFlow (anonymous) at (0,0) size 784x18
LayoutText {#text} at (0,0) size 22x18
text run at (0,0) width 22: "foo"
LayoutBlockFlow {HR} at (0,26) size 784x2 [border: (1px inset #EEEEEE)]
LayoutBlockFlow (anonymous) at (0,36) size 784x36
LayoutBR {BR} at (0,0) size 0x18
LayoutText {#text} at (0,18) size 24x18
text run at (0,18) width 24: "bar"
LayoutBlockFlow (anonymous) at (0,142) size 784x0
LayoutInline {B} at (0,0) size 0x0
caret: position 0 of child 2 {BR} of child 1 {DIV} of child 1 {B} of body
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x600
LayoutBlockFlow {BODY} at (8,8) size 784x584
LayoutBlockFlow {DIV} at (0,0) size 784x296 [border: (2px solid #0000FF)]
LayoutBlockFlow {DIV} at (14,14) size 756x84
LayoutText {#text} at (0,0) size 66x28
text run at (0,0) width 66: "Tests: "
LayoutBR {BR} at (0,0) size 0x0
LayoutText {#text} at (0,28) size 162x28
text run at (0,28) width 162: "Fix for this bug: "
LayoutInline {A} at (0,0) size 257x28 [color=#0000EE]
LayoutText {#text} at (161,28) size 257x28
text run at (161,28) width 257: "<rdar://problem/4045521>"
LayoutText {#text} at (417,28) size 726x56
text run at (417,28) width 309: " Hitting return key with full line"
text run at (0,56) width 422: "selected does not add blank line as it should"
LayoutBlockFlow {DIV} at (14,114) size 756x168
LayoutBlockFlow (anonymous) at (0,0) size 756x84
LayoutText {#text} at (0,0) size 190x28
text run at (0,0) width 190: "Expected Results: "
LayoutBR {BR} at (189,22) size 1x0
LayoutText {#text} at (0,28) size 704x56
text run at (0,28) width 704: "Should see this content in the red box below (note that the insertion point"
text run at (0,56) width 660: "should be at the start of the third line, immediately preceding \"baz\"):"
LayoutBlockFlow {DIV} at (0,84) size 756x28
LayoutText {#text} at (0,0) size 32x28
text run at (0,0) width 32: "foo"
LayoutBlockFlow {DIV} at (0,112) size 756x28
LayoutBR {BR} at (0,0) size 0x28
LayoutBlockFlow {DIV} at (0,140) size 756x28
LayoutText {#text} at (0,0) size 34x28
text run at (0,0) width 34: "baz"
LayoutBlockFlow {DIV} at (0,320) size 784x88
LayoutBlockFlow {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
LayoutBlockFlow {DIV} at (2,2) size 780x28
LayoutText {#text} at (0,0) size 32x28
text run at (0,0) width 32: "foo"
LayoutBlockFlow {DIV} at (2,30) size 780x28
LayoutBR {BR} at (0,0) size 0x28
LayoutBlockFlow {DIV} at (2,58) size 780x28
LayoutText {#text} at (0,0) size 34x28
text run at (0,0) width 34: "baz"
caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {DIV} of child 3 {DIV} of body
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: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x600
LayoutBlockFlow {BODY} at (8,8) size 784x584
LayoutBlockFlow {DIV} at (0,0) size 784x324 [border: (2px solid #0000FF)]
LayoutBlockFlow {DIV} at (14,14) size 756x112
LayoutText {#text} at (0,0) size 66x28
text run at (0,0) width 66: "Tests: "
LayoutBR {BR} at (0,0) size 0x0
LayoutText {#text} at (0,28) size 608x28
text run at (0,28) width 608: "A scenario I thought of based on my experiences with this bug:"
LayoutInline {A} at (0,0) size 257x28 [color=#0000EE]
LayoutText {#text} at (0,56) size 257x28
text run at (0,56) width 257: "<rdar://problem/4045521>"
LayoutText {#text} at (256,56) size 735x56
text run at (256,56) width 479: " Hitting return key with full line selected does not"
text run at (0,84) width 252: "add blank line as it should"
LayoutBlockFlow {DIV} at (14,142) size 756x168
LayoutBlockFlow (anonymous) at (0,0) size 756x84
LayoutText {#text} at (0,0) size 190x28
text run at (0,0) width 190: "Expected Results: "
LayoutBR {BR} at (189,22) size 1x0
LayoutText {#text} at (0,28) size 704x56
text run at (0,28) width 704: "Should see this content in the red box below (note that the insertion point"
text run at (0,56) width 660: "should be at the start of the third line, immediately preceding \"baz\"):"
LayoutBlockFlow {DIV} at (0,84) size 756x28
LayoutText {#text} at (0,0) size 32x28
text run at (0,0) width 32: "foo"
LayoutBlockFlow {DIV} at (0,112) size 756x28
LayoutBR {BR} at (0,0) size 0x28
LayoutBlockFlow {DIV} at (0,140) size 756x28
LayoutText {#text} at (0,0) size 34x28
text run at (0,0) width 34: "baz"
LayoutBlockFlow {DIV} at (0,348) size 784x88
LayoutBlockFlow {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
LayoutBlockFlow {DIV} at (2,2) size 780x28
LayoutText {#text} at (0,0) size 32x28
text run at (0,0) width 32: "foo"
LayoutBlockFlow {DIV} at (2,30) size 780x28
LayoutBR {BR} at (0,0) size 0x28
LayoutBlockFlow {DIV} at (2,58) size 780x28
LayoutText {#text} at (0,0) size 34x28
text run at (0,0) width 34: "baz"
caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {DIV} of child 3 {DIV} of body
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x600
LayoutBlockFlow {BODY} at (8,8) size 784x584
LayoutBlockFlow {DIV} at (0,0) size 784x210 [border: (2px solid #0000FF)]
LayoutBlockFlow {DIV} at (14,14) size 756x111
LayoutText {#text} at (0,0) size 66x26
text run at (0,0) width 66: "Tests: "
LayoutBR {BR} at (0,0) size 0x0
LayoutText {#text} at (0,27) size 711x55
text run at (0,27) width 711: "Inserting blocks for paragraphs should do a better job of finding a block to"
text run at (0,55) width 116: "insert after. "
LayoutInline {A} at (0,0) size 257x27 [color=#0000EE]
LayoutText {#text} at (116,55) size 257x27
text run at (116,55) width 257: "<rdar://problem/3996605>"
LayoutText {#text} at (373,55) size 728x55
text run at (373,55) width 355: " Insert paragraph command puts new"
text run at (0,83) width 543: "block in wrong place, creating difficult-to-handle HTML"
LayoutBlockFlow {DIV} at (14,141) size 756x55
LayoutText {#text} at (0,0) size 189x26
text run at (0,0) width 189: "Expected Results: "
LayoutBR {BR} at (189,21) size 0x0
LayoutText {#text} at (0,27) size 436x27
text run at (0,27) width 436: "Should see this content in the red box below: "
LayoutInline {B} at (0,0) size 19x26
LayoutText {#text} at (436,27) size 19x26
text run at (436,27) width 19: "fo"
LayoutText {#text} at (455,27) size 12x27
text run at (455,27) width 12: "x"
LayoutBlockFlow {DIV} at (0,234) size 784x32
LayoutBlockFlow {DIV} at (0,0) size 784x32 [border: (2px solid #FF0000)]
LayoutInline {B} at (0,0) size 19x26
LayoutText {#text} at (2,2) size 19x26
text run at (2,2) width 19: "fo"
LayoutText {#text} at (21,2) size 12x27
text run at (21,2) width 12: "x"
caret: position 3 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of body
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x600
LayoutBlockFlow {BODY} at (8,8) size 784x584
LayoutBlockFlow {P} at (0,0) size 784x60
LayoutText {#text} at (0,0) size 773x39
text run at (0,0) width 384: "This tests inserting a paragraph separator after a horizontal rule. "
text run at (384,0) width 389: "You should see 'foo', empty paragraph, horizontal rule, 'bar', and"
text run at (0,20) width 288: "the caret should be just after the horizontal rule. "
LayoutInline {B} at (0,0) size 766x39
LayoutText {#text} at (288,20) size 766x39
text run at (288,20) width 167: "This demonstrates 8345. "
text run at (455,20) width 311: "The caret after a horizontal rule is drawn in the"
text run at (0,40) width 335: "same location as the caret before a horizontal rule."
LayoutBlockFlow (anonymous) at (0,76) size 784x0
LayoutInline {B} at (0,0) size 0x0
LayoutText {#text} at (0,0) size 0x0
LayoutBlockFlow (anonymous) at (0,76) size 784x78
LayoutBlockFlow {DIV} at (0,0) size 784x78
LayoutBlockFlow (anonymous) at (0,0) size 784x20
LayoutText {#text} at (0,0) size 21x19
text run at (0,0) width 21: "foo"
LayoutBlockFlow {HR} at (0,28) size 784x2 [border: (1px inset #EEEEEE)]
LayoutBlockFlow (anonymous) at (0,38) size 784x40
LayoutBR {BR} at (0,0) size 0x19
LayoutText {#text} at (0,20) size 22x19
text run at (0,20) width 22: "bar"
LayoutBlockFlow (anonymous) at (0,154) size 784x0
LayoutInline {B} at (0,0) size 0x0
caret: position 0 of child 2 {BR} of child 1 {DIV} of child 1 {B} of body
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x600
LayoutBlockFlow {BODY} at (8,8) size 784x584
LayoutBlockFlow {DIV} at (0,0) size 784x294 [border: (2px solid #0000FF)]
LayoutBlockFlow {DIV} at (14,14) size 756x83
LayoutText {#text} at (0,0) size 66x26
text run at (0,0) width 66: "Tests: "
LayoutBR {BR} at (0,0) size 0x0
LayoutText {#text} at (0,27) size 158x27
text run at (0,27) width 158: "Fix for this bug: "
LayoutInline {A} at (0,0) size 257x27 [color=#0000EE]
LayoutText {#text} at (158,27) size 257x27
text run at (158,27) width 257: "<rdar://problem/4045521>"
LayoutText {#text} at (415,27) size 719x55
text run at (415,27) width 304: " Hitting return key with full line"
text run at (0,55) width 420: "selected does not add blank line as it should"
LayoutBlockFlow {DIV} at (14,113) size 756x167
LayoutBlockFlow (anonymous) at (0,0) size 756x83
LayoutText {#text} at (0,0) size 189x26
text run at (0,0) width 189: "Expected Results: "
LayoutBR {BR} at (189,21) size 0x0
LayoutText {#text} at (0,27) size 703x55
text run at (0,27) width 703: "Should see this content in the red box below (note that the insertion point"
text run at (0,55) width 657: "should be at the start of the third line, immediately preceding \"baz\"):"
LayoutBlockFlow {DIV} at (0,83) size 756x28
LayoutText {#text} at (0,0) size 32x27
text run at (0,0) width 32: "foo"
LayoutBlockFlow {DIV} at (0,111) size 756x28
LayoutBR {BR} at (0,0) size 0x27
LayoutBlockFlow {DIV} at (0,139) size 756x28
LayoutText {#text} at (0,0) size 33x27
text run at (0,0) width 33: "baz"
LayoutBlockFlow {DIV} at (0,318) size 784x88
LayoutBlockFlow {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
LayoutBlockFlow {DIV} at (2,2) size 780x28
LayoutText {#text} at (0,0) size 32x27
text run at (0,0) width 32: "foo"
LayoutBlockFlow {DIV} at (2,30) size 780x28
LayoutBR {BR} at (0,0) size 0x27
LayoutBlockFlow {DIV} at (2,58) size 780x28
LayoutText {#text} at (0,0) size 33x27
text run at (0,0) width 33: "baz"
caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {DIV} of child 3 {DIV} of body
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: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x600
LayoutBlockFlow {BODY} at (8,8) size 784x584
LayoutBlockFlow {DIV} at (0,0) size 784x322 [border: (2px solid #0000FF)]
LayoutBlockFlow {DIV} at (14,14) size 756x111
LayoutText {#text} at (0,0) size 66x26
text run at (0,0) width 66: "Tests: "
LayoutBR {BR} at (0,0) size 0x0
LayoutText {#text} at (0,27) size 604x27
text run at (0,27) width 604: "A scenario I thought of based on my experiences with this bug:"
LayoutInline {A} at (0,0) size 257x27 [color=#0000EE]
LayoutText {#text} at (0,55) size 257x27
text run at (0,55) width 257: "<rdar://problem/4045521>"
LayoutText {#text} at (257,55) size 732x55
text run at (257,55) width 475: " Hitting return key with full line selected does not"
text run at (0,83) width 249: "add blank line as it should"
LayoutBlockFlow {DIV} at (14,141) size 756x167
LayoutBlockFlow (anonymous) at (0,0) size 756x83
LayoutText {#text} at (0,0) size 189x26
text run at (0,0) width 189: "Expected Results: "
LayoutBR {BR} at (189,21) size 0x0
LayoutText {#text} at (0,27) size 703x55
text run at (0,27) width 703: "Should see this content in the red box below (note that the insertion point"
text run at (0,55) width 657: "should be at the start of the third line, immediately preceding \"baz\"):"
LayoutBlockFlow {DIV} at (0,83) size 756x28
LayoutText {#text} at (0,0) size 32x27
text run at (0,0) width 32: "foo"
LayoutBlockFlow {DIV} at (0,111) size 756x28
LayoutBR {BR} at (0,0) size 0x27
LayoutBlockFlow {DIV} at (0,139) size 756x28
LayoutText {#text} at (0,0) size 33x27
text run at (0,0) width 33: "baz"
LayoutBlockFlow {DIV} at (0,346) size 784x88
LayoutBlockFlow {DIV} at (0,0) size 784x88 [border: (2px solid #FF0000)]
LayoutBlockFlow {DIV} at (2,2) size 780x28
LayoutText {#text} at (0,0) size 32x27
text run at (0,0) width 32: "foo"
LayoutBlockFlow {DIV} at (2,30) size 780x28
LayoutBR {BR} at (0,0) size 0x27
LayoutBlockFlow {DIV} at (2,58) size 780x28
LayoutText {#text} at (0,0) size 33x27
text run at (0,0) width 33: "baz"
caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {DIV} of child 3 {DIV} of body
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x600
LayoutBlockFlow {BODY} at (8,8) size 784x584
LayoutBlockFlow {DIV} at (0,0) size 784x206 [border: (2px solid #0000FF)]
LayoutBlockFlow {DIV} at (14,14) size 756x108
LayoutText {#text} at (0,0) size 66x26
text run at (0,0) width 66: "Tests: "
LayoutBR {BR} at (0,0) size 0x0
LayoutText {#text} at (0,27) size 716x53
text run at (0,27) width 716: "Inserting blocks for paragraphs should do a better job of finding a block to"
text run at (0,54) width 114: "insert after. "
LayoutInline {A} at (0,0) size 258x26 [color=#0000EE]
LayoutText {#text} at (113,54) size 258x26
text run at (113,54) width 258: "<rdar://problem/3996605>"
LayoutText {#text} at (370,54) size 726x53
text run at (370,54) width 356: " Insert paragraph command puts new"
text run at (0,81) width 547: "block in wrong place, creating difficult-to-handle HTML"
LayoutBlockFlow {DIV} at (14,138) size 756x54
LayoutText {#text} at (0,0) size 190x26
text run at (0,0) width 190: "Expected Results: "
LayoutBR {BR} at (189,21) size 1x0
LayoutText {#text} at (0,27) size 438x26
text run at (0,27) width 438: "Should see this content in the red box below: "
LayoutInline {B} at (0,0) size 21x26
LayoutText {#text} at (437,27) size 21x26
text run at (437,27) width 21: "fo"
LayoutText {#text} at (457,27) size 13x26
text run at (457,27) width 13: "x"
LayoutBlockFlow {DIV} at (0,230) size 784x31
LayoutBlockFlow {DIV} at (0,0) size 784x31 [border: (2px solid #FF0000)]
LayoutInline {B} at (0,0) size 20x26
LayoutText {#text} at (2,2) size 20x26
text run at (2,2) width 20: "fo"
LayoutText {#text} at (21,2) size 13x26
text run at (21,2) width 13: "x"
caret: position 3 of child 0 {#text} of child 0 {B} of child 1 {DIV} of child 3 {DIV} of body
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x600
LayoutBlockFlow {BODY} at (8,8) size 784x584
LayoutBlockFlow {P} at (0,0) size 784x54
LayoutText {#text} at (0,0) size 763x35
text run at (0,0) width 413: "This tests inserting a paragraph separator after a horizontal rule. "
text run at (412,0) width 351: "You should see 'foo', empty paragraph, horizontal rule,"
text run at (0,18) width 372: "'bar', and the caret should be just after the horizontal rule. "
LayoutInline {B} at (0,0) size 776x35
LayoutText {#text} at (371,18) size 776x35
text run at (371,18) width 171: "This demonstrates 8345. "
text run at (541,18) width 235: "The caret after a horizontal rule is"
text run at (0,36) width 435: "drawn in the same location as the caret before a horizontal rule."
LayoutBlockFlow (anonymous) at (0,70) size 784x0
LayoutInline {B} at (0,0) size 0x0
LayoutText {#text} at (0,0) size 0x0
LayoutBlockFlow (anonymous) at (0,70) size 784x72
LayoutBlockFlow {DIV} at (0,0) size 784x72
LayoutBlockFlow (anonymous) at (0,0) size 784x18
LayoutText {#text} at (0,0) size 22x17
text run at (0,0) width 22: "foo"
LayoutBlockFlow {HR} at (0,26) size 784x2 [border: (1px inset #EEEEEE)]
LayoutBlockFlow (anonymous) at (0,36) size 784x36
LayoutBR {BR} at (0,0) size 0x17
LayoutText {#text} at (0,18) size 24x17
text run at (0,18) width 24: "bar"
LayoutBlockFlow (anonymous) at (0,142) size 784x0
LayoutInline {B} at (0,0) size 0x0
caret: position 0 of child 2 {BR} of child 1 {DIV} of child 1 {B} of body
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x600
LayoutBlockFlow {BODY} at (8,8) size 784x584
LayoutBlockFlow {DIV} at (0,0) size 784x287 [border: (2px solid #0000FF)]
LayoutBlockFlow {DIV} at (14,14) size 756x81
LayoutText {#text} at (0,0) size 66x26
text run at (0,0) width 66: "Tests: "
LayoutBR {BR} at (0,0) size 0x0
LayoutText {#text} at (0,27) size 162x26
text run at (0,27) width 162: "Fix for this bug: "
LayoutInline {A} at (0,0) size 257x26 [color=#0000EE]
LayoutText {#text} at (161,27) size 257x26
text run at (161,27) width 257: "<rdar://problem/4045521>"
LayoutText {#text} at (417,27) size 726x53
text run at (417,27) width 309: " Hitting return key with full line"
text run at (0,54) width 422: "selected does not add blank line as it should"
LayoutBlockFlow {DIV} at (14,111) size 756x162
LayoutBlockFlow (anonymous) at (0,0) size 756x81
LayoutText {#text} at (0,0) size 190x26
text run at (0,0) width 190: "Expected Results: "
LayoutBR {BR} at (189,21) size 1x0
LayoutText {#text} at (0,27) size 704x53
text run at (0,27) width 704: "Should see this content in the red box below (note that the insertion point"
text run at (0,54) width 660: "should be at the start of the third line, immediately preceding \"baz\"):"
LayoutBlockFlow {DIV} at (0,81) size 756x27
LayoutText {#text} at (0,0) size 32x26
text run at (0,0) width 32: "foo"
LayoutBlockFlow {DIV} at (0,108) size 756x27
LayoutBR {BR} at (0,0) size 0x26
LayoutBlockFlow {DIV} at (0,135) size 756x27
LayoutText {#text} at (0,0) size 34x26
text run at (0,0) width 34: "baz"
LayoutBlockFlow {DIV} at (0,311) size 784x85
LayoutBlockFlow {DIV} at (0,0) size 784x85 [border: (2px solid #FF0000)]
LayoutBlockFlow {DIV} at (2,2) size 780x27
LayoutText {#text} at (0,0) size 32x26
text run at (0,0) width 32: "foo"
LayoutBlockFlow {DIV} at (2,29) size 780x27
LayoutBR {BR} at (0,0) size 0x26
LayoutBlockFlow {DIV} at (2,56) size 780x27
LayoutText {#text} at (0,0) size 34x26
text run at (0,0) width 34: "baz"
caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {DIV} of child 3 {DIV} of body
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: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x600
LayoutBlockFlow {BODY} at (8,8) size 784x584
LayoutBlockFlow {DIV} at (0,0) size 784x314 [border: (2px solid #0000FF)]
LayoutBlockFlow {DIV} at (14,14) size 756x108
LayoutText {#text} at (0,0) size 66x26
text run at (0,0) width 66: "Tests: "
LayoutBR {BR} at (0,0) size 0x0
LayoutText {#text} at (0,27) size 608x26
text run at (0,27) width 608: "A scenario I thought of based on my experiences with this bug:"
LayoutInline {A} at (0,0) size 257x26 [color=#0000EE]
LayoutText {#text} at (0,54) size 257x26
text run at (0,54) width 257: "<rdar://problem/4045521>"
LayoutText {#text} at (256,54) size 735x53
text run at (256,54) width 479: " Hitting return key with full line selected does not"
text run at (0,81) width 252: "add blank line as it should"
LayoutBlockFlow {DIV} at (14,138) size 756x162
LayoutBlockFlow (anonymous) at (0,0) size 756x81
LayoutText {#text} at (0,0) size 190x26
text run at (0,0) width 190: "Expected Results: "
LayoutBR {BR} at (189,21) size 1x0
LayoutText {#text} at (0,27) size 704x53
text run at (0,27) width 704: "Should see this content in the red box below (note that the insertion point"
text run at (0,54) width 660: "should be at the start of the third line, immediately preceding \"baz\"):"
LayoutBlockFlow {DIV} at (0,81) size 756x27
LayoutText {#text} at (0,0) size 32x26
text run at (0,0) width 32: "foo"
LayoutBlockFlow {DIV} at (0,108) size 756x27
LayoutBR {BR} at (0,0) size 0x26
LayoutBlockFlow {DIV} at (0,135) size 756x27
LayoutText {#text} at (0,0) size 34x26
text run at (0,0) width 34: "baz"
LayoutBlockFlow {DIV} at (0,338) size 784x85
LayoutBlockFlow {DIV} at (0,0) size 784x85 [border: (2px solid #FF0000)]
LayoutBlockFlow {DIV} at (2,2) size 780x27
LayoutText {#text} at (0,0) size 32x26
text run at (0,0) width 32: "foo"
LayoutBlockFlow {DIV} at (2,29) size 780x27
LayoutBR {BR} at (0,0) size 0x26
LayoutBlockFlow {DIV} at (2,56) size 780x27
LayoutText {#text} at (0,0) size 34x26
text run at (0,0) width 34: "baz"
caret: position 0 of child 0 {#text} of child 3 {DIV} of child 1 {DIV} of child 3 {DIV} of body
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment