Bug 1794265 - Add a test for this bug. r=Jamie

Differential Revision: https://phabricator.services.mozilla.com/D159035
This commit is contained in:
Emilio Cobos Álvarez 2022-10-12 05:12:08 +00:00
parent a6888b17a9
commit 2a3fbb6c87

View File

@ -265,6 +265,10 @@
[2, 7, `\n${kEmbedChar}b c d`, 1, 8,
[ [ 2, "inlineInput4", kOkIfCache, kOkIfCache, kOkIfCache ] ] ] ]);
testTextAtOffset([ "contentEditableTable" ], BOUNDARY_LINE_START, [
[0, 0, `${kEmbedChar}\n`, 0, 2],
]);
SimpleTest.finish();
}
@ -388,5 +392,29 @@ two words
<div id="inlineInput2">a<br><input value="b"> c d</div>
<div id="inlineInput3">a<br> b<input value=""> c d</div>
<div id="inlineInput4">a<br><input value="">b c d</div>
<div id="contentEditableTable" contenteditable>
<table style="display: inline-table">
<thead>
<th>Foo</th>
</thead>
<tbody>
<tr>
<td>Bar</td>
</tr>
</tbody>
</table>
<br>
<table style="display: inline-table">
<thead>
<th>Foo</th>
</thead>
<tbody>
<tr>
<td>Bar</td>
</tr>
</tbody>
</table>
<br>
</div>
</body>
</html>