| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <style> | 2 <style> |
| 3 .test { height: 20px; } | 3 .test { height: 20px; } |
| 4 </style> | 4 </style> |
| 5 <head> | 5 <head> |
| 6 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 6 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 7 <script src="../../../http/tests/inspector/timeline-test.js"></script> | 7 <script src="../../../http/tests/inspector/timeline-test.js"></script> |
| 8 <script> | 8 <script> |
| 9 | 9 |
| 10 function invalidateStyle() | 10 function invalidateStyle() |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 forceLayout(); | 25 forceLayout(); |
| 26 } | 26 } |
| 27 | 27 |
| 28 function test() | 28 function test() |
| 29 { | 29 { |
| 30 InspectorTest.evaluateWithTimeline("performActions()", onTimelineRecorded); | 30 InspectorTest.evaluateWithTimeline("performActions()", onTimelineRecorded); |
| 31 function onTimelineRecorded() | 31 function onTimelineRecorded() |
| 32 { | 32 { |
| 33 var layoutRecord = InspectorTest.findFirstTimelineRecord("Layout"); | 33 var layoutRecord = InspectorTest.findFirstTimelineRecord("Layout"); |
| 34 var event = layoutRecord.traceEvent(); | 34 var event = layoutRecord.traceEvent(); |
| 35 var initiator = WebInspector.TimelineData.forEvent(event).initiator(); | 35 var initiator = TimelineModel.TimelineData.forEvent(event).initiator(); |
| 36 InspectorTest.addResult("layout invalidated: " + WebInspector.TimelineDa
ta.forEvent(initiator).stackTrace[0].functionName); | 36 InspectorTest.addResult("layout invalidated: " + TimelineModel.TimelineD
ata.forEvent(initiator).stackTrace[0].functionName); |
| 37 InspectorTest.addResult("layout forced: " + WebInspector.TimelineData.fo
rEvent(event).stackTrace[0].functionName); | 37 InspectorTest.addResult("layout forced: " + TimelineModel.TimelineData.f
orEvent(event).stackTrace[0].functionName); |
| 38 InspectorTest.completeTest(); | 38 InspectorTest.completeTest(); |
| 39 } | 39 } |
| 40 } | 40 } |
| 41 | 41 |
| 42 </script> | 42 </script> |
| 43 </head> | 43 </head> |
| 44 | 44 |
| 45 <body onload="runTest()"> | 45 <body onload="runTest()"> |
| 46 <p> | 46 <p> |
| 47 Tests that Layout record has correct locations of layout being invalidated and f
orced. | 47 Tests that Layout record has correct locations of layout being invalidated and f
orced. |
| 48 </p> | 48 </p> |
| 49 <div id="test"></div> | 49 <div id="test"></div> |
| 50 | 50 |
| 51 </body> | 51 </body> |
| 52 </html> | 52 </html> |
| OLD | NEW |