https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 2e0e160c38e7c3c63aa2a692ec4f7443a68d2916 authored by Wanming Lin on 17 March 2018, 07:05:08 UTC
Revert "rename generic-sensor directory as sensors"
Tip revision: 2e0e160
insertRow-method-01.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>
back to top