summaryrefslogtreecommitdiffstats
path: root/content/browser/debugger/manual_tests/profiler-test-console-control.html
diff options
context:
space:
mode:
authormnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-19 10:51:29 +0000
committermnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-19 10:51:29 +0000
commit53ae3ced739a432c20b70c7bee1ae5527ba786ce (patch)
treee6ee3b1b638d86a26ac466c0fbe17f67415178b2 /content/browser/debugger/manual_tests/profiler-test-console-control.html
parent92b43f98d619fcc8d03e2bb90217f44a0b4cd76e (diff)
downloadchromium_src-53ae3ced739a432c20b70c7bee1ae5527ba786ce.zip
chromium_src-53ae3ced739a432c20b70c7bee1ae5527ba786ce.tar.gz
chromium_src-53ae3ced739a432c20b70c7bee1ae5527ba786ce.tar.bz2
Revert r173891 - "DevTools: rename debugger/ to devtools/, move DevTools files into content/renderer/devtools."
DevToolsManagerTest.ForwardMessageToClient: http://build.chromium.org/p/chromium.linux/buildstatus?builder=Linux%20Tests%20x64&number=29428 http://build.chromium.org/p/chromium.linux/buildstatus?builder=Linux%20Aura&number=304 http://build.chromium.org/p/chromium.linux/buildstatus?builder=Linux%20Clang%20%28dbg%29&number=37637 http://build.chromium.org/p/chromium.chromiumos/buildstatus?builder=Linux%20ChromiumOS%20Tests%20%281%29&number=17804 http://build.chromium.org/p/chromium.memory/buildstatus?builder=Linux%20Chromium%20OS%20ASAN%20Tests%20%283%29&number=1107 BUG=None TEST=Tree becomes greener. TBR=pfeldman@chromium.org Review URL: https://codereview.chromium.org/11645015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173893 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/debugger/manual_tests/profiler-test-console-control.html')
-rw-r--r--content/browser/debugger/manual_tests/profiler-test-console-control.html27
1 files changed, 27 insertions, 0 deletions
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 0000000..4f2001a
--- /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>