blob: c6ab92be3590c708b2ec670bc860206c1e478a88 [file] [log] [blame]
<html>
<head>
<script src="resources/profiler-test-JS-resources.js"></script>
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.setJavaScriptProfilingEnabled(true);
}
function startTest()
{
console.profile("Call NodeList as function");
var brs = document.getElementsByTagName("br");
var br0 = brs(0);
endTest();
}
</script>
</head>
<body onload="startTest()">
This page calls a NodeList as a function (e.g., <code>list(0)</code>).
<br>
<br>
To run this test manually, load it in a debug build in the browser. You should see a <code>(NodeList object)</code> entry in the profile.
<div id="output"></div>
</body>
</html>