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 the call() method");
14 var myObject
= new fakeObject(1, 2);
19 function fakeObject (x
, y
)
22 fakeInteriorFunction
.call(this, y
);
25 function fakeInteriorFunction(y
)
32 <body onload=
"startTest()">
33 This page's JavaScript has a call to call() in it.
36 To run this test manually, load it in the browser then load the WebInspector and look at
37 the profile. In the profile there should be a call to fakeObject() with call() as
38 its child and a fakeInteriorFunction() as call()'s child.
39 <div id=
"output"></div>