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

Convert editing/inserting/insert-paragraph-0[1-5].html to use w3c test harness

This patch converts "editing/inserting/insert-paragraph-0[1-5].html" to use w3c
test harness and consolidates into "insert_paragraph.html" to simplify test
case for ease of maintenance.

This patch is a preparation of getting rid of grammar checking feature.

Review-Url: https://codereview.chromium.org/2175233002
Cr-Commit-Position: refs/heads/master@{#407718}
parent 178c5ea9
<script>
if (window.testRunner)
testRunner.dumpEditingCallbacks();
</script>
<p>This tests inserting a paragraph separator before a table. There should be an empty paragraph before the table and the caret should be just before the table.</p>
<div contenteditable="true" id="div"><table border="1"><tr><td>foo</td></tr></table></div>
<script>
var sel = window.getSelection();
var div = document.getElementById("div");
sel.collapse(div, 0);
document.execCommand("InsertParagraph");
</script>
<script>
if (window.testRunner)
testRunner.dumpEditingCallbacks();
</script>
<p>This tests inserting a paragraph separator after a table. There should be an empty paragraph between the table and 'bar' and the caret should be in the empty paragraph.</p>
<div contenteditable="true" id="div"><table border="1"><tr><td>foo</td></tr></table>bar</div>
<script>
if (window.internals)
internals.settings.setEditingBehavior('mac');
var sel = window.getSelection();
var div = document.getElementById("div");
sel.collapse(div, 0);
sel.modify("move", "forward", "character");
sel.modify("move", "forward", "character");
sel.modify("move", "forward", "character");
sel.modify("move", "forward", "character");
sel.modify("move", "forward", "character");
document.execCommand("InsertParagraph");
</script>
<script>
if (window.testRunner)
testRunner.dumpEditingCallbacks();
</script>
<p>This tests inserting a paragraph separator before a horizontal rule. You should see 'foo', empty paragraph, horizontal rule, 'bar', and the caret should be just before the horizontal rule.</p>
<div contenteditable="true" id="div">foo<hr>bar</div>
<script>
if (window.internals)
internals.settings.setEditingBehavior("mac");
var sel = window.getSelection();
var div = document.getElementById("div");
sel.collapse(div, 0);
sel.modify("move", "forward", "word");
sel.modify("move", "forward", "character");
document.execCommand("InsertParagraph");
</script>
<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></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>
<div contenteditable="true" id="div">foo<hr>bar</div>
<div id="log"></div>
<script>
test(function() {
if (window.internals)
internals.settings.setEditingBehavior('mac');
var selection = window.getSelection();
var div = document.getElementById('div');
selection.collapse(div, 0);
selection.modify('move', 'forward', 'word');
selection.modify('move', 'forward', 'character');
selection.modify('move', 'forward', 'character');
document.execCommand('insertParagraph');
assert_equals(div.innerHTML, 'foo<hr><br>bar');
});
</script>
<script>
if (window.testRunner)
testRunner.dumpEditingCallbacks();
</script>
<p>This tests inserting a paragraph separator before a special element at the start of an editable root.</p>
<p>Visually, it should leave a blank line before the link, and the caret selection at the start of the link.</p>
<p>Structurally, the empty paragraph element should go before the anchor element, rather than inside of it. See Radar #5452675.</p>
<div contenteditable="true"><a id="anchor" href="http://www.apple.com">applesite</a></div>
<script>
var sel = window.getSelection();
sel.collapse(document.getElementById("anchor"), 0);
document.execCommand("InsertParagraph");
</script>
<!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>',
'|<table><tr><td>foo</td></tr></table>',
'</div>',
].join(''),
'insertParagraph',
[
'<div contenteditable>',
'<br>',
'|<table><tbody><tr><td>foo</td></tr></tbody></table>',
'</div>',
].join('')),
'Insert BR before table');
test(() => assert_selection(
[
'<div contenteditable>',
'<table><tr><td>foo</td></tr></table>',
'|bar',
'</div>',
].join(''),
'insertParagraph',
[
'<div contenteditable>',
'<table><tbody><tr><td>foo</td></tr></tbody></table>',
'<br>',
'<div>|bar</div>',
'</div>',
].join('')),
'Insert BR and enclose with DIV');
test(() => assert_selection(
[
'<div contenteditable>',
'foo|<hr>bar',
'</div>',
].join(''),
'insertParagraph',
[
'<div contenteditable>',
'foo',
'<div>|<br><hr>bar</div>',
'</div>',
].join('')),
'Insert BR before HR');
test(() => assert_selection(
[
'<div contenteditable>',
'foo<hr>|bar',
'</div>',
].join(''),
selection => {
// Set selection to afterNode(HR)
selection.modify('move', 'backward', 'character');
selection.document.execCommand('insertParagraph');
},
[
'<div contenteditable>',
'foo<hr>|<br>bar',
'</div>',
].join('')),
'Insert BR after HR');
test(() => assert_selection(
[
'<div contenteditable>',
'<a href="http://example.com">|example</a>',
'</div>',
].join(''),
'insertParagraph',
[
'<div contenteditable>',
'<div><br></div>',
'<a href="http://example.com">|example</a>',
'</div>',
].join('')),
'Insert DIV+BR before A');
</script>
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 784x40
LayoutText {#text} at (0,0) size 742x39
text run at (0,0) width 341: "This tests inserting a paragraph separator before a table. "
text run at (341,0) width 401: "There should be an empty paragraph before the table and the caret"
text run at (0,20) width 185: "should be just before the table."
LayoutBlockFlow {DIV} at (0,56) size 784x50
LayoutBlockFlow (anonymous) at (0,0) size 784x20
LayoutBR {BR} at (0,0) size 0x19
LayoutTable {TABLE} at (0,20) size 30x30 [border: (1px outset #808080)]
LayoutTableSection {TBODY} at (1,1) size 28x28
LayoutTableRow {TR} at (0,2) size 28x24
LayoutTableCell {TD} at (2,2) size 24x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
LayoutText {#text} at (2,2) size 20x19
text run at (2,2) width 20: "foo"
caret: position 0 of child 1 {TABLE} of child 2 {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: 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 784x40
LayoutText {#text} at (0,0) size 764x39
text run at (0,0) width 329: "This tests inserting a paragraph separator after a table. "
text run at (329,0) width 435: "There should be an empty paragraph between the table and 'bar' and the"
text run at (0,20) width 238: "caret should be in the empty paragraph."
LayoutBlockFlow {DIV} at (0,56) size 784x70
LayoutTable {TABLE} at (0,0) size 30x30 [border: (1px outset #808080)]
LayoutTableSection {TBODY} at (1,1) size 28x28
LayoutTableRow {TR} at (0,2) size 28x24
LayoutTableCell {TD} at (2,2) size 24x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
LayoutText {#text} at (2,2) size 20x19
text run at (2,2) width 20: "foo"
LayoutBlockFlow (anonymous) at (0,30) size 784x40
LayoutBR {BR} at (0,0) size 0x19
LayoutText {#text} at (0,20) size 20x19
text run at (0,20) width 20: "bar"
caret: position 0 of child 1 {BR} of child 2 {DIV} 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 {P} at (0,0) size 784x40
LayoutText {#text} at (0,0) size 784x39
text run at (0,0) width 396: "This tests inserting a paragraph separator before a horizontal rule. "
text run at (396,0) width 388: "You should see 'foo', empty paragraph, horizontal rule, 'bar', and"
text run at (0,20) width 296: "the caret should be just before the horizontal rule."
LayoutBlockFlow {DIV} at (0,56) size 784x78
LayoutBlockFlow (anonymous) at (0,0) size 784x40
LayoutText {#text} at (0,0) size 20x19
text run at (0,0) width 20: "foo"
LayoutBR {BR} at (20,15) size 0x0
LayoutBR {BR} at (0,20) size 0x19
LayoutBlockFlow {HR} at (0,48) size 784x2 [border: (1px inset #EEEEEE)]
LayoutBlockFlow (anonymous) at (0,58) size 784x20
LayoutText {#text} at (0,0) size 20x19
text run at (0,0) width 20: "bar"
caret: position 0 of child 3 {HR} of child 2 {DIV} of body
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 784x20
LayoutText {#text} at (0,0) size 580x19
text run at (0,0) width 580: "This tests inserting a paragraph separator before a special element at the start of an editable root."
LayoutBlockFlow {P} at (0,36) size 784x20
LayoutText {#text} at (0,0) size 576x19
text run at (0,0) width 576: "Visually, it should leave a blank line before the link, and the caret selection at the start of the link."
LayoutBlockFlow {P} at (0,72) size 784x20
LayoutText {#text} at (0,0) size 752x19
text run at (0,0) width 752: "Structurally, the empty paragraph element should go before the anchor element, rather than inside of it. See Radar #5452675."
LayoutBlockFlow {DIV} at (0,108) size 784x40
LayoutBlockFlow {DIV} at (0,0) size 784x20
LayoutBR {BR} at (0,0) size 0x19
LayoutBlockFlow (anonymous) at (0,20) size 784x20
LayoutInline {A} at (0,0) size 53x19 [color=#0000EE]
LayoutText {#text} at (0,0) size 53x19
text run at (0,0) width 53: "applesite"
caret: position 0 of child 0 {#text} of child 1 {A} of child 6 {DIV} of body
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 784x36
LayoutText {#text} at (0,0) size 750x36
text run at (0,0) width 362: "This tests inserting a paragraph separator before a table. "
text run at (361,0) width 389: "There should be an empty paragraph before the table and the"
text run at (0,18) width 232: "caret should be just before the table."
LayoutBlockFlow {DIV} at (0,52) size 784x46
LayoutBlockFlow (anonymous) at (0,0) size 784x18
LayoutBR {BR} at (0,0) size 0x18
LayoutTable {TABLE} at (0,18) size 32x28 [border: (1px outset #808080)]
LayoutTableSection {TBODY} at (1,1) size 30x26
LayoutTableRow {TR} at (0,2) size 30x22
LayoutTableCell {TD} at (2,2) size 26x22 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
LayoutText {#text} at (2,2) size 22x18
text run at (2,2) width 22: "foo"
caret: position 0 of child 1 {TABLE} of child 2 {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: 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 784x36
LayoutText {#text} at (0,0) size 758x36
text run at (0,0) width 351: "This tests inserting a paragraph separator after a table. "
text run at (350,0) width 408: "There should be an empty paragraph between the table and 'bar'"
text run at (0,18) width 304: "and the caret should be in the empty paragraph."
LayoutBlockFlow {DIV} at (0,52) size 784x64
LayoutTable {TABLE} at (0,0) size 32x28 [border: (1px outset #808080)]
LayoutTableSection {TBODY} at (1,1) size 30x26
LayoutTableRow {TR} at (0,2) size 30x22
LayoutTableCell {TD} at (2,2) size 26x22 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
LayoutText {#text} at (2,2) size 22x18
text run at (2,2) width 22: "foo"
LayoutBlockFlow (anonymous) at (0,28) size 784x36
LayoutBR {BR} at (0,0) size 0x18
LayoutText {#text} at (0,18) size 21x18
text run at (0,18) width 21: "bar"
caret: position 0 of child 1 {BR} of child 2 {DIV} 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 {P} at (0,0) size 784x36
LayoutText {#text} at (0,0) size 775x36
text run at (0,0) width 425: "This tests inserting a paragraph separator before a horizontal rule. "
text run at (424,0) width 351: "You should see 'foo', empty paragraph, horizontal rule,"
text run at (0,18) width 379: "'bar', and the caret should be just before the horizontal rule."
LayoutBlockFlow {DIV} at (0,52) size 784x72
LayoutBlockFlow (anonymous) at (0,0) size 784x36
LayoutText {#text} at (0,0) size 22x18
text run at (0,0) width 22: "foo"
LayoutBR {BR} at (21,14) size 1x0
LayoutBR {BR} at (0,18) size 0x18
LayoutBlockFlow {HR} at (0,44) size 784x2 [border: (1px inset #EEEEEE)]
LayoutBlockFlow (anonymous) at (0,54) size 784x18
LayoutText {#text} at (0,0) size 21x18
text run at (0,0) width 21: "bar"
caret: position 0 of child 3 {HR} of child 2 {DIV} of body
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 784x18
LayoutText {#text} at (0,0) size 618x18
text run at (0,0) width 618: "This tests inserting a paragraph separator before a special element at the start of an editable root."
LayoutBlockFlow {P} at (0,34) size 784x18
LayoutText {#text} at (0,0) size 625x18
text run at (0,0) width 625: "Visually, it should leave a blank line before the link, and the caret selection at the start of the link."
LayoutBlockFlow {P} at (0,68) size 784x36
LayoutText {#text} at (0,0) size 729x36
text run at (0,0) width 729: "Structurally, the empty paragraph element should go before the anchor element, rather than inside of it. See Radar"
text run at (0,18) width 68: "#5452675."
LayoutBlockFlow {DIV} at (0,120) size 784x36
LayoutBlockFlow {DIV} at (0,0) size 784x18
LayoutBR {BR} at (0,0) size 0x18
LayoutBlockFlow (anonymous) at (0,18) size 784x18
LayoutInline {A} at (0,0) size 57x18 [color=#0000EE]
LayoutText {#text} at (0,0) size 57x18
text run at (0,0) width 57: "applesite"
caret: position 0 of child 0 {#text} of child 1 {A} of child 6 {DIV} of body
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 784x36
LayoutText {#text} at (0,0) size 750x35
text run at (0,0) width 362: "This tests inserting a paragraph separator before a table. "
text run at (361,0) width 389: "There should be an empty paragraph before the table and the"
text run at (0,18) width 232: "caret should be just before the table."
LayoutBlockFlow {DIV} at (0,52) size 784x46
LayoutBlockFlow (anonymous) at (0,0) size 784x18
LayoutBR {BR} at (0,0) size 0x17
LayoutTable {TABLE} at (0,18) size 32x28 [border: (1px outset #808080)]
LayoutTableSection {TBODY} at (1,1) size 30x26
LayoutTableRow {TR} at (0,2) size 30x22
LayoutTableCell {TD} at (2,2) size 26x22 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
LayoutText {#text} at (2,2) size 22x17
text run at (2,2) width 22: "foo"
caret: position 0 of child 1 {TABLE} of child 2 {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: 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 784x36
LayoutText {#text} at (0,0) size 758x35
text run at (0,0) width 351: "This tests inserting a paragraph separator after a table. "
text run at (350,0) width 408: "There should be an empty paragraph between the table and 'bar'"
text run at (0,18) width 304: "and the caret should be in the empty paragraph."
LayoutBlockFlow {DIV} at (0,52) size 784x64
LayoutTable {TABLE} at (0,0) size 32x28 [border: (1px outset #808080)]
LayoutTableSection {TBODY} at (1,1) size 30x26
LayoutTableRow {TR} at (0,2) size 30x22
LayoutTableCell {TD} at (2,2) size 26x22 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
LayoutText {#text} at (2,2) size 22x17
text run at (2,2) width 22: "foo"
LayoutBlockFlow (anonymous) at (0,28) size 784x36
LayoutBR {BR} at (0,0) size 0x17
LayoutText {#text} at (0,18) size 21x17
text run at (0,18) width 21: "bar"
caret: position 0 of child 1 {BR} of child 2 {DIV} 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 {P} at (0,0) size 784x36
LayoutText {#text} at (0,0) size 775x35
text run at (0,0) width 425: "This tests inserting a paragraph separator before a horizontal rule. "
text run at (424,0) width 351: "You should see 'foo', empty paragraph, horizontal rule,"
text run at (0,18) width 379: "'bar', and the caret should be just before the horizontal rule."
LayoutBlockFlow {DIV} at (0,52) size 784x72
LayoutBlockFlow (anonymous) at (0,0) size 784x36
LayoutText {#text} at (0,0) size 22x17
text run at (0,0) width 22: "foo"
LayoutBR {BR} at (21,14) size 1x0
LayoutBR {BR} at (0,18) size 0x17
LayoutBlockFlow {HR} at (0,44) size 784x2 [border: (1px inset #EEEEEE)]
LayoutBlockFlow (anonymous) at (0,54) size 784x18
LayoutText {#text} at (0,0) size 21x17
text run at (0,0) width 21: "bar"
caret: position 0 of child 3 {HR} of child 2 {DIV} of body
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 784x18
LayoutText {#text} at (0,0) size 618x17
text run at (0,0) width 618: "This tests inserting a paragraph separator before a special element at the start of an editable root."
LayoutBlockFlow {P} at (0,34) size 784x18
LayoutText {#text} at (0,0) size 625x17
text run at (0,0) width 625: "Visually, it should leave a blank line before the link, and the caret selection at the start of the link."
LayoutBlockFlow {P} at (0,68) size 784x36
LayoutText {#text} at (0,0) size 729x35
text run at (0,0) width 729: "Structurally, the empty paragraph element should go before the anchor element, rather than inside of it. See Radar"
text run at (0,18) width 68: "#5452675."
LayoutBlockFlow {DIV} at (0,120) size 784x36
LayoutBlockFlow {DIV} at (0,0) size 784x18
LayoutBR {BR} at (0,0) size 0x17
LayoutBlockFlow (anonymous) at (0,18) size 784x18
LayoutInline {A} at (0,0) size 57x17 [color=#0000EE]
LayoutText {#text} at (0,0) size 57x17
text run at (0,0) width 57: "applesite"
caret: position 0 of child 0 {#text} of child 1 {A} of child 6 {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