Commit a1bab9cc authored by Yoshifumi Inoue's avatar Yoshifumi Inoue Committed by Commit Bot

Utilize w3c test harness in fast/dom/row-inner-text.html

This patch changes "row-inner-text.html" to utilize w3c test harness for ease of
maintenance.

This patch is a preparation of the patch[1].

[1] http://crrev.com/c/1114673 Make Element#innerText specification compliant

Bug: 859410
Change-Id: I2efbd96aca89a2c4e5b63d62dcc3dc2f2968d8e0
Reviewed-on: https://chromium-review.googlesource.com/1122138Reviewed-by: default avatarXiaocheng Hu <xiaochengh@chromium.org>
Reviewed-by: default avatarYoichi Osato <yoichio@chromium.org>
Commit-Queue: Yoshifumi Inoue <yosin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#572085}
parent 665298df
<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<TABLE ID="tbl" CELLSPACING="1" CELLPADDING="1" BORDER="1">
<TR id="r">
<TH>(1,1)
......@@ -13,6 +16,8 @@
</TR>
</TABLE>
<script>
var text = document.getElementById("r").innerText.replace(/\t/g, "[tab]");
document.write("<pre>xxx" + text + "xxx</pre>");
test(() => {
assert_equals(document.getElementById('r').innerText,
'(1,1)\t(1,2)\t(1,3)\t(1,4)\t(1,5)');
}, 'TR.innerText');
</script>
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 784x579
LayoutTable {TABLE} at (0,0) size 183x26 [border: (1px outset #808080)]
LayoutTableSection {TBODY} at (1,1) size 181x24
LayoutTableRow {TR} at (0,1) size 181x22
LayoutTableCell {TH} at (1,1) size 35x22 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
LayoutText {#text} at (2,2) size 31x18
text run at (2,2) width 31: "(1,1)"
LayoutTableCell {TH} at (37,1) size 35x22 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
LayoutText {#text} at (2,2) size 31x18
text run at (2,2) width 31: "(1,2)"
LayoutTableCell {TH} at (73,1) size 35x22 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
LayoutText {#text} at (2,2) size 31x18
text run at (2,2) width 31: "(1,3)"
LayoutTableCell {TH} at (109,1) size 35x22 [border: (1px inset #808080)] [r=0 c=3 rs=1 cs=1]
LayoutText {#text} at (2,2) size 31x18
text run at (2,2) width 31: "(1,4)"
LayoutTableCell {TH} at (145,1) size 35x22 [border: (1px inset #808080)] [r=0 c=4 rs=1 cs=1]
LayoutText {#text} at (2,2) size 31x18
text run at (2,2) width 31: "(1,5)"
LayoutBlockFlow {PRE} at (0,39) size 784x15
LayoutText {#text} at (0,0) size 398x15
text run at (0,0) width 398: "xxx(1,1)[tab](1,2)[tab](1,3)[tab](1,4)[tab](1,5)xxx"
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 784x579
LayoutTable {TABLE} at (0,0) size 178x28 [border: (1px outset #808080)]
LayoutTableSection {TBODY} at (1,1) size 176x26
LayoutTableRow {TR} at (0,1) size 176x24
LayoutTableCell {TH} at (1,1) size 34x24 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
LayoutText {#text} at (2,2) size 30x19
text run at (2,2) width 30: "(1,1)"
LayoutTableCell {TH} at (36,1) size 34x24 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
LayoutText {#text} at (2,2) size 30x19
text run at (2,2) width 30: "(1,2)"
LayoutTableCell {TH} at (71,1) size 34x24 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1]
LayoutText {#text} at (2,2) size 30x19
text run at (2,2) width 30: "(1,3)"
LayoutTableCell {TH} at (106,1) size 34x24 [border: (1px inset #808080)] [r=0 c=3 rs=1 cs=1]
LayoutText {#text} at (2,2) size 30x19
text run at (2,2) width 30: "(1,4)"
LayoutTableCell {TH} at (141,1) size 34x24 [border: (1px inset #808080)] [r=0 c=4 rs=1 cs=1]
LayoutText {#text} at (2,2) size 30x19
text run at (2,2) width 30: "(1,5)"
LayoutBlockFlow {PRE} at (0,41) size 784x16
LayoutText {#text} at (0,0) size 408x16
text run at (0,0) width 408: "xxx(1,1)[tab](1,2)[tab](1,3)[tab](1,4)[tab](1,5)xxx"
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