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 apply() method");
13 var myObject
= new fakeObject(1, 2);
17 function fakeObject (x
, y
)
20 fakeInteriorFunction
.apply(this, arguments
);
23 function fakeInteriorFunction(x
, y
)
31 <body onload=
"startTest()">
32 This page's JavaScript has a call to apply() in it.
35 To run this test manually, load it in the browser then load the WebInspector and look at
36 the profile. In the profile there should be a call to fakeInteriorFunction() and
38 <div id=
"output"></div>