3 .test { height: 20px; }
6 <script src="../../http/tests/inspector/inspector-test.js"></script>
7 <script src="../../http/tests/inspector/timeline-test.js"></script>
10 function invalidateStyle()
12 var element = document.getElementById("test");
13 element.className = "test";
16 function forceLayout()
18 var element = document.getElementById("test");
19 var unused = element.offsetHeight;
22 function performActions()
30 InspectorTest.evaluateWithTimeline("performActions()", onTimelineRecorded);
31 function onTimelineRecorded()
33 var layoutRecord = InspectorTest.findFirstTimelineRecord("Layout");
34 InspectorTest.addResult("layout invalidated: " + layoutRecord.callSiteStackTrace()[0].functionName);
35 InspectorTest.addResult("layout forced: " + layoutRecord.stackTrace()[0].functionName);
36 InspectorTest.completeTest();
43 <body onload="runTest()">
45 Tests that Layout record has correct locations of layout being invalidated and forced.