Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / ManualTests / inspector / profiler-test-call.html
blob572a2e91e38e1d179491f09467b7cd7eb2152916
1 <html>
2 <head>
3 <script src="resources/profiler-test-JS-resources.js"></script>
4 <script>
5 console.profile("Using the call() method");
6 function startTest()
8 var myObject = new fakeObject(1, 2);
9 endTest();
12 function fakeObject (x, y)
14 this.x = x;
15 fakeInteriorFunction.call(this, y);
18 function fakeInteriorFunction(y)
20 this.y = y;
23 </script>
24 </head>
26 <body onload="startTest()">
27 This page's JavaScript has a call to call() in it.
28 <br>
29 <br>
30 To use this test, load it in the browser then load the WebInspector and look at
31 the profile. In the profile there should be a call to fakeObject() with call() as
32 its child and a fakeInteriorFunction() as call()'s child.
33 <div id="output"></div>
34 </body>
35 </html>