| Index: content/browser/debugger/manual_tests/profiler-test-console-control.html
|
| diff --git a/content/browser/debugger/manual_tests/profiler-test-console-control.html b/content/browser/debugger/manual_tests/profiler-test-console-control.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4f2001a5320835daa59966ebc634e6adde04b3ab
|
| --- /dev/null
|
| +++ b/content/browser/debugger/manual_tests/profiler-test-console-control.html
|
| @@ -0,0 +1,27 @@
|
| +<html>
|
| + <head>
|
| + <title>Profiler: test console controlling of CPU profiling</title>
|
| + <script type="text/javascript" src="resources/fib.js"></script>
|
| + <script type="text/javascript">
|
| + function profile_fib() {
|
| + console.profile();
|
| + run_fib();
|
| + window.setTimeout('console.profileEnd();', 5000);
|
| + }
|
| + </script>
|
| + </head>
|
| + <body onload="profile_fib()">
|
| + This test runs and profiles a simple looped computation.
|
| + <br>
|
| + <br>
|
| + TEST
|
| + <ul>
|
| + <li>load file in the browser;
|
| + <li>open DevTools with console (Ctrl+Shift+I on Win/Linux, Command+Option+I on Mac);
|
| + <li>go to 'Profiles' page;
|
| + <li>observe that 'Profile 1' item has appeared under 'CPU profiles' section;
|
| + <li>check for presence of 'eternal_fib' entry in the profile view.
|
| + </ul>
|
| + <br>
|
| + </body>
|
| +</html>
|
|
|