mirror of
https://github.com/classilla/tenfourfox.git
synced 2026-03-14 12:16:32 +00:00
25 lines
661 B
HTML
25 lines
661 B
HTML
<!DOCTYPE html>
|
|
<title>insertRow(): INDEX_SIZE_ERR</title>
|
|
<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
|
|
<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-table-insertrow">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<div id="log"></div>
|
|
<div id="test">
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
</table>
|
|
</div>
|
|
<script>
|
|
test(function() {
|
|
var table = document.getElementById("test").getElementsByTagName("table")[0];
|
|
assert_throws("INDEX_SIZE_ERR", function() {
|
|
table.insertRow(-2);
|
|
})
|
|
assert_throws("INDEX_SIZE_ERR", function() {
|
|
table.insertRow(2);
|
|
})
|
|
});
|
|
</script>
|