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/timeline-test.js"></script> | 4 <script src="../../http/tests/inspector/timeline-test.js"></script> |
5 <style> | 5 <style> |
6 .relayout-boundary { | 6 .relayout-boundary { |
7 overflow: hidden; | 7 overflow: hidden; |
8 width: 100px; | 8 width: 100px; |
9 height: 100px; | 9 height: 100px; |
10 } | 10 } |
(...skipping 11 matching lines...) Expand all Loading... |
22 { | 22 { |
23 // Force panel load. | 23 // Force panel load. |
24 WebInspector.inspectorView.panel("elements"); | 24 WebInspector.inspectorView.panel("elements"); |
25 | 25 |
26 InspectorTest.evaluateInPage("var unused = document.body.offsetWidth;", func
tion() { | 26 InspectorTest.evaluateInPage("var unused = document.body.offsetWidth;", func
tion() { |
27 InspectorTest.evaluateWithTimeline("performActions()", onTimelineRecord
ed); | 27 InspectorTest.evaluateWithTimeline("performActions()", onTimelineRecord
ed); |
28 }); | 28 }); |
29 | 29 |
30 function clickValueLink(record, row) | 30 function clickValueLink(record, row) |
31 { | 31 { |
32 var helper = WebInspector.TimelineUIUtils.generateDetailsContent(record,
record._model, new WebInspector.Linkifier(), onDetailsContentReady); | 32 var helper = WebInspector.TimelineUIUtilsImpl.generateDetailsContent(rec
ord, record._model, new WebInspector.Linkifier(), onDetailsContentReady); |
33 | 33 |
34 function onDetailsContentReady(element) | 34 function onDetailsContentReady(element) |
35 { | 35 { |
36 var rows = element.querySelectorAll(".timeline-details-view-row"); | 36 var rows = element.querySelectorAll(".timeline-details-view-row"); |
37 for (var i = 0; i < rows.length; ++i) { | 37 for (var i = 0; i < rows.length; ++i) { |
38 if (rows[i].firstChild.textContent.indexOf(row) !== -1) { | 38 if (rows[i].firstChild.textContent.indexOf(row) !== -1) { |
39 rows[i].lastChild.firstChild.click(); | 39 rows[i].lastChild.firstChild.click(); |
40 return; | 40 return; |
41 } | 41 } |
42 } | 42 } |
(...skipping 29 matching lines...) Expand all Loading... |
72 Tests the Timeline API instrumentation of a Layout event | 72 Tests the Timeline API instrumentation of a Layout event |
73 </p> | 73 </p> |
74 <div id="boundary" class="relayout-boundary"> | 74 <div id="boundary" class="relayout-boundary"> |
75 <div> | 75 <div> |
76 <div id="invalidate1"><div>text</div></div> | 76 <div id="invalidate1"><div>text</div></div> |
77 </div> | 77 </div> |
78 </div> | 78 </div> |
79 | 79 |
80 </body> | 80 </body> |
81 </html> | 81 </html> |
OLD | NEW |