OLD | NEW |
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 Loading... |
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 Loading... |
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> |
OLD | NEW |