diff options
Diffstat (limited to 'WebCore/manual-tests/inspector/profiler-test-many-calls-in-the-same-scope.html')
-rw-r--r-- | WebCore/manual-tests/inspector/profiler-test-many-calls-in-the-same-scope.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/WebCore/manual-tests/inspector/profiler-test-many-calls-in-the-same-scope.html b/WebCore/manual-tests/inspector/profiler-test-many-calls-in-the-same-scope.html new file mode 100644 index 0000000..da5be42 --- /dev/null +++ b/WebCore/manual-tests/inspector/profiler-test-many-calls-in-the-same-scope.html @@ -0,0 +1,42 @@ +<html> +<head> +<script src="resources/profiler-test-JS-resources.js"></script> +<script> +console.profile("Many Calls In The Same Scope"); +function startTest() +{ + insertNewText(); + insertGivenText("This was a triumph."); + arrayOperatorFunction(7); + intermediaryFunction(); + anonymousFunction(); + end() + endT(); + endT(); + endTest(); +} + +function end() +{ + var x = 0; +} + +function endT() +{ + var y = 1; +} + +</script> +</head> + +<body onload="startTest()"> +This page's JavaScript has many function calls in the same scope. +<br> +<br> +To use this test, load it in the browser then load the WebInspector and look at +the profile. In the profile many functions should be the children of startTest. +Use the sorting capabilites to make sure the similarly named functions are sorted +correctly. +<div id="output"></div> +</body> +</html>
\ No newline at end of file |