Home | History | Annotate | Download | only in script-tests
      1 description('This tests that items in a NodeList can be retrieved directly by calling as a function with an integral index parameter, starting from 0.<br>It means NodeList[0] and NodeList(0) both work.');
      2 
      3 var nodeList = document.getElementsByTagName('div');
      4 shouldBe("nodeList[0]", "nodeList(0)");
      5 shouldBe("!nodeList[nodeList.length]", "!nodeList(nodeList.length)");
      6 
      7 var successfullyParsed = true;
      8 
      9