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

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

Issue 15816002: Remove console.profiles from window.console API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 7 months 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()
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 function didStartFrontendProfile2(messageObject) 42 function didStartFrontendProfile2(messageObject)
43 { 43 {
44 if (!InspectorTest.expectedSuccess("startFrontendProfileSecondTime", mes sageObject)) 44 if (!InspectorTest.expectedSuccess("startFrontendProfileSecondTime", mes sageObject))
45 return; 45 return;
46 InspectorTest.sendCommand("Profiler.stop", {}, didStopFrontendProfile2); 46 InspectorTest.sendCommand("Profiler.stop", {}, didStopFrontendProfile2);
47 } 47 }
48 48
49 function didStopFrontendProfile2(messageObject) 49 function didStopFrontendProfile2(messageObject)
50 { 50 {
51 InspectorTest.expectedSuccess("stopFrontendProfileSecondTime", messageOb ject) 51 InspectorTest.expectedSuccess("stopFrontendProfileSecondTime", messageOb ject)
52 InspectorTest.sendCommand("Profiler.clearProfiles", {});
52 InspectorTest.completeTest(); 53 InspectorTest.completeTest();
53 } 54 }
54 } 55 }
55 </script> 56 </script>
56 </head> 57 </head>
57 <body onload="runTest()"> 58 <body onload="runTest()">
58 <p> 59 <p>
59 Test that profiler is able to record a profile. 60 Test that profiler is able to record a profile.
60 Also it tests that profiler returns an error when it unable to find the profile. 61 Also it tests that profiler returns an error when it unable to find the profile.
61 </body> 62 </body>
62 </html> 63 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698