Commit 8806920e authored by yosin's avatar yosin Committed by Commit bot

Convert editing/inserting/insert-div-02[34].html to use w3c test harness

This patch converts "editing/inserting/insert-div-02[34].html" to use w3c test
harness to simplify test script, and consolidates into
"insert_paragraph_and_style.html" since these scripts were committed in same
patch, for improving code health.

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

Review-Url: https://codereview.chromium.org/2338013005
Cr-Commit-Position: refs/heads/master@{#418812}
parent cafadf5b
<html>
<head>
<style>
body {
font-size: 24px;
}
.editing {
border: 2px solid red;
padding: 12px;
}
p {
border: 2px solid blue;
padding: 12px;
}
br {
background-color: green;
}
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
for (i = 0; i < 14; i++)
moveSelectionForwardByCharacterCommand();
insertParagraphCommand();
insertParagraphCommand();
typeCharacterCommand();
}
</script>
<title>Editing Test</title>
</head>
<body contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
Test inserting paragraphs and managing typing style correctly: "x" under "line 2" should be bold. Fix for this bug:
<a href="rdar://problem/3939523">&lt;rdar://problem/3939523&gt;</a> in some cases, text does not retain style info after pressing return twice
<div style="height: 12px"></div>
<p id="test">line 1</p>
<p><br class="khtml-block-placeholder"></p>
<p><b>line 2</b></p>
<p><br class="khtml-block-placeholder"></p>
<p>line 3</p>
<script>
runEditingTest();
</script>
</body>
</html>
<html>
<head>
<style>
body {
font-size: 24px;
}
.editing {
border: 2px solid red;
padding: 12px;
}
p {
border: 2px solid blue;
padding: 12px;
}
br {
background-color: green;
}
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
for (i = 0; i < 6; i++)
extendSelectionForwardByCharacterCommand();
boldCommand();
moveSelectionForwardByCharacterCommand();
insertParagraphCommand();
boldCommand();
for (i = 0; i < 3; i++)
typeCharacterCommand();
insertParagraphCommand();
insertParagraphCommand();
for (i = 0; i < 3; i++)
typeCharacterCommand();
}
</script>
<title>Editing Test</title>
</head>
<body contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
Test inserting paragraphs and managing typing style correctly: Only "line 1" should be bold. Other lines should be non-bold. Fix for this bug:
<a href="rdar://problem/3944492">&lt;rdar://problem/3944492&gt;</a> after pressing return twice, text is bold when it shouldn't be
<div style="height: 12px"></div>
<p id="test">line 1</p>
<script>
runEditingTest();
</script>
</body>
</html>
<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
test(() => assert_selection(
[
'<div contenteditable>',
'<p>one</p>',
'<p><br></p>',
'<p><b>two|</b></p>',
'<p><br></p>',
'<p>three</p>',
'</div>',
].join(''),
'insertParagraph',
[
'<div contenteditable>',
'<p>one</p>',
'<p><br></p>',
'<p><b>two</b></p>',
'<p><b>|<br></b></p>',
'<p><br></p>',
'<p>three</p>',
'</div>',
].join('')),
'insert BR in B');
test(() => assert_selection(
[
'<div contenteditable>',
'<p>^one|</p>',
'</div>',
].join(''),
selection => {
selection.document.execCommand('bold');
selection.modify('move', 'forward', 'character');
selection.document.execCommand('insertParagraph');
// Set typing style to non-bold
selection.document.execCommand('bold');
selection.document.execCommand('insertText', false, 'abc');
selection.document.execCommand('insertParagraph');
selection.document.execCommand('insertParagraph');
},
[
'<div contenteditable>',
'<p><b>one</b></p>',
'<p>abc</p>',
'<p><br></p>',
'<p>|<br></p>',
'</div>',
].join('')),
'insert BR twice');
</script>
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: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
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: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
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: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 685
LayoutView at (0,0) size 800x600
layer at (0,0) size 785x685 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
LayoutBlockFlow {HTML} at (0,0) size 785x685
LayoutBlockFlow {BODY} at (8,8) size 769x653
LayoutBlockFlow (anonymous) at (0,0) size 769x84
LayoutText {#text} at (0,0) size 749x55
text run at (0,0) width 743: "Test inserting paragraphs and managing typing style correctly: \"x\" under \"line"
text run at (742,0) width 7: " "
text run at (0,28) width 338: "2\" should be bold. Fix for this bug: "
LayoutInline {A} at (0,0) size 257x27 [color=#0000EE]
LayoutText {#text} at (338,28) size 257x27
text run at (338,28) width 257: "<rdar://problem/3939523>"
LayoutText {#text} at (595,28) size 744x55
text run at (595,28) width 143: " in some cases,"
text run at (738,28) width 6: " "
text run at (0,56) width 537: "text does not retain style info after pressing return twice"
LayoutBlockFlow {DIV} at (0,84) size 769x12
LayoutBlockFlow {P} at (0,120) size 769x56 [border: (2px solid #0000FF)]
LayoutText {#text} at (14,14) size 53x27
text run at (14,14) width 53: "line 1"
LayoutBlockFlow {P} at (0,200) size 769x56 [border: (2px solid #0000FF)]
LayoutBR {BR} at (14,14) size 0x27 [bgcolor=#008000]
LayoutBlockFlow {P} at (0,280) size 769x55 [border: (2px solid #0000FF)]
LayoutInline {B} at (0,0) size 56x26
LayoutText {#text} at (14,14) size 56x26
text run at (14,14) width 56: "line 2"
LayoutBlockFlow {P} at (0,359) size 769x55 [border: (2px solid #0000FF)]
LayoutInline {B} at (0,0) size 0x26
LayoutBR {BR} at (14,14) size 0x26 [bgcolor=#008000]
LayoutBlockFlow {P} at (0,438) size 769x55 [border: (2px solid #0000FF)]
LayoutInline {B} at (0,0) size 12x26
LayoutText {#text} at (14,14) size 12x26
text run at (14,14) width 12: "x"
LayoutBlockFlow {P} at (0,517) size 769x56 [border: (2px solid #0000FF)]
LayoutBR {BR} at (14,14) size 0x27 [bgcolor=#008000]
LayoutBlockFlow {P} at (0,597) size 769x56 [border: (2px solid #0000FF)]
LayoutText {#text} at (14,14) size 53x27
text run at (14,14) width 53: "line 3"
caret: position 1 of child 0 {#text} of child 0 {B} of child 11 {P} 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: 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: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
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 784x568
LayoutBlockFlow (anonymous) at (0,0) size 784x112
LayoutText {#text} at (0,0) size 731x55
text run at (0,0) width 725: "Test inserting paragraphs and managing typing style correctly: Only \"line 1\""
text run at (724,0) width 7: " "
text run at (0,28) width 611: "should be bold. Other lines should be non-bold. Fix for this bug:"
text run at (611,28) width 6: " "
LayoutInline {A} at (0,0) size 257x27 [color=#0000EE]
LayoutText {#text} at (0,56) size 257x27
text run at (0,56) width 257: "<rdar://problem/3944492>"
LayoutText {#text} at (257,56) size 715x55
text run at (257,56) width 452: " after pressing return twice, text is bold when it"
text run at (709,56) width 6: " "
text run at (0,84) width 115: "shouldn't be"
LayoutBlockFlow {DIV} at (0,112) size 784x12
LayoutBlockFlow {P} at (0,148) size 784x55 [border: (2px solid #0000FF)]
LayoutInline {B} at (0,0) size 56x26
LayoutText {#text} at (14,14) size 56x26
text run at (14,14) width 56: "line 1"
LayoutBlockFlow {P} at (0,227) size 784x56 [border: (2px solid #0000FF)]
LayoutText {#text} at (14,14) size 36x27
text run at (14,14) width 36: "xxx"
LayoutBlockFlow {P} at (0,307) size 784x56 [border: (2px solid #0000FF)]
LayoutBR {BR} at (14,14) size 0x27 [bgcolor=#008000]
LayoutBlockFlow {P} at (0,387) size 784x56 [border: (2px solid #0000FF)]
LayoutText {#text} at (14,14) size 36x27
text run at (14,14) width 36: "xxx"
caret: position 3 of child 0 {#text} of child 8 {P} 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: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
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: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
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: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 688
LayoutView at (0,0) size 800x600
layer at (0,0) size 785x688 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
LayoutBlockFlow {HTML} at (0,0) size 785x688
LayoutBlockFlow {BODY} at (8,8) size 769x656
LayoutBlockFlow (anonymous) at (0,0) size 769x84
LayoutText {#text} at (0,0) size 755x56
text run at (0,0) width 749: "Test inserting paragraphs and managing typing style correctly: \"x\" under \"line"
text run at (748,0) width 7: " "
text run at (0,28) width 343: "2\" should be bold. Fix for this bug: "
LayoutInline {A} at (0,0) size 257x28 [color=#0000EE]
LayoutText {#text} at (342,28) size 257x28
text run at (342,28) width 257: "<rdar://problem/3939523>"
LayoutText {#text} at (598,28) size 749x56
text run at (598,28) width 145: " in some cases,"
text run at (742,28) width 7: " "
text run at (0,56) width 537: "text does not retain style info after pressing return twice"
LayoutBlockFlow {DIV} at (0,84) size 769x12
LayoutBlockFlow {P} at (0,120) size 769x56 [border: (2px solid #0000FF)]
LayoutText {#text} at (14,14) size 54x28
text run at (14,14) width 54: "line 1"
LayoutBlockFlow {P} at (0,200) size 769x56 [border: (2px solid #0000FF)]
LayoutBR {BR} at (14,14) size 0x28 [bgcolor=#008000]
LayoutBlockFlow {P} at (0,280) size 769x56 [border: (2px solid #0000FF)]
LayoutInline {B} at (0,0) size 56x28
LayoutText {#text} at (14,14) size 56x28
text run at (14,14) width 56: "line 2"
LayoutBlockFlow {P} at (0,360) size 769x56 [border: (2px solid #0000FF)]
LayoutInline {B} at (0,0) size 0x28
LayoutBR {BR} at (14,14) size 0x28 [bgcolor=#008000]
LayoutBlockFlow {P} at (0,440) size 769x56 [border: (2px solid #0000FF)]
LayoutInline {B} at (0,0) size 12x28
LayoutText {#text} at (14,14) size 12x28
text run at (14,14) width 12: "x"
LayoutBlockFlow {P} at (0,520) size 769x56 [border: (2px solid #0000FF)]
LayoutBR {BR} at (14,14) size 0x28 [bgcolor=#008000]
LayoutBlockFlow {P} at (0,600) size 769x56 [border: (2px solid #0000FF)]
LayoutText {#text} at (14,14) size 54x28
text run at (14,14) width 54: "line 3"
caret: position 1 of child 0 {#text} of child 0 {B} of child 11 {P} 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: 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: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
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 784x568
LayoutBlockFlow (anonymous) at (0,0) size 784x112
LayoutText {#text} at (0,0) size 739x56
text run at (0,0) width 733: "Test inserting paragraphs and managing typing style correctly: Only \"line 1\""
text run at (732,0) width 7: " "
text run at (0,28) width 618: "should be bold. Other lines should be non-bold. Fix for this bug:"
text run at (617,28) width 7: " "
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/3944492>"
LayoutText {#text} at (256,56) size 716x56
text run at (256,56) width 454: " after pressing return twice, text is bold when it"
text run at (709,56) width 7: " "
text run at (0,84) width 116: "shouldn't be"
LayoutBlockFlow {DIV} at (0,112) size 784x12
LayoutBlockFlow {P} at (0,148) size 784x56 [border: (2px solid #0000FF)]
LayoutInline {B} at (0,0) size 56x28
LayoutText {#text} at (14,14) size 56x28
text run at (14,14) width 56: "line 1"
LayoutBlockFlow {P} at (0,228) size 784x56 [border: (2px solid #0000FF)]
LayoutText {#text} at (14,14) size 36x28
text run at (14,14) width 36: "xxx"
LayoutBlockFlow {P} at (0,308) size 784x56 [border: (2px solid #0000FF)]
LayoutBR {BR} at (14,14) size 0x28 [bgcolor=#008000]
LayoutBlockFlow {P} at (0,388) size 784x56 [border: (2px solid #0000FF)]
LayoutText {#text} at (14,14) size 36x28
text run at (14,14) width 36: "xxx"
caret: position 3 of child 0 {#text} of child 8 {P} 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: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
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: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
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: webViewDidChange:WebViewDidChangeNotification
layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 678
LayoutView at (0,0) size 800x600
layer at (0,0) size 785x678 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
LayoutBlockFlow {HTML} at (0,0) size 785x678
LayoutBlockFlow {BODY} at (8,8) size 769x646
LayoutBlockFlow (anonymous) at (0,0) size 769x81
LayoutText {#text} at (0,0) size 755x53
text run at (0,0) width 749: "Test inserting paragraphs and managing typing style correctly: \"x\" under \"line"
text run at (748,0) width 7: " "
text run at (0,27) width 343: "2\" should be bold. Fix for this bug: "
LayoutInline {A} at (0,0) size 257x26 [color=#0000EE]
LayoutText {#text} at (342,27) size 257x26
text run at (342,27) width 257: "<rdar://problem/3939523>"
LayoutText {#text} at (598,27) size 749x53
text run at (598,27) width 145: " in some cases,"
text run at (742,27) width 7: " "
text run at (0,54) width 537: "text does not retain style info after pressing return twice"
LayoutBlockFlow {DIV} at (0,81) size 769x12
LayoutBlockFlow {P} at (0,117) size 769x55 [border: (2px solid #0000FF)]
LayoutText {#text} at (14,14) size 54x26
text run at (14,14) width 54: "line 1"
LayoutBlockFlow {P} at (0,196) size 769x55 [border: (2px solid #0000FF)]
LayoutBR {BR} at (14,14) size 0x26 [bgcolor=#008000]
LayoutBlockFlow {P} at (0,275) size 769x55 [border: (2px solid #0000FF)]
LayoutInline {B} at (0,0) size 56x26
LayoutText {#text} at (14,14) size 56x26
text run at (14,14) width 56: "line 2"
LayoutBlockFlow {P} at (0,354) size 769x55 [border: (2px solid #0000FF)]
LayoutInline {B} at (0,0) size 0x26
LayoutBR {BR} at (14,14) size 0x26 [bgcolor=#008000]
LayoutBlockFlow {P} at (0,433) size 769x55 [border: (2px solid #0000FF)]
LayoutInline {B} at (0,0) size 12x26
LayoutText {#text} at (14,14) size 12x26
text run at (14,14) width 12: "x"
LayoutBlockFlow {P} at (0,512) size 769x55 [border: (2px solid #0000FF)]
LayoutBR {BR} at (14,14) size 0x26 [bgcolor=#008000]
LayoutBlockFlow {P} at (0,591) size 769x55 [border: (2px solid #0000FF)]
LayoutText {#text} at (14,14) size 54x26
text run at (14,14) width 54: "line 3"
caret: position 1 of child 0 {#text} of child 0 {B} of child 11 {P} 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: 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: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
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 784x568
LayoutBlockFlow (anonymous) at (0,0) size 784x108
LayoutText {#text} at (0,0) size 739x53
text run at (0,0) width 733: "Test inserting paragraphs and managing typing style correctly: Only \"line 1\""
text run at (732,0) width 7: " "
text run at (0,27) width 618: "should be bold. Other lines should be non-bold. Fix for this bug:"
text run at (617,27) width 7: " "
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/3944492>"
LayoutText {#text} at (256,54) size 716x53
text run at (256,54) width 454: " after pressing return twice, text is bold when it"
text run at (709,54) width 7: " "
text run at (0,81) width 116: "shouldn't be"
LayoutBlockFlow {DIV} at (0,108) size 784x12
LayoutBlockFlow {P} at (0,144) size 784x55 [border: (2px solid #0000FF)]
LayoutInline {B} at (0,0) size 56x26
LayoutText {#text} at (14,14) size 56x26
text run at (14,14) width 56: "line 1"
LayoutBlockFlow {P} at (0,223) size 784x55 [border: (2px solid #0000FF)]
LayoutText {#text} at (14,14) size 36x26
text run at (14,14) width 36: "xxx"
LayoutBlockFlow {P} at (0,302) size 784x55 [border: (2px solid #0000FF)]
LayoutBR {BR} at (14,14) size 0x26 [bgcolor=#008000]
LayoutBlockFlow {P} at (0,381) size 784x55 [border: (2px solid #0000FF)]
LayoutText {#text} at (14,14) size 36x26
text run at (14,14) width 36: "xxx"
caret: position 3 of child 0 {#text} of child 8 {P} 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