WebCore/manual-tests/inspector/profiler-test-many-calls-in-the-same-scope.html
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 17 Sep 2010 09:02:29 +0300
changeset 0 4f2f89ce4247
permissions -rw-r--r--
Revision: 201037

<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>