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

Side by Side Diff: LayoutTests/inspector/tracing/timeline-node-reference.html

Issue 713913002: DevTools: merge TracingTimelineUIUtils into TimelineUIUtils (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Deleted instance refs Created 6 years, 1 month 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 src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/elements-test.js"></script> 4 <script src="../../http/tests/inspector/elements-test.js"></script>
5 <script src="../../http/tests/inspector/timeline-test.js"></script> 5 <script src="../../http/tests/inspector/timeline-test.js"></script>
6 <style> 6 <style>
7 .relayout-boundary { 7 .relayout-boundary {
8 overflow: hidden; 8 overflow: hidden;
9 width: 100px; 9 width: 100px;
10 height: 100px; 10 height: 100px;
(...skipping 10 matching lines...) Expand all
21 21
22 function test() 22 function test()
23 { 23 {
24 InspectorTest.evaluateInPage("var unused = document.body.offsetWidth;", func tion() { 24 InspectorTest.evaluateInPage("var unused = document.body.offsetWidth;", func tion() {
25 InspectorTest.evaluateWithTimeline("performActions()", onTimelineRecord ed); 25 InspectorTest.evaluateWithTimeline("performActions()", onTimelineRecord ed);
26 }); 26 });
27 27
28 function clickValueLink(record, row) 28 function clickValueLink(record, row)
29 { 29 {
30 var panel = WebInspector.panels.timeline; 30 var panel = WebInspector.panels.timeline;
31 var helper = panel._uiUtils.generateDetailsContent(record, panel._model, new WebInspector.Linkifier(), onDetailsContentReady); 31 WebInspector.TimelineUIUtils.buildTraceEventDetails(record.traceEvent(), panel._model, new WebInspector.Linkifier(), onDetailsContentReady);
32 32
33 function onDetailsContentReady(element) 33 function onDetailsContentReady(element)
34 { 34 {
35 var rows = element.querySelectorAll(".timeline-details-view-row"); 35 var rows = element.querySelectorAll(".timeline-details-view-row");
36 for (var i = 0; i < rows.length; ++i) { 36 for (var i = 0; i < rows.length; ++i) {
37 if (rows[i].firstChild.textContent.indexOf(row) !== -1) { 37 if (rows[i].firstChild.textContent.indexOf(row) !== -1) {
38 rows[i].lastChild.firstChild.click(); 38 rows[i].lastChild.firstChild.click();
39 return; 39 return;
40 } 40 }
41 } 41 }
(...skipping 27 matching lines...) Expand all
69 Tests the Timeline API instrumentation of a Layout event 69 Tests the Timeline API instrumentation of a Layout event
70 </p> 70 </p>
71 <div id="boundary" class="relayout-boundary"> 71 <div id="boundary" class="relayout-boundary">
72 <div> 72 <div>
73 <div id="invalidate1"><div>text</div></div> 73 <div id="invalidate1"><div>text</div></div>
74 </div> 74 </div>
75 </div> 75 </div>
76 76
77 </body> 77 </body>
78 </html> 78 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698