Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / ManualTests / inspector / profiler-test-many-calls-in-the-same-scope.html
blobda5be42a83a95f780a4617f93f731f247fbc11dd
1 <html>
2 <head>
3 <script src="resources/profiler-test-JS-resources.js"></script>
4 <script>
5 console.profile("Many Calls In The Same Scope");
6 function startTest()
8 insertNewText();
9 insertGivenText("This was a triumph.");
10 arrayOperatorFunction(7);
11 intermediaryFunction();
12 anonymousFunction();
13 end()
14 endT();
15 endT();
16 endTest();
19 function end()
21 var x = 0;
24 function endT()
26 var y = 1;
29 </script>
30 </head>
32 <body onload="startTest()">
33 This page's JavaScript has many function calls in the same scope.
34 <br>
35 <br>
36 To use this test, load it in the browser then load the WebInspector and look at
37 the profile. In the profile many functions should be the children of startTest.
38 Use the sorting capabilites to make sure the similarly named functions are sorted
39 correctly.
40 <div id="output"></div>
41 </body>
42 </html>