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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/profiler/cpu-profiler-profiling.html

Issue 2297903005: DevTools: (anonymous function) ==> (anonymous) (Closed)
Patch Set: tests Created 4 years, 3 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="profiler-test.js"></script> 4 <script src="profiler-test.js"></script>
5 <script> 5 <script>
6 6
7 function pageFunction() { 7 function pageFunction() {
8 (function () { 8 (function () {
9 console.profile("profile"); 9 console.profile("profile");
10 console.profileEnd("profile"); 10 console.profileEnd("profile");
(...skipping 20 matching lines...) Expand all
31 31
32 InspectorTest.runProfilerTestSuite([ 32 InspectorTest.runProfilerTestSuite([
33 function testProfiling(next) 33 function testProfiling(next)
34 { 34 {
35 function findPageFunctionInProfileView(view) 35 function findPageFunctionInProfileView(view)
36 { 36 {
37 var tree = view.profileDataGridTree; 37 var tree = view.profileDataGridTree;
38 if (!tree) 38 if (!tree)
39 InspectorTest.addResult("no tree"); 39 InspectorTest.addResult("no tree");
40 checkFunction(tree, "pageFunction", "cpu-profiler-profiling.html :7"); 40 checkFunction(tree, "pageFunction", "cpu-profiler-profiling.html :7");
41 checkFunction(tree, "(anonymous function)"); 41 checkFunction(tree, "(anonymous)");
42 next(); 42 next();
43 } 43 }
44 InspectorTest.showProfileWhenAdded("profile"); 44 InspectorTest.showProfileWhenAdded("profile");
45 InspectorTest.waitUntilProfileViewIsShown("profile", findPageFunctio nInProfileView); 45 InspectorTest.waitUntilProfileViewIsShown("profile", findPageFunctio nInProfileView);
46 InspectorTest.evaluateInPage("pageFunction()", function done() {}); 46 InspectorTest.evaluateInPage("pageFunction()", function done() {});
47 } 47 }
48 ]); 48 ]);
49 } 49 }
50 50
51 </script> 51 </script>
52 </head> 52 </head>
53 <body onload="runTest()"> 53 <body onload="runTest()">
54 <p> 54 <p>
55 Tests that CPU profiling works. 55 Tests that CPU profiling works.
56 56
57 <a href="https://bugs.webkit.org/show_bug.cgi?id=52634">Bug 52634.</a> 57 <a href="https://bugs.webkit.org/show_bug.cgi?id=52634">Bug 52634.</a>
58 </p> 58 </p>
59 </body> 59 </body>
60 </html> 60 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698