3 <script src=
"resources/profiler-test-JS-resources.js"></script>
5 if (window
.layoutTestController
) {
6 layoutTestController
.dumpAsText();
7 layoutTestController
.setJavaScriptProfilingEnabled(true);
12 console
.profile("Call NodeList as function");
14 var brs
= document
.getElementsByTagName("br");
23 <body onload=
"startTest()">
24 This page calls a NodeList as a function (e.g.,
<code>list(
0)
</code>).
27 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.
28 <div id=
"output"></div>