Skip to content

Commit

Permalink
Escape newline in subtest name and message
Browse files Browse the repository at this point in the history
newline will have semantics meaning in the new baseline format.

Bug: 1481730
Change-Id: Id51b10365ac5bc473ab5487d7235770923050a8f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4935620
Commit-Queue: Weizhong Xia <weizhong@google.com>
Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1209463}
  • Loading branch information
WeizhongX authored and Chromium LUCI CQ committed Oct 13, 2023
1 parent 7f04d23 commit 14454ae
Show file tree
Hide file tree
Showing 160 changed files with 937 additions and 3,014 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
This is a testharness.js-based test.
FAIL This InsertParagraph non-table layout item into table layout. editing/execCommand/insert-paragraph-into-table.html:7:11)
expected <div contenteditable><table><tbody><tr><td style="display:inline-block"><ruby><rt>a</rt></ruby></td></tr><tr><font size="1">|<br></font></tr></tbody></table></div>,
but got <div contenteditable><table><tbody><tr><td style="display:inline-block"><ruby><rt>a</rt></ruby></td></tr><tr><span style="font-size: 8px;">|<br></span></tr></tbody></table></div>,
sameupto <div contenteditable><table><tbody><tr><td style="display:inline-block"><ruby><rt>a</rt></ruby></td></tr><tr><
FAIL This InsertParagraph non-table layout item into table layout. editing/execCommand/insert-paragraph-into-table.html:7:11)\n expected <div contenteditable><table><tbody><tr><td style="display:inline-block"><ruby><rt>a</rt></ruby></td></tr><tr><font size="1">|<br></font></tr></tbody></table></div>,\n but got <div contenteditable><table><tbody><tr><td style="display:inline-block"><ruby><rt>a</rt></ruby></td></tr><tr><span style="font-size: 8px;">|<br></span></tr></tbody></table></div>,\n sameupto <div contenteditable><table><tbody><tr><td style="display:inline-block"><ruby><rt>a</rt></ruby></td></tr><tr><
Harness: the test ran to completion.

Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
This is a testharness.js-based test.
FAIL .target 1 assert_equals:
<div class="target" data-expected-width="70" data-expected-height="50"></div>
width expected 70 but got 40
FAIL .target 1 assert_equals: \n<div class="target" data-expected-width="70" data-expected-height="50"></div>\nwidth expected 70 but got 40
PASS .target 2
PASS .target 3
PASS .target 4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
This is a testharness.js-based test.
FAIL .target 1 assert_equals:
<div class="target" data-expected-height="50"></div>
height expected 50 but got 0
FAIL .target 1 assert_equals: \n<div class="target" data-expected-height="50"></div>\nheight expected 50 but got 0
PASS .target 2
PASS .target 3
FAIL .target 4 assert_equals:
<div class="target" data-expected-height="50"></div>
height expected 50 but got 0
FAIL .target 4 assert_equals: \n<div class="target" data-expected-height="50"></div>\nheight expected 50 but got 0
PASS .target 5
PASS .target 6
PASS .target 7
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
This is a testharness.js-based test.
FAIL .target 1 assert_equals:
<div class="target" data-offset-x="10" data-offset-y="20" data-expected-width="130" data-expected-height="50"></div>
width expected 130 but got 40
FAIL .target 1 assert_equals: \n<div class="target" data-offset-x="10" data-offset-y="20" data-expected-width="130" data-expected-height="50"></div>\nwidth expected 130 but got 40
PASS .target 2
PASS .target 3
PASS .target 4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
This is a testharness.js-based test.
FAIL item 1 assert_equals:
<item data-expected-margin-bottom="0"></item>
margin-bottom expected "0" but got "10"
FAIL item 1 assert_equals: \n<item data-expected-margin-bottom="0"></item>\nmargin-bottom expected "0" but got "10"
Harness: the test ran to completion.

Original file line number Diff line number Diff line change
@@ -1,53 +1,14 @@
This is a testharness.js-based test.
PASS item 1
FAIL item 2 assert_equals:
<item data-expected-margin-bottom="0" style="block-size: auto;">
<div><item data-expected-margin-bottom="10"></item></div>
<div>
<item data-expected-margin-bottom="0" style="block-size: auto;">
<div><item data-expected-margin-bottom="0"></item></div>
</item>
<item class="collapsed" data-expected-margin-bottom="0">
<div><item class="collapsed" data-expected-margin-bottom="0"></item></div>
</item>
</div>
<item class="collapsed" data-expected-margin-bottom="0">
<div><item class="collapsed" data-expected-margin-bottom="0"></item></div>
</item>
</item>
margin-bottom expected "0" but got "10"
FAIL item 2 assert_equals: \n<item data-expected-margin-bottom="0" style="block-size: auto;">\n <div><item data-expected-margin-bottom="10"></item></div>\n <div>\n <item data-expected-margin-bottom="0" style="block-size: auto;">\n <div><item data-expected-margin-bottom="0"></item></div>\n </item>\n <item class="collapsed" data-expected-margin-bottom="0">\n <div><item class="collapsed" data-expected-margin-bottom="0"></item></div>\n </item>\n </div>\n <item class="collapsed" data-expected-margin-bottom="0">\n <div><item class="collapsed" data-expected-margin-bottom="0"></item></div>\n </item>\n </item>\nmargin-bottom expected "0" but got "10"
PASS item 3
FAIL item 4 assert_equals:
<item data-expected-margin-bottom="0" style="block-size: auto;">
<div><item data-expected-margin-bottom="0"></item></div>
</item>
margin-bottom expected "0" but got "10"
FAIL item 5 assert_equals:
<item data-expected-margin-bottom="0"></item>
margin-bottom expected "0" but got "10"
FAIL item 6 assert_equals:
<item class="collapsed" data-expected-margin-bottom="0">
<div><item class="collapsed" data-expected-margin-bottom="0"></item></div>
</item>
margin-bottom expected "0" but got "10"
FAIL item 7 assert_equals:
<item class="collapsed" data-expected-margin-bottom="0"></item>
margin-bottom expected "0" but got "10"
FAIL item 8 assert_equals:
<item class="collapsed" data-expected-margin-bottom="0">
<div><item class="collapsed" data-expected-margin-bottom="0"></item></div>
</item>
margin-bottom expected "0" but got "10"
FAIL item 9 assert_equals:
<item class="collapsed" data-expected-margin-bottom="0"></item>
margin-bottom expected "0" but got "10"
FAIL item 10 assert_equals:
<item class="collapsed" data-expected-margin-bottom="0">
<div><item class="collapsed" data-expected-margin-bottom="0"></item></div>
</item>
margin-bottom expected "0" but got "10"
FAIL item 11 assert_equals:
<item class="collapsed" data-expected-margin-bottom="0"></item>
margin-bottom expected "0" but got "10"
FAIL item 4 assert_equals: \n<item data-expected-margin-bottom="0" style="block-size: auto;">\n <div><item data-expected-margin-bottom="0"></item></div>\n </item>\nmargin-bottom expected "0" but got "10"
FAIL item 5 assert_equals: \n<item data-expected-margin-bottom="0"></item>\nmargin-bottom expected "0" but got "10"
FAIL item 6 assert_equals: \n<item class="collapsed" data-expected-margin-bottom="0">\n <div><item class="collapsed" data-expected-margin-bottom="0"></item></div>\n </item>\nmargin-bottom expected "0" but got "10"
FAIL item 7 assert_equals: \n<item class="collapsed" data-expected-margin-bottom="0"></item>\nmargin-bottom expected "0" but got "10"
FAIL item 8 assert_equals: \n<item class="collapsed" data-expected-margin-bottom="0">\n <div><item class="collapsed" data-expected-margin-bottom="0"></item></div>\n </item>\nmargin-bottom expected "0" but got "10"
FAIL item 9 assert_equals: \n<item class="collapsed" data-expected-margin-bottom="0"></item>\nmargin-bottom expected "0" but got "10"
FAIL item 10 assert_equals: \n<item class="collapsed" data-expected-margin-bottom="0">\n <div><item class="collapsed" data-expected-margin-bottom="0"></item></div>\n </item>\nmargin-bottom expected "0" but got "10"
FAIL item 11 assert_equals: \n<item class="collapsed" data-expected-margin-bottom="0"></item>\nmargin-bottom expected "0" but got "10"
Harness: the test ran to completion.

Original file line number Diff line number Diff line change
@@ -1,98 +1,21 @@
This is a testharness.js-based test.
PASS item 1
FAIL item 2 assert_equals:
<item data-expected-margin-bottom="0"></item>
margin-bottom expected "0" but got "10"
FAIL item 3 assert_equals:
<item class="collapsed" data-expected-margin-bottom="0">
<div><item class="collapsed" data-expected-margin-bottom="0">
<div><item class="collapsed" data-expected-margin-bottom="0">
<div><item class="collapsed" data-expected-margin-bottom="0"></item></div>
<div><item class="collapsed" data-expected-margin-bottom="0"></item></div>
</item></div>
</item></div>
<div><item class="collapsed" data-expected-margin-bottom="0"></item></div>
</item>
margin-bottom expected "0" but got "10"
FAIL item 4 assert_equals:
<item class="collapsed" data-expected-margin-bottom="0">
<div><item class="collapsed" data-expected-margin-bottom="0">
<div><item class="collapsed" data-expected-margin-bottom="0"></item></div>
<div><item class="collapsed" data-expected-margin-bottom="0"></item></div>
</item></div>
</item>
margin-bottom expected "0" but got "10"
FAIL item 5 assert_equals:
<item class="collapsed" data-expected-margin-bottom="0">
<div><item class="collapsed" data-expected-margin-bottom="0"></item></div>
<div><item class="collapsed" data-expected-margin-bottom="0"></item></div>
</item>
margin-bottom expected "0" but got "10"
FAIL item 6 assert_equals:
<item class="collapsed" data-expected-margin-bottom="0"></item>
margin-bottom expected "0" but got "10"
FAIL item 7 assert_equals:
<item class="collapsed" data-expected-margin-bottom="0"></item>
margin-bottom expected "0" but got "10"
FAIL item 8 assert_equals:
<item class="collapsed" data-expected-margin-bottom="0"></item>
margin-bottom expected "0" but got "10"
FAIL item 9 assert_equals:
<item class="collapsed" data-expected-margin-bottom="0">
<div><item class="collapsed" data-expected-margin-bottom="0">
<div><item class="collapsed" data-expected-margin-bottom="0"></item></div>
<div><item class="collapsed" data-expected-margin-bottom="0">
<div><item class="collapsed" data-expected-margin-bottom="0"></item></div>
</item></div>
<div><item class="collapsed" data-expected-margin-bottom="0"></item></div>
</item></div>
<div><item class="collapsed" data-expected-margin-bottom="0">
<div><item class="collapsed" data-expected-margin-bottom="0">
<div><item class="collapsed" data-expected-margin-bottom="0"></item></div>
</item></div>
</item></div>
</item>
margin-bottom expected "0" but got "10"
FAIL item 10 assert_equals:
<item class="collapsed" data-expected-margin-bottom="0">
<div><item class="collapsed" data-expected-margin-bottom="0"></item></div>
<div><item class="collapsed" data-expected-margin-bottom="0">
<div><item class="collapsed" data-expected-margin-bottom="0"></item></div>
</item></div>
<div><item class="collapsed" data-expected-margin-bottom="0"></item></div>
</item>
margin-bottom expected "0" but got "10"
FAIL item 11 assert_equals:
<item class="collapsed" data-expected-margin-bottom="0"></item>
margin-bottom expected "0" but got "10"
FAIL item 12 assert_equals:
<item class="collapsed" data-expected-margin-bottom="0">
<div><item class="collapsed" data-expected-margin-bottom="0"></item></div>
</item>
margin-bottom expected "0" but got "10"
FAIL item 13 assert_equals:
<item class="collapsed" data-expected-margin-bottom="0"></item>
margin-bottom expected "0" but got "10"
FAIL item 14 assert_equals:
<item class="collapsed" data-expected-margin-bottom="0"></item>
margin-bottom expected "0" but got "10"
FAIL item 15 assert_equals:
<item class="collapsed" data-expected-margin-bottom="0">
<div><item class="collapsed" data-expected-margin-bottom="0">
<div><item class="collapsed" data-expected-margin-bottom="0"></item></div>
</item></div>
</item>
margin-bottom expected "0" but got "10"
FAIL item 16 assert_equals:
<item class="collapsed" data-expected-margin-bottom="0">
<div><item class="collapsed" data-expected-margin-bottom="0"></item></div>
</item>
margin-bottom expected "0" but got "10"
FAIL item 17 assert_equals:
<item class="collapsed" data-expected-margin-bottom="0"></item>
margin-bottom expected "0" but got "10"
FAIL item 18 assert_equals:
<item class="collapsed" data-expected-margin-bottom="0"></item>
margin-bottom expected "0" but got "10"
FAIL item 2 assert_equals: \n<item data-expected-margin-bottom="0"></item>\nmargin-bottom expected "0" but got "10"
FAIL item 3 assert_equals: \n<item class="collapsed" data-expected-margin-bottom="0">\n <div><item class="collapsed" data-expected-margin-bottom="0">\n <div><item class="collapsed" data-expected-margin-bottom="0">\n <div><item class="collapsed" data-expected-margin-bottom="0"></item></div>\n <div><item class="collapsed" data-expected-margin-bottom="0"></item></div>\n </item></div>\n </item></div>\n <div><item class="collapsed" data-expected-margin-bottom="0"></item></div>\n </item>\nmargin-bottom expected "0" but got "10"
FAIL item 4 assert_equals: \n<item class="collapsed" data-expected-margin-bottom="0">\n <div><item class="collapsed" data-expected-margin-bottom="0">\n <div><item class="collapsed" data-expected-margin-bottom="0"></item></div>\n <div><item class="collapsed" data-expected-margin-bottom="0"></item></div>\n </item></div>\n </item>\nmargin-bottom expected "0" but got "10"
FAIL item 5 assert_equals: \n<item class="collapsed" data-expected-margin-bottom="0">\n <div><item class="collapsed" data-expected-margin-bottom="0"></item></div>\n <div><item class="collapsed" data-expected-margin-bottom="0"></item></div>\n </item>\nmargin-bottom expected "0" but got "10"
FAIL item 6 assert_equals: \n<item class="collapsed" data-expected-margin-bottom="0"></item>\nmargin-bottom expected "0" but got "10"
FAIL item 7 assert_equals: \n<item class="collapsed" data-expected-margin-bottom="0"></item>\nmargin-bottom expected "0" but got "10"
FAIL item 8 assert_equals: \n<item class="collapsed" data-expected-margin-bottom="0"></item>\nmargin-bottom expected "0" but got "10"
FAIL item 9 assert_equals: \n<item class="collapsed" data-expected-margin-bottom="0">\n <div><item class="collapsed" data-expected-margin-bottom="0">\n <div><item class="collapsed" data-expected-margin-bottom="0"></item></div>\n <div><item class="collapsed" data-expected-margin-bottom="0">\n <div><item class="collapsed" data-expected-margin-bottom="0"></item></div>\n </item></div>\n <div><item class="collapsed" data-expected-margin-bottom="0"></item></div>\n </item></div>\n <div><item class="collapsed" data-expected-margin-bottom="0">\n <div><item class="collapsed" data-expected-margin-bottom="0">\n <div><item class="collapsed" data-expected-margin-bottom="0"></item></div>\n </item></div>\n </item></div>\n </item>\nmargin-bottom expected "0" but got "10"
FAIL item 10 assert_equals: \n<item class="collapsed" data-expected-margin-bottom="0">\n <div><item class="collapsed" data-expected-margin-bottom="0"></item></div>\n <div><item class="collapsed" data-expected-margin-bottom="0">\n <div><item class="collapsed" data-expected-margin-bottom="0"></item></div>\n </item></div>\n <div><item class="collapsed" data-expected-margin-bottom="0"></item></div>\n </item>\nmargin-bottom expected "0" but got "10"
FAIL item 11 assert_equals: \n<item class="collapsed" data-expected-margin-bottom="0"></item>\nmargin-bottom expected "0" but got "10"
FAIL item 12 assert_equals: \n<item class="collapsed" data-expected-margin-bottom="0">\n <div><item class="collapsed" data-expected-margin-bottom="0"></item></div>\n </item>\nmargin-bottom expected "0" but got "10"
FAIL item 13 assert_equals: \n<item class="collapsed" data-expected-margin-bottom="0"></item>\nmargin-bottom expected "0" but got "10"
FAIL item 14 assert_equals: \n<item class="collapsed" data-expected-margin-bottom="0"></item>\nmargin-bottom expected "0" but got "10"
FAIL item 15 assert_equals: \n<item class="collapsed" data-expected-margin-bottom="0">\n <div><item class="collapsed" data-expected-margin-bottom="0">\n <div><item class="collapsed" data-expected-margin-bottom="0"></item></div>\n </item></div>\n </item>\nmargin-bottom expected "0" but got "10"
FAIL item 16 assert_equals: \n<item class="collapsed" data-expected-margin-bottom="0">\n <div><item class="collapsed" data-expected-margin-bottom="0"></item></div>\n </item>\nmargin-bottom expected "0" but got "10"
FAIL item 17 assert_equals: \n<item class="collapsed" data-expected-margin-bottom="0"></item>\nmargin-bottom expected "0" but got "10"
FAIL item 18 assert_equals: \n<item class="collapsed" data-expected-margin-bottom="0"></item>\nmargin-bottom expected "0" but got "10"
Harness: the test ran to completion.

Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
This is a testharness.js-based test.
FAIL item 1 assert_equals:
<item data-expected-margin-top="0" class="collapsed">
<item data-expected-margin-top="0" class="collapsed"></item>
</item>
margin-top expected "0" but got "50"
FAIL item 2 assert_equals:
<item data-expected-margin-top="0" class="collapsed"></item>
margin-top expected "0" but got "50"
FAIL item 3 assert_equals:
<item class="with-border-and-margin" data-expected-margin-top="0">
<item class="with-border-and-margin" data-expected-margin-top="30"></item>
</item>
margin-top expected "0" but got "30"
FAIL item 4 assert_equals:
<item class="with-border-and-margin" data-expected-margin-top="30"></item>
margin-top expected "0" but got "30"
FAIL item 1 assert_equals: \n<item data-expected-margin-top="0" class="collapsed">\n <item data-expected-margin-top="0" class="collapsed"></item>\n </item>\nmargin-top expected "0" but got "50"
FAIL item 2 assert_equals: \n<item data-expected-margin-top="0" class="collapsed"></item>\nmargin-top expected "0" but got "50"
FAIL item 3 assert_equals: \n<item class="with-border-and-margin" data-expected-margin-top="0">\n <item class="with-border-and-margin" data-expected-margin-top="30"></item>\n </item>\nmargin-top expected "0" but got "30"
FAIL item 4 assert_equals: \n<item class="with-border-and-margin" data-expected-margin-top="30"></item>\nmargin-top expected "0" but got "30"
Harness: the test ran to completion.

Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
This is a testharness.js-based test.
FAIL item 1 assert_equals:
<item style="margin-top: 30px;" data-expected-margin-top="0"></item>
margin-top expected "0" but got "30"
FAIL item 1 assert_equals: \n<item style="margin-top: 30px;" data-expected-margin-top="0"></item>\nmargin-top expected "0" but got "30"
Harness: the test ran to completion.

0 comments on commit 14454ae

Please sign in to comment.