tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

rowIndex.html (2882B)


      1 <!DOCTYPE html>
      2 <title>HTMLTableRowElement.rowIndex</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <div id="log"></div>
      6 <script>
      7 test(function() {
      8  var row = document.createElement("table")
      9                    .appendChild(document.createElement("div"))
     10                    .appendChild(document.createElement("tr"));
     11  assert_equals(row.rowIndex, -1);
     12 });
     13 test(function() {
     14  var row = document.createElement("table")
     15                    .appendChild(document.createElement("thead"))
     16                    .appendChild(document.createElement("tr"));
     17  assert_equals(row.rowIndex, 0);
     18 });
     19 test(function() {
     20  var row = document.createElement("table")
     21                    .appendChild(document.createElement("tbody"))
     22                    .appendChild(document.createElement("tr"));
     23  assert_equals(row.rowIndex, 0);
     24 });
     25 test(function() {
     26  var row = document.createElement("table")
     27                    .appendChild(document.createElement("tfoot"))
     28                    .appendChild(document.createElement("tr"));
     29  assert_equals(row.rowIndex, 0);
     30 });
     31 test(function() {
     32  var row = document.createElement("table")
     33                    .appendChild(document.createElement("tr"));
     34  assert_equals(row.rowIndex, 0);
     35 });
     36 test(function() {
     37  var row = document.createElementNS("", "table")
     38                    .appendChild(document.createElement("thead"))
     39                    .appendChild(document.createElement("tr"));
     40  assert_equals(row.rowIndex, -1);
     41 });
     42 test(function() {
     43  var row = document.createElementNS("", "table")
     44                    .appendChild(document.createElement("tbody"))
     45                    .appendChild(document.createElement("tr"));
     46  assert_equals(row.rowIndex, -1);
     47 });
     48 test(function() {
     49  var row = document.createElementNS("", "table")
     50                    .appendChild(document.createElement("tfoot"))
     51                    .appendChild(document.createElement("tr"));
     52  assert_equals(row.rowIndex, -1);
     53 });
     54 test(function() {
     55  var row = document.createElementNS("", "table")
     56                    .appendChild(document.createElement("tr"));
     57  assert_equals(row.rowIndex, -1);
     58 });
     59 test(function() {
     60  var row = document.createElement("table")
     61                    .appendChild(document.createElementNS("", "thead"))
     62                    .appendChild(document.createElement("tr"));
     63  assert_equals(row.rowIndex, -1);
     64 });
     65 test(function() {
     66  var row = document.createElement("table")
     67                    .appendChild(document.createElementNS("", "tbody"))
     68                    .appendChild(document.createElement("tr"));
     69  assert_equals(row.rowIndex, -1);
     70 });
     71 test(function() {
     72  var row = document.createElement("table")
     73                    .appendChild(document.createElementNS("", "tfoot"))
     74                    .appendChild(document.createElement("tr"));
     75  assert_equals(row.rowIndex, -1);
     76 });
     77 </script>