blob: b9c9704f025a4ff87b6eb863138092c60d3c6f34 [file] [log] [blame]
if (window.testRunner)
testRunner.dumpAsText();
var targetDiv;
function doTest()
{
document.body.offsetWidth;
targetDiv = document.getElementById('target');
if (window.internals) {
internals.setElementUsesDisplayListDrawing(targetDiv, true);
internals.setElementTracksDisplayListReplay(targetDiv, true);
}
if (window.testRunner)
testRunner.displayAndTrackRepaints();
if (window.internals) {
var displayList = internals.displayListForElement(targetDiv);
var replayList = internals.replayDisplayListForElement(targetDiv);
document.getElementById('output').textContent = 'recorded: ' + displayList + '\n\nreplayed: ' + replayList;
}
}
window.addEventListener('load', doTest, false);