3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/timeline-test.js"></script>
14 function invalidateAndForceLayout(element)
16 element.style.marginTop = "10px";
17 var unused = element.offsetHeight;
20 function performActions()
22 invalidateAndForceLayout(document.getElementById("invalidate1"));
23 invalidateAndForceLayout(document.getElementById("invalidate2"));
28 InspectorTest.evaluateInPage("testRunner.display()", function() {
29 InspectorTest.performActionsAndPrint("performActions()", "Layout");
36 <body onload="runTest()">
38 Tests the Timeline API instrumentation of a Layout event
40 <div class="relayout-boundary">
44 <div id="invalidate1"><div>text</div></div>
47 <div class="relayout-boundary">
50 <div id="invalidate2"><div>text</div></div>