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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-event-causes.html

Issue 1896793002: Rename (updateLayout/updateStyle).*.() to updateStyleAndLayout.*.() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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="../../http/tests/inspector/timeline-test.js"></script> 4 <script src="../../http/tests/inspector/timeline-test.js"></script>
5 <script> 5 <script>
6 function test() 6 function test()
7 { 7 {
8 function checkStringContains(string, contains) 8 function checkStringContains(string, contains)
9 { 9 {
10 var doesContain = string.indexOf(contains) >= 0; 10 var doesContain = string.indexOf(contains) >= 0;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 75 }
76 76
77 var source = styleRecalcFunction.toString(); 77 var source = styleRecalcFunction.toString();
78 source += "\n//# sourceURL=styleRecalcFunction.js"; 78 source += "\n//# sourceURL=styleRecalcFunction.js";
79 InspectorTest.evaluateInPage(source); 79 InspectorTest.evaluateInPage(source);
80 80
81 InspectorTest.evaluateWithTimeline("styleRecalcFunction()", finishAn dRunNextTest); 81 InspectorTest.evaluateWithTimeline("styleRecalcFunction()", finishAn dRunNextTest);
82 function finishAndRunNextTest() 82 function finishAndRunNextTest()
83 { 83 {
84 var linkifier = new WebInspector.Linkifier(); 84 var linkifier = new WebInspector.Linkifier();
85 var record = InspectorTest.findFirstTimelineRecord("UpdateLayout Tree"); 85 var record = InspectorTest.findFirstTimelineRecord("UpdateStyleA ndLayoutTree");
86 InspectorTest.check(record, "Should receive a UpdateLayoutTree r ecord."); 86 InspectorTest.check(record, "Should receive a UpdateStyleAndLayo utTree record.");
87 var contentHelper = new WebInspector.TimelineDetailsContentHelpe r(InspectorTest.timelineModel().target(), linkifier, true); 87 var contentHelper = new WebInspector.TimelineDetailsContentHelpe r(InspectorTest.timelineModel().target(), linkifier, true);
88 WebInspector.TimelineUIUtils._generateCauses(record.traceEvent() , InspectorTest.timelineModel().target(), null, contentHelper); 88 WebInspector.TimelineUIUtils._generateCauses(record.traceEvent() , InspectorTest.timelineModel().target(), null, contentHelper);
89 var causes = contentHelper.element.deepTextContent(); 89 var causes = contentHelper.element.deepTextContent();
90 InspectorTest.check(causes, "Should generate causes"); 90 InspectorTest.check(causes, "Should generate causes");
91 checkStringContains(causes, "First InvalidatedstyleRecalcFunctio n @ styleRecalcFunction.js:"); 91 checkStringContains(causes, "First InvalidatedstyleRecalcFunctio n @ styleRecalcFunction.js:");
92 next(); 92 next();
93 } 93 }
94 }, 94 },
95 95
96 function testLayout(next) 96 function testLayout(next)
(...skipping 29 matching lines...) Expand all
126 </script> 126 </script>
127 </head> 127 </head>
128 128
129 <body onload="runTest()"> 129 <body onload="runTest()">
130 <p> 130 <p>
131 Test that causes are correctly generated for various types of events. 131 Test that causes are correctly generated for various types of events.
132 </p> 132 </p>
133 <div id="testElement"></div> 133 <div id="testElement"></div>
134 </body> 134 </body>
135 </html> 135 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698