Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: LayoutTests/inspector-protocol/cpu-profiler/record-cpu-profile.html

Issue 116273003: Stop recording CPU profiles when Profiler agent is disabled (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Comments addressed Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource s/protocol-test.js"></script> 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource s/protocol-test.js"></script>
4 <script> 4 <script>
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 } 8 }
9 9
10 function test() 10 function test()
11 { 11 {
12 InspectorTest.sendCommand("Profiler.enable", {});
12 InspectorTest.sendCommand("Profiler.start", {}, didStartFrontendProfile); 13 InspectorTest.sendCommand("Profiler.start", {}, didStartFrontendProfile);
13 function didStartFrontendProfile(messageObject) 14 function didStartFrontendProfile(messageObject)
14 { 15 {
15 if (!InspectorTest.expectedSuccess("startFrontendProfile", messageObject )) 16 if (!InspectorTest.expectedSuccess("startFrontendProfile", messageObject ))
16 return; 17 return;
17 InspectorTest.sendCommand("Runtime.evaluate", {expression: "console.prof ile('Profile 1');"}, didStartConsoleProfile); 18 InspectorTest.sendCommand("Runtime.evaluate", {expression: "console.prof ile('Profile 1');"}, didStartConsoleProfile);
18 } 19 }
19 20
20 function didStartConsoleProfile(messageObject) 21 function didStartConsoleProfile(messageObject)
21 { 22 {
(...skipping 30 matching lines...) Expand all
52 } 53 }
53 } 54 }
54 </script> 55 </script>
55 </head> 56 </head>
56 <body onload="runTest()"> 57 <body onload="runTest()">
57 <p> 58 <p>
58 Test that profiler is able to record a profile. 59 Test that profiler is able to record a profile.
59 Also it tests that profiler returns an error when it unable to find the profile. 60 Also it tests that profiler returns an error when it unable to find the profile.
60 </body> 61 </body>
61 </html> 62 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698