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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-layout-reason.html

Issue 1624783002: DevTools: Switch to using fast stack iterator to collect stacks during timeline recording. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments Created 4 years, 10 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 <style> 2 <style>
3 .test { height: 20px; } 3 .test { height: 20px; }
4 </style> 4 </style>
5 <head> 5 <head>
6 <script src="../../http/tests/inspector/inspector-test.js"></script> 6 <script src="../../http/tests/inspector/inspector-test.js"></script>
7 <script src="../../http/tests/inspector/timeline-test.js"></script> 7 <script src="../../http/tests/inspector/timeline-test.js"></script>
8 <script> 8 <script>
9 9
10 function invalidateStyle() 10 function invalidateStyle()
(...skipping 13 matching lines...) Expand all
24 invalidateStyle(); 24 invalidateStyle();
25 forceLayout(); 25 forceLayout();
26 } 26 }
27 27
28 function test() 28 function test()
29 { 29 {
30 InspectorTest.evaluateWithTimeline("performActions()", onTimelineRecorded); 30 InspectorTest.evaluateWithTimeline("performActions()", onTimelineRecorded);
31 function onTimelineRecorded() 31 function onTimelineRecorded()
32 { 32 {
33 var layoutRecord = InspectorTest.findFirstTimelineRecord("Layout"); 33 var layoutRecord = InspectorTest.findFirstTimelineRecord("Layout");
34 InspectorTest.addResult("layout invalidated: " + layoutRecord.traceEvent ().initiator.args["data"]["stackTrace"][0].functionName); 34 InspectorTest.addResult("layout invalidated: " + WebInspector.TimelineUI Utils.getTopUserFrame(layoutRecord.traceEvent().initiator).functionName);
35 InspectorTest.addResult("layout forced: " + layoutRecord.traceEvent().ar gs["beginData"]["stackTrace"][0].functionName); 35 InspectorTest.addResult("layout forced: " + WebInspector.TimelineUIUtils .getTopUserFrame(layoutRecord.traceEvent()).functionName);
36 InspectorTest.completeTest(); 36 InspectorTest.completeTest();
37 } 37 }
38 } 38 }
39 39
40 </script> 40 </script>
41 </head> 41 </head>
42 42
43 <body onload="runTest()"> 43 <body onload="runTest()">
44 <p> 44 <p>
45 Tests that Layout record has correct locations of layout being invalidated and f orced. 45 Tests that Layout record has correct locations of layout being invalidated and f orced.
46 </p> 46 </p>
47 <div id="test"></div> 47 <div id="test"></div>
48 48
49 </body> 49 </body>
50 </html> 50 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698