Commit 5b0d1ee6 authored by kmccullough@apple.com's avatar kmccullough@apple.com

2008-10-23 Kevin McCullough <kmccullough@apple.com>

        Reviewed by Tim Hatcher.

        https://bugs.webkit.org/show_bug.cgi?id=21817
        Bug 21817: Manual profiler tests should be made into layout tests

        - Added the expected results for the profiler tests and removed the
        tests from the skipped list.
        - Also removed two tests that were accidentally checked in previously.
        - Also changed the text on the tests to be more apparent how to run them
        manually.

        * fast/profiler/anonymous-event-handler-expected.txt: Added.
        * fast/profiler/anonymous-event-handler.html:
        * fast/profiler/anonymous-function-called-from-different-contexts-expected.txt: Added.
        * fast/profiler/anonymous-function-called-from-different-contexts.html:
        * fast/profiler/anonymous-function-calls-built-in-functions-expected.txt: Added.
        * fast/profiler/anonymous-function-calls-built-in-functions.html:
        * fast/profiler/anonymous-function-calls-eval-expected.txt: Added.
        * fast/profiler/anonymous-function-calls-eval.html:
        * fast/profiler/apply-expected.txt: Added.
        * fast/profiler/apply.html:
        * fast/profiler/built-in-function-calls-anonymous-expected.txt: Added.
        * fast/profiler/built-in-function-calls-anonymous.html:
        * fast/profiler/built-in-function-calls-user-defined-function-expected.txt: Added.
        * fast/profiler/built-in-function-calls-user-defined-function.html:
        * fast/profiler/call-expected.txt: Added.
        * fast/profiler/call-nodelist-as-function-expected.txt: Added.
        * fast/profiler/call-nodelist-as-function.html:
        * fast/profiler/call.html: Added.
        * fast/profiler/calling-the-function-that-started-the-profiler-from-another-scope-expected.txt: Added.
        * fast/profiler/calling-the-function-that-started-the-profiler-from-another-scope.html:
        * fast/profiler/compare-multiple-profiles-expected.txt: Added.
        * fast/profiler/compare-multiple-profiles.html:
        * fast/profiler/constructor-expected.txt: Added.
        * fast/profiler/constructor.html:
        * fast/profiler/dead-time-expected.txt: Added.
        * fast/profiler/dead-time.html:
        * fast/profiler/deep-recursion.html: Removed.
        * fast/profiler/document-dot-write-expected.txt: Added.
        * fast/profiler/document-dot-write.html:
        * fast/profiler/event-handler-expected.txt: Added.
        * fast/profiler/event-handler.html:
        * fast/profiler/execution-context-and-eval-on-same-line-expected.txt: Added.
        * fast/profiler/execution-context-and-eval-on-same-line.html:
        * fast/profiler/heavy-view-expected.txt: Added.
        * fast/profiler/heavy-view.html:
        * fast/profiler/inline-event-handler-expected.txt: Added.
        * fast/profiler/inline-event-handler.html:
        * fast/profiler/many-calls-in-the-same-scope-expected.txt: Added.
        * fast/profiler/many-calls-in-the-same-scope.html: Added.
        * fast/profiler/multiple-and-different-scoped-anonymous-function-calls-expected.txt: Added.
        * fast/profiler/multiple-and-different-scoped-anonymous-function-calls.html:
        * fast/profiler/multiple-and-different-scoped-function-calls-expected.txt: Added.
        * fast/profiler/multiple-and-different-scoped-function-calls.html:
        * fast/profiler/multiple-frames-expected.txt: Added.
        * fast/profiler/multiple-frames.html:
        * fast/profiler/multiple-windows.html: Removed.
        * fast/profiler/nested-anonymous-functon-expected.txt: Added.
        * fast/profiler/nested-anonymous-functon.html:
        * fast/profiler/nested-start-and-stop-profiler-expected.txt: Added.
        * fast/profiler/nested-start-and-stop-profiler.html:
        * fast/profiler/no-execution-context-expected.txt: Added.
        * fast/profiler/no-execution-context.html:
        * fast/profiler/one-execution-context-expected.txt: Added.
        * fast/profiler/one-execution-context.html:
        * fast/profiler/profile-calls-in-included-file-expected.txt: Added.
        * fast/profiler/profile-calls-in-included-file.html:
        * fast/profiler/profiling-from-a-nested-location-but-stop-profiling-outside-the-nesting-expected.txt: Added.
        * fast/profiler/profiling-from-a-nested-location-but-stop-profiling-outside-the-nesting.html:
        * fast/profiler/profiling-from-a-nested-location-expected.txt: Added.
        * fast/profiler/profiling-from-a-nested-location.html:
        * fast/profiler/simple-event-call-expected.txt: Added.
        * fast/profiler/simple-event-call.html:
        * fast/profiler/simple-no-level-change-expected.txt: Added.
        * fast/profiler/simple-no-level-change.html:
        * fast/profiler/start-and-stop-profiler-multiple-times-expected.txt: Added.
        * fast/profiler/start-and-stop-profiler-multiple-times.html:
        * fast/profiler/start-and-stop-profiling-in-the-same-function-expected.txt: Added.
        * fast/profiler/start-and-stop-profiling-in-the-same-function.html:
        * fast/profiler/start-but-dont-stop-profiling-expected.txt: Added.
        * fast/profiler/start-but-dont-stop-profiling.html:
        * fast/profiler/stop-profiling-after-setTimeout-expected.txt: Added.
        * fast/profiler/stop-profiling-after-setTimeout.html:
        * fast/profiler/stop-then-function-call-expected.txt: Added.
        * fast/profiler/stop-then-function-call.html:
        * fast/profiler/throw-exception-from-eval-expected.txt: Added.
        * fast/profiler/throw-exception-from-eval.html:
        * fast/profiler/two-execution-contexts-expected.txt: Added.
        * fast/profiler/two-execution-contexts.html:
        * fast/profiler/user-defined-function-calls-built-in-functions-expected.txt: Added.
        * fast/profiler/user-defined-function-calls-built-in-functions.html:
        * fast/profiler/window-dot-eval-expected.txt: Added.
        * fast/profiler/window-dot-eval.html:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@37829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 83d2e872
2008-10-23 Kevin McCullough <kmccullough@apple.com>
Reviewed by Tim Hatcher.
https://bugs.webkit.org/show_bug.cgi?id=21817
Bug 21817: Manual profiler tests should be made into layout tests
- Added the expected results for the profiler tests and removed the
tests from the skipped list.
- Also removed two tests that were accidentally checked in previously.
- Also changed the text on the tests to be more apparent how to run them
manually.
* fast/profiler/anonymous-event-handler-expected.txt: Added.
* fast/profiler/anonymous-event-handler.html:
* fast/profiler/anonymous-function-called-from-different-contexts-expected.txt: Added.
* fast/profiler/anonymous-function-called-from-different-contexts.html:
* fast/profiler/anonymous-function-calls-built-in-functions-expected.txt: Added.
* fast/profiler/anonymous-function-calls-built-in-functions.html:
* fast/profiler/anonymous-function-calls-eval-expected.txt: Added.
* fast/profiler/anonymous-function-calls-eval.html:
* fast/profiler/apply-expected.txt: Added.
* fast/profiler/apply.html:
* fast/profiler/built-in-function-calls-anonymous-expected.txt: Added.
* fast/profiler/built-in-function-calls-anonymous.html:
* fast/profiler/built-in-function-calls-user-defined-function-expected.txt: Added.
* fast/profiler/built-in-function-calls-user-defined-function.html:
* fast/profiler/call-expected.txt: Added.
* fast/profiler/call-nodelist-as-function-expected.txt: Added.
* fast/profiler/call-nodelist-as-function.html:
* fast/profiler/call.html: Added.
* fast/profiler/calling-the-function-that-started-the-profiler-from-another-scope-expected.txt: Added.
* fast/profiler/calling-the-function-that-started-the-profiler-from-another-scope.html:
* fast/profiler/compare-multiple-profiles-expected.txt: Added.
* fast/profiler/compare-multiple-profiles.html:
* fast/profiler/constructor-expected.txt: Added.
* fast/profiler/constructor.html:
* fast/profiler/dead-time-expected.txt: Added.
* fast/profiler/dead-time.html:
* fast/profiler/deep-recursion.html: Removed.
* fast/profiler/document-dot-write-expected.txt: Added.
* fast/profiler/document-dot-write.html:
* fast/profiler/event-handler-expected.txt: Added.
* fast/profiler/event-handler.html:
* fast/profiler/execution-context-and-eval-on-same-line-expected.txt: Added.
* fast/profiler/execution-context-and-eval-on-same-line.html:
* fast/profiler/heavy-view-expected.txt: Added.
* fast/profiler/heavy-view.html:
* fast/profiler/inline-event-handler-expected.txt: Added.
* fast/profiler/inline-event-handler.html:
* fast/profiler/many-calls-in-the-same-scope-expected.txt: Added.
* fast/profiler/many-calls-in-the-same-scope.html: Added.
* fast/profiler/multiple-and-different-scoped-anonymous-function-calls-expected.txt: Added.
* fast/profiler/multiple-and-different-scoped-anonymous-function-calls.html:
* fast/profiler/multiple-and-different-scoped-function-calls-expected.txt: Added.
* fast/profiler/multiple-and-different-scoped-function-calls.html:
* fast/profiler/multiple-frames-expected.txt: Added.
* fast/profiler/multiple-frames.html:
* fast/profiler/multiple-windows.html: Removed.
* fast/profiler/nested-anonymous-functon-expected.txt: Added.
* fast/profiler/nested-anonymous-functon.html:
* fast/profiler/nested-start-and-stop-profiler-expected.txt: Added.
* fast/profiler/nested-start-and-stop-profiler.html:
* fast/profiler/no-execution-context-expected.txt: Added.
* fast/profiler/no-execution-context.html:
* fast/profiler/one-execution-context-expected.txt: Added.
* fast/profiler/one-execution-context.html:
* fast/profiler/profile-calls-in-included-file-expected.txt: Added.
* fast/profiler/profile-calls-in-included-file.html:
* fast/profiler/profiling-from-a-nested-location-but-stop-profiling-outside-the-nesting-expected.txt: Added.
* fast/profiler/profiling-from-a-nested-location-but-stop-profiling-outside-the-nesting.html:
* fast/profiler/profiling-from-a-nested-location-expected.txt: Added.
* fast/profiler/profiling-from-a-nested-location.html:
* fast/profiler/simple-event-call-expected.txt: Added.
* fast/profiler/simple-event-call.html:
* fast/profiler/simple-no-level-change-expected.txt: Added.
* fast/profiler/simple-no-level-change.html:
* fast/profiler/start-and-stop-profiler-multiple-times-expected.txt: Added.
* fast/profiler/start-and-stop-profiler-multiple-times.html:
* fast/profiler/start-and-stop-profiling-in-the-same-function-expected.txt: Added.
* fast/profiler/start-and-stop-profiling-in-the-same-function.html:
* fast/profiler/start-but-dont-stop-profiling-expected.txt: Added.
* fast/profiler/start-but-dont-stop-profiling.html:
* fast/profiler/stop-profiling-after-setTimeout-expected.txt: Added.
* fast/profiler/stop-profiling-after-setTimeout.html:
* fast/profiler/stop-then-function-call-expected.txt: Added.
* fast/profiler/stop-then-function-call.html:
* fast/profiler/throw-exception-from-eval-expected.txt: Added.
* fast/profiler/throw-exception-from-eval.html:
* fast/profiler/two-execution-contexts-expected.txt: Added.
* fast/profiler/two-execution-contexts.html:
* fast/profiler/user-defined-function-calls-built-in-functions-expected.txt: Added.
* fast/profiler/user-defined-function-calls-built-in-functions.html:
* fast/profiler/window-dot-eval-expected.txt: Added.
* fast/profiler/window-dot-eval.html:
2008-10-23 Dan Bernstein <mitz@apple.com>
Reviewed by Sam Weinig with no hesitation.
......
CONSOLE MESSAGE: line 59: Anonymous event handler
CONSOLE MESSAGE: line 75: Thread_1 0
CONSOLE MESSAGE: line 75: (program) anonymous-event-handler.html 8
CONSOLE MESSAGE: line 75: (program) anonymous-event-handler.html 4
CONSOLE MESSAGE: line 75: onload anonymous-event-handler.html 23
CONSOLE MESSAGE: line 75: testStart anonymous-event-handler.html 10
CONSOLE MESSAGE: line 75: getElementById 0
CONSOLE MESSAGE: line 75: click 0
CONSOLE MESSAGE: line 75: (anonymous function) anonymous-event-handler.html 12
CONSOLE MESSAGE: line 75: insertNewText profiler-test-JS-resources.js 17
CONSOLE MESSAGE: line 75: createElement 0
CONSOLE MESSAGE: line 75: createTextNode 0
CONSOLE MESSAGE: line 75: appendChild 0
CONSOLE MESSAGE: line 75: getElementById 0
CONSOLE MESSAGE: line 75: endTest profiler-test-JS-resources.js 1
CONSOLE MESSAGE: line 75: (idle) 0
This page has an anonymous event handler.
To run this test manually, load it in the browser then load the WebInspector and look at the profile. It should show the anonymous function at the same level as the onload handler.
This is inserted Text
......@@ -24,7 +24,7 @@ function testStart()
This page has an anonymous event handler.
<br>
<br>
To use this test, load it in the browser then load the WebInspector and look at
To run this test manually, load it in the browser then load the WebInspector and look at
the profile. It should show the anonymous function at the same level as the onload
handler.
<input type="button" id="buttonWithAnAnonymousEventHandler" value="Button with an anonymous event handler">
......
CONSOLE MESSAGE: line 59: Same anonymous function called from different contexts
CONSOLE MESSAGE: line 75: Thread_1 0
CONSOLE MESSAGE: line 75: (program) anonymous-function-called-from-different-contexts.html 8
CONSOLE MESSAGE: line 75: (program) anonymous-function-called-from-different-contexts.html 4
CONSOLE MESSAGE: line 75: onload anonymous-function-called-from-different-contexts.html 19
CONSOLE MESSAGE: line 75: startTest anonymous-function-called-from-different-contexts.html 10
CONSOLE MESSAGE: line 75: (anonymous function) profiler-test-JS-resources.js 29
CONSOLE MESSAGE: line 75: insertNewText profiler-test-JS-resources.js 17
CONSOLE MESSAGE: line 75: createElement 0
CONSOLE MESSAGE: line 75: createTextNode 0
CONSOLE MESSAGE: line 75: appendChild 0
CONSOLE MESSAGE: line 75: getElementById 0
CONSOLE MESSAGE: line 75: eval 0
CONSOLE MESSAGE: line 75: (program) 1
CONSOLE MESSAGE: line 75: (anonymous function) profiler-test-JS-resources.js 29
CONSOLE MESSAGE: line 75: insertNewText profiler-test-JS-resources.js 17
CONSOLE MESSAGE: line 75: createElement 0
CONSOLE MESSAGE: line 75: createTextNode 0
CONSOLE MESSAGE: line 75: appendChild 0
CONSOLE MESSAGE: line 75: getElementById 0
CONSOLE MESSAGE: line 75: endTest profiler-test-JS-resources.js 1
CONSOLE MESSAGE: line 75: (idle) 0
This page's JavaScript calls an anonymous function from different contexts.
To run this test manually, load it in the browser then load the WebInspector and look at the profile. Beneath onload and startTest it should show three children, an anonymous function, script context, and the endTest call.
This is inserted Text
This is inserted Text
......@@ -20,7 +20,7 @@ function startTest()
This page's JavaScript calls an anonymous function from different contexts.
<br>
<br>
To use this test, load it in the browser then load the WebInspector and look at
To run this test manually, load it in the browser then load the WebInspector and look at
the profile. Beneath onload and startTest it should show three children, an
anonymous function, script context, and the endTest call.
<div id="output"></div>
......
CONSOLE MESSAGE: line 59: Anonymous function calls built-in functions
CONSOLE MESSAGE: line 75: Thread_1 0
CONSOLE MESSAGE: line 75: (program) anonymous-function-calls-built-in-functions.html 8
CONSOLE MESSAGE: line 75: (program) anonymous-function-calls-built-in-functions.html 4
CONSOLE MESSAGE: line 75: onload anonymous-function-calls-built-in-functions.html 17
CONSOLE MESSAGE: line 75: startTest anonymous-function-calls-built-in-functions.html 10
CONSOLE MESSAGE: line 75: (anonymous function) profiler-test-JS-resources.js 29
CONSOLE MESSAGE: line 75: insertNewText profiler-test-JS-resources.js 17
CONSOLE MESSAGE: line 75: createElement 0
CONSOLE MESSAGE: line 75: createTextNode 0
CONSOLE MESSAGE: line 75: appendChild 0
CONSOLE MESSAGE: line 75: getElementById 0
CONSOLE MESSAGE: line 75: endTest profiler-test-JS-resources.js 1
CONSOLE MESSAGE: line 75: (idle) 0
This page has an anonymous JavaScript function that calls built-in functions.
To run this test manually, load it in the browser then load the WebInspector and look at the profile. Beneath onload and startTest it should show three children, an anonymous function, script context, and the endTest call.
This is inserted Text
......@@ -18,7 +18,7 @@ function startTest()
This page has an anonymous JavaScript function that calls built-in functions.
<br>
<br>
To use this test, load it in the browser then load the WebInspector and look at
To run this test manually, load it in the browser then load the WebInspector and look at
the profile. Beneath onload and startTest it should show three children, an
anonymous function, script context, and the endTest call.
<div id="output"></div>
......
CONSOLE MESSAGE: line 59: Anonymous function calles eval
CONSOLE MESSAGE: line 75: Thread_1 0
CONSOLE MESSAGE: line 75: (program) anonymous-function-calls-eval.html 8
CONSOLE MESSAGE: line 75: (program) anonymous-function-calls-eval.html 4
CONSOLE MESSAGE: line 75: onload anonymous-function-calls-eval.html 21
CONSOLE MESSAGE: line 75: startTest anonymous-function-calls-eval.html 10
CONSOLE MESSAGE: line 75: (anonymous function) anonymous-function-calls-eval.html 11
CONSOLE MESSAGE: line 75: eval 0
CONSOLE MESSAGE: line 75: (program) 1
CONSOLE MESSAGE: line 75: insertNewText profiler-test-JS-resources.js 17
CONSOLE MESSAGE: line 75: createElement 0
CONSOLE MESSAGE: line 75: createTextNode 0
CONSOLE MESSAGE: line 75: appendChild 0
CONSOLE MESSAGE: line 75: getElementById 0
CONSOLE MESSAGE: line 75: endTest profiler-test-JS-resources.js 1
CONSOLE MESSAGE: line 75: (idle) 0
This page's JavaScript calls an anonymous function which calls eval().
To run this test manually, load it in the browser then load the WebInspector and look at the profile. Beneath onload and startTest it should show an (anonymous function) which has a (program) child.
This is inserted Text
......@@ -22,7 +22,7 @@ function startTest()
This page's JavaScript calls an anonymous function which calls eval().
<br>
<br>
To use this test, load it in the browser then load the WebInspector and look at
To run this test manually, load it in the browser then load the WebInspector and look at
the profile. Beneath onload and startTest it should show an (anonymous function)
which has a (program) child.
<div id="output"></div>
......
CONSOLE MESSAGE: line 59: Using the apply() method
CONSOLE MESSAGE: line 75: Thread_1 0
CONSOLE MESSAGE: line 75: (program) apply.html 8
CONSOLE MESSAGE: line 75: (program) apply.html 4
CONSOLE MESSAGE: line 75: onload apply.html 29
CONSOLE MESSAGE: line 75: startTest apply.html 10
CONSOLE MESSAGE: line 75: fakeObject apply.html 16
CONSOLE MESSAGE: line 75: apply 0
CONSOLE MESSAGE: line 75: fakeInteriorFunction apply.html 22
CONSOLE MESSAGE: line 75: endTest profiler-test-JS-resources.js 1
CONSOLE MESSAGE: line 75: (idle) 0
This page's JavaScript has a call to apply() in it.
To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile there should be a call to fakeInteriorFunction() and a call to apply().
......@@ -30,7 +30,7 @@ function fakeInteriorFunction(x, y)
This page's JavaScript has a call to apply() in it.
<br>
<br>
To use this test, load it in the browser then load the WebInspector and look at
To run this test manually, load it in the browser then load the WebInspector and look at
the profile. In the profile there should be a call to fakeInteriorFunction() and
a call to apply().
<div id="output"></div>
......
CONSOLE MESSAGE: line 59: Built-in function calls an anonymous function
CONSOLE MESSAGE: line 75: Thread_1 0
CONSOLE MESSAGE: line 75: (program) built-in-function-calls-anonymous.html 8
CONSOLE MESSAGE: line 75: (program) built-in-function-calls-anonymous.html 4
CONSOLE MESSAGE: line 75: onload built-in-function-calls-anonymous.html 22
CONSOLE MESSAGE: line 75: testStart built-in-function-calls-anonymous.html 10
CONSOLE MESSAGE: line 75: Array 0
CONSOLE MESSAGE: line 75: map 0
CONSOLE MESSAGE: line 75: (anonymous function) built-in-function-calls-anonymous.html 11
CONSOLE MESSAGE: line 75: arrayOperatorFunction profiler-test-JS-resources.js 25
CONSOLE MESSAGE: line 75: endTest profiler-test-JS-resources.js 1
CONSOLE MESSAGE: line 75: (idle) 0
This page uses a built-in function to call an anonymous function.
To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile map() should be the sibling of an (anonymous function) which has arrayOperatorFunction() as a child.
......@@ -23,7 +23,7 @@ function testStart()
This page uses a built-in function to call an anonymous function.
<br>
<br>
To use this test, load it in the browser then load the WebInspector and look at
To run this test manually, load it in the browser then load the WebInspector and look at
the profile. In the profile map() should be the sibling of an (anonymous function)
which has arrayOperatorFunction() as a child.
</body>
......
CONSOLE MESSAGE: line 59: Built-in function calls a user defined function
CONSOLE MESSAGE: line 75: Thread_1 0
CONSOLE MESSAGE: line 75: (program) built-in-function-calls-user-defined-function.html 8
CONSOLE MESSAGE: line 75: (program) built-in-function-calls-user-defined-function.html 4
CONSOLE MESSAGE: line 75: onload built-in-function-calls-user-defined-function.html 18
CONSOLE MESSAGE: line 75: testStart built-in-function-calls-user-defined-function.html 10
CONSOLE MESSAGE: line 75: Array 0
CONSOLE MESSAGE: line 75: map 0
CONSOLE MESSAGE: line 75: arrayOperatorFunction profiler-test-JS-resources.js 25
CONSOLE MESSAGE: line 75: endTest profiler-test-JS-resources.js 1
CONSOLE MESSAGE: line 75: (idle) 0
This page uses a built-in function to call a user defined function.
To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile map() should have arrayOperatorFunction() as a child.
......@@ -19,7 +19,7 @@ function testStart()
This page uses a built-in function to call a user defined function.
<br>
<br>
To use this test, load it in the browser then load the WebInspector and look at
To run this test manually, load it in the browser then load the WebInspector and look at
the profile. In the profile map() should have arrayOperatorFunction() as a child.
</body>
</html>
\ No newline at end of file
CONSOLE MESSAGE: line 59: Using the call() method
CONSOLE MESSAGE: line 75: Thread_1 0
CONSOLE MESSAGE: line 75: (program) call.html 8
CONSOLE MESSAGE: line 75: (program) call.html 4
CONSOLE MESSAGE: line 75: onload call.html 29
CONSOLE MESSAGE: line 75: startTest call.html 10
CONSOLE MESSAGE: line 75: fakeObject call.html 16
CONSOLE MESSAGE: line 75: call 0
CONSOLE MESSAGE: line 75: fakeInteriorFunction call.html 22
CONSOLE MESSAGE: line 75: endTest profiler-test-JS-resources.js 1
CONSOLE MESSAGE: line 75: (idle) 0
This page's JavaScript has a call to call() in it.
To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile there should be a call to fakeObject() with call() as its child and a fakeInteriorFunction() as call()'s child.
CONSOLE MESSAGE: line 59: Call NodeList as function
CONSOLE MESSAGE: line 75: Thread_1 0
CONSOLE MESSAGE: line 75: (program) call-nodelist-as-function.html 8
CONSOLE MESSAGE: line 75: (program) call-nodelist-as-function.html 4
CONSOLE MESSAGE: line 75: onload call-nodelist-as-function.html 20
CONSOLE MESSAGE: line 75: testStart call-nodelist-as-function.html 10
CONSOLE MESSAGE: line 75: getElementsByTagName 0
CONSOLE MESSAGE: line 75: (NodeList object) 0
CONSOLE MESSAGE: line 75: endTest profiler-test-JS-resources.js 1
CONSOLE MESSAGE: line 75: (idle) 0
This page calls a NodeList as a function (e.g., list(0)).
To run this test manually, load it in a debug build in the browser. You should see a (NodeList object) entry in the profile.
......@@ -21,7 +21,7 @@ function testStart()
This page calls a NodeList as a function (e.g., <code>list(0)</code>).
<br>
<br>
To use this test, load it in a debug build in the browser. You should see a <code>(NodeList object)</code> entry in the profile.
To run this test manually, load it in a debug build in the browser. You should see a <code>(NodeList object)</code> entry in the profile.
<div id="output"></div>
</body>
</html>
......@@ -5,28 +5,34 @@
if (window.layoutTestController)
layoutTestController.dumpAsText();
console.profile("Test deep recursion.");
console.profile("Using the call() method");
function startTest()
{
recurse (0);
var myObject = new fakeObject(1, 2);
endTest();
}
function recurse(depth) {
if (depth < 5000)
recurse(depth + 1);
function fakeObject (x, y)
{
this.x = x;
fakeInteriorFunction.call(this, y);
}
function fakeInteriorFunction(y)
{
this.y = y;
}
</script>
</head>
<body onload="startTest()">
This page's JavaScript has a very deep recursion.
This page's JavaScript has a call to call() in it.
<br>
<br>
To use this test, load it in the browser then load the WebInspector and look at
the profile. The profiler and browser should not crash.
To run this test manually, load it in the browser then load the WebInspector and look at
the profile. In the profile there should be a call to fakeObject() with call() as
its child and a fakeInteriorFunction() as call()'s child.
<div id="output"></div>
</body>
</html>
CONSOLE MESSAGE: line 59: Calling the same function where the profile started from another function
CONSOLE MESSAGE: line 75: Thread_1 0
CONSOLE MESSAGE: line 75: indirection calling-the-function-that-started-the-profiler-from-another-scope.html 16
CONSOLE MESSAGE: line 75: functionWichStartsAndStopsTheProfiler calling-the-function-that-started-the-profiler-from-another-scope.html 22
CONSOLE MESSAGE: line 75: functionWichStartsAndStopsTheProfiler calling-the-function-that-started-the-profiler-from-another-scope.html 22
CONSOLE MESSAGE: line 75: endTest profiler-test-JS-resources.js 1
CONSOLE MESSAGE: line 75: (idle) 0
This page's JavaScript starts profiling from within a function which is then called later from another context.
To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profiler you should see a call to indirection() and functionWichStartsAndStopsTheProfiler()
......@@ -37,7 +37,7 @@ This page's JavaScript starts profiling from within a function which is then cal
later from another context.
<br>
<br>
To use this test, load it in the browser then load the WebInspector and look at
To run this test manually, load it in the browser then load the WebInspector and look at
the profile. In the profiler you should see a call to indirection() and
functionWichStartsAndStopsTheProfiler()
<div id="output"></div>
......
CONSOLE MESSAGE: line 59: Test
CONSOLE MESSAGE: line 75: Thread_1 0
CONSOLE MESSAGE: line 75: (program) compare-multiple-profiles.html 20
CONSOLE MESSAGE: line 75: test compare-multiple-profiles.html 9
CONSOLE MESSAGE: line 75: test2 compare-multiple-profiles.html 15
CONSOLE MESSAGE: line 75: (idle) 0
CONSOLE MESSAGE: line 59: Test
CONSOLE MESSAGE: line 75: Thread_1 0
CONSOLE MESSAGE: line 75: (program) compare-multiple-profiles.html 24
CONSOLE MESSAGE: line 75: test compare-multiple-profiles.html 9
CONSOLE MESSAGE: line 75: test2 compare-multiple-profiles.html 15
CONSOLE MESSAGE: line 75: (idle) 0
This page has multiple profiles with the same name.
To run this test manually, load it in the browser then load the WebInspector and look at the profile. It should not crash or hang and there should be multiple runs of the same named profile.
......@@ -33,7 +33,7 @@ printProfilesDataWithoutTime();
This page has multiple profiles with the same name.
<br>
<br>
To use this test, load it in the browser then load the WebInspector and look at
To run this test manually, load it in the browser then load the WebInspector and look at
the profile. It should not crash or hang and there should be multiple runs of the
same named profile.
<div id="output"></div>
......
CONSOLE MESSAGE: line 59: Using a constructor.
CONSOLE MESSAGE: line 75: Thread_1 0
CONSOLE MESSAGE: line 75: (program) constructor.html 8
CONSOLE MESSAGE: line 75: (program) constructor.html 4
CONSOLE MESSAGE: line 75: onload constructor.html 23
CONSOLE MESSAGE: line 75: startTest constructor.html 10
CONSOLE MESSAGE: line 75: fakeObject constructor.html 16
CONSOLE MESSAGE: line 75: Array 0
CONSOLE MESSAGE: line 75: endTest profiler-test-JS-resources.js 1
CONSOLE MESSAGE: line 75: (idle) 0
This page's JavaScript has a call to new() in it.
To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile there should be a call to fakeObject() and Array() in it.
......@@ -24,7 +24,7 @@ function fakeObject (x, y)
This page's JavaScript has a call to new() in it.
<br>
<br>
To use this test, load it in the browser then load the WebInspector and look at
To run this test manually, load it in the browser then load the WebInspector and look at
the profile. In the profile there should be a call to fakeObject() and Array()
in it.
</body>
......
CONSOLE MESSAGE: line 59: Dead time in profile.
CONSOLE MESSAGE: line 75: Thread_1 0
CONSOLE MESSAGE: line 75: (program) dead-time.html 10
CONSOLE MESSAGE: line 75: (program) dead-time.html 4
CONSOLE MESSAGE: line 75: onload dead-time.html 19
CONSOLE MESSAGE: line 75: startTest dead-time.html 12
CONSOLE MESSAGE: line 75: setTimeout 0
CONSOLE MESSAGE: line 75: (program) dead-time.html 1
CONSOLE MESSAGE: line 75: endTest profiler-test-JS-resources.js 1
CONSOLE MESSAGE: line 75: (idle) 0
This page's JavaScript Has some dead time in the profile.
To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile there should be a large amount of the % spent in (non-JavaScript).
......@@ -20,7 +20,7 @@ function startTest()
This page's JavaScript Has some dead time in the profile.
<br>
<br>
To use this test, load it in the browser then load the WebInspector and look at
To run this test manually, load it in the browser then load the WebInspector and look at
the profile. In the profile there should be a large amount of the % spent in
(non-JavaScript).
<div id="output"></div>
......
CONSOLE MESSAGE: line 59: Call Document.write()
CONSOLE MESSAGE: line 75: Thread_1 0
CONSOLE MESSAGE: line 75: (program) document-dot-write.html 8
CONSOLE MESSAGE: line 75: write 0
CONSOLE MESSAGE: line 75: endTest profiler-test-JS-resources.js 1
CONSOLE MESSAGE: line 75: (idle) 0
This was a triumph. This page calls document.write().
To run this test manually, load it in the browser then load the WebInspector and look at the profile. If there is a profile it should show write().
......@@ -15,7 +15,7 @@ endTest();
This page calls document.write().
<br>
<br>
To use this test, load it in the browser then load the WebInspector and look at
To run this test manually, load it in the browser then load the WebInspector and look at
the profile. If there is a profile it should show write().
<div id="output"></div>
</body>
......
CONSOLE MESSAGE: line 59: Event handler
CONSOLE MESSAGE: line 75: Thread_1 0
CONSOLE MESSAGE: line 75: (program) event-handler.html 8
CONSOLE MESSAGE: line 75: (program) event-handler.html 4
CONSOLE MESSAGE: line 75: onload event-handler.html 20
CONSOLE MESSAGE: line 75: testStart event-handler.html 10
CONSOLE MESSAGE: line 75: getElementById 0
CONSOLE MESSAGE: line 75: addEventListener 0
CONSOLE MESSAGE: line 75: click 0
CONSOLE MESSAGE: line 75: insertNewText profiler-test-JS-resources.js 17
CONSOLE MESSAGE: line 75: createElement 0
CONSOLE MESSAGE: line 75: createTextNode 0
CONSOLE MESSAGE: line 75: appendChild 0
CONSOLE MESSAGE: line 75: getElementById 0
CONSOLE MESSAGE: line 75: endTest profiler-test-JS-resources.js 1
CONSOLE MESSAGE: line 75: (idle) 0
This page has an event handler.
To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile insertnewText() should be a sibling to onload().
This is inserted Text
......@@ -21,7 +21,7 @@ function testStart()
This page has an event handler.
<br>
<br>
To use this test, load it in the browser then load the WebInspector and look at
To run this test manually, load it in the browser then load the WebInspector and look at
the profile. In the profile insertnewText() should be a sibling to onload().
<input type="button" id="buttonWithAnEventListener" value="Button with an event listener">
<div id="output"></div>
......
CONSOLE MESSAGE: line 59: Two Execution Contexts on the same line
CONSOLE MESSAGE: line 75: Thread_1 0
CONSOLE MESSAGE: line 75: (program) execution-context-and-eval-on-same-line.html 8
CONSOLE MESSAGE: line 75: (program) execution-context-and-eval-on-same-line.html 4
CONSOLE MESSAGE: line 75: (program) execution-context-and-eval-on-same-line.html 15
CONSOLE MESSAGE: line 75: eval 0
CONSOLE MESSAGE: line 75: (program) 1
CONSOLE MESSAGE: line 75: onload execution-context-and-eval-on-same-line.html 18
CONSOLE MESSAGE: line 75: testStart execution-context-and-eval-on-same-line.html 10
CONSOLE MESSAGE: line 75: evalFunction 1
CONSOLE MESSAGE: line 75: insertNewText profiler-test-JS-resources.js 17
CONSOLE MESSAGE: line 75: createElement 0
CONSOLE MESSAGE: line 75: createTextNode 0
CONSOLE MESSAGE: line 75: appendChild 0
CONSOLE MESSAGE: line 75: getElementById 0
CONSOLE MESSAGE: line 75: endTest profiler-test-JS-resources.js 1
CONSOLE MESSAGE: line 75: (idle) 0
This page has a call to eval and a script tag on the same line.
To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile there should be multiple (program) elements and one that represents the eval().
This is inserted Text
......@@ -19,7 +19,7 @@ function testStart()
This page has a call to eval and a script tag on the same line.
<br>
<br>
To use this test, load it in the browser then load the WebInspector and look at
To run this test manually, load it in the browser then load the WebInspector and look at
the profile. In the profile there should be multiple (program) elements and
one that represents the eval().
<div id="output"></div>
......
CONSOLE MESSAGE: line 50: Heavy View Test
CONSOLE MESSAGE: line 75: Thread_1 0
CONSOLE MESSAGE: line 75: (program) heavy-view.html 4
CONSOLE MESSAGE: line 75: (program) heavy-view.html 8
CONSOLE MESSAGE: line 75: foo heavy-view.html 49
CONSOLE MESSAGE: line 75: c heavy-view.html 28
CONSOLE MESSAGE: line 75: foo heavy-view.html 49
CONSOLE MESSAGE: line 75: b heavy-view.html 22
CONSOLE MESSAGE: line 75: a heavy-view.html 11
CONSOLE MESSAGE: line 75: onload heavy-view.html 59
CONSOLE MESSAGE: line 75: (program) heavy-view.html 8
CONSOLE MESSAGE: line 75: b heavy-view.html 22
CONSOLE MESSAGE: line 75: a heavy-view.html 11
CONSOLE MESSAGE: line 75: onload heavy-view.html 59
CONSOLE MESSAGE: line 75: (program) heavy-view.html 8
CONSOLE MESSAGE: line 75: g heavy-view.html 43
CONSOLE MESSAGE: line 75: a heavy-view.html 11
CONSOLE MESSAGE: line 75: onload heavy-view.html 59
CONSOLE MESSAGE: line 75: (program) heavy-view.html 8
CONSOLE MESSAGE: line 75: a heavy-view.html 11