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 } |
11 </style> | 11 </style> |
12 <script> | 12 <script> |
13 | 13 |
14 function performActions() | 14 function performActions() |
15 { | 15 { |
16 var element = document.getElementById("invalidate1"); | 16 var element = document.getElementById("invalidate1"); |
17 element.style.marginTop = "10px"; | 17 element.style.marginTop = "10px"; |
18 var unused = element.offsetHeight; | 18 var unused = element.offsetHeight; |
19 } | 19 } |
20 | 20 |
21 function test() | 21 function test() |
22 { | 22 { |
23 // Force panel load. | 23 // Force panel load. |
24 WebInspector.panel("elements"); | 24 WebInspector.panel("elements"); |
25 | 25 |
26 InspectorTest.evaluateInPage("var unused = document.body.offsetWidth; testRu
nner.display();", function() { | 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 = record.generatePopupContent(onDetailsContentReady); | 32 var helper = record.generatePopupContent(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"); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |