3 <script src=
"resources/profiler-test-JS-resources.js"></script>
5 if (window
.layoutTestController
) {
6 layoutTestController
.dumpAsText();
7 layoutTestController
.setJavaScriptProfilingEnabled(true);
12 console
.profile("Using a constructor.");
14 var myObject
= new fakeObject(1, 2);
19 function fakeObject (x
, y
)
21 var myArray
= new Array()
27 <body onload=
"startTest()">
28 This page's JavaScript has a call to new() in it.
31 To run this test manually, load it in the browser then load the WebInspector and look at
32 the profile. In the profile there should be a call to fakeObject() and Array()
34 <div id=
"output"></div>