2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / fast / profiler / call-nodelist-as-function.html
blobc6ab92be3590c708b2ec670bc860206c1e478a88
1 <html>
2 <head>
3 <script src="resources/profiler-test-JS-resources.js"></script>
4 <script>
5 if (window.layoutTestController) {
6 layoutTestController.dumpAsText();
7 layoutTestController.setJavaScriptProfilingEnabled(true);
10 function startTest()
12 console.profile("Call NodeList as function");
14 var brs = document.getElementsByTagName("br");
15 var br0 = brs(0);
17 endTest();
20 </script>
21 </head>
23 <body onload="startTest()">
24 This page calls a NodeList as a function (e.g., <code>list(0)</code>).
25 <br>
26 <br>
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>
29 </body>
30 </html>