mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
|
|
@ -0,0 +1,54 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>HTMLTableRowElement#deleteCell</title>
|
||||
<link rel="author" title="Intel" href="http://www.intel.com/">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<table>
|
||||
<tr id="testTr">
|
||||
<td>ABCDE</td>
|
||||
<td>12345</td>
|
||||
<td>ABC12</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<script>
|
||||
|
||||
var tr = document.getElementById("testTr");
|
||||
|
||||
test(function () {
|
||||
tr.deleteCell(0);
|
||||
assert_equals(tr.cells[0].innerHTML, "12345");
|
||||
assert_equals(tr.cells.length, 2);
|
||||
}, "HTMLTableRowElement deleteCell(0)");
|
||||
|
||||
test(function () {
|
||||
tr.deleteCell(-1);
|
||||
assert_equals(tr.cells[tr.cells.length - 1].innerHTML, "12345");
|
||||
assert_equals(tr.cells.length, 1);
|
||||
}, "HTMLTableRowElement deleteCell(-1)");
|
||||
|
||||
test(function () {
|
||||
assert_throws("IndexSizeError", function () {
|
||||
tr.deleteCell(-2);
|
||||
});
|
||||
}, "HTMLTableRowElement deleteCell(-2)");
|
||||
|
||||
test(function () {
|
||||
assert_throws("IndexSizeError", function () {
|
||||
tr.deleteCell(tr.cells.length);
|
||||
});
|
||||
}, "HTMLTableRowElement deleteCell(cells.length)");
|
||||
|
||||
test(function () {
|
||||
assert_equals(tr.cells.length, 1);
|
||||
tr.deleteCell(-1);
|
||||
assert_equals(tr.cells.length, 0);
|
||||
tr.deleteCell(-1);
|
||||
assert_equals(tr.cells.length, 0);
|
||||
}, "HTMLTableRowElement deleteCell(-1) with no cells");
|
||||
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue