If you remove the document.getElementById('parent-iframe').contentDocument.body.offsetWidth; // update iframe layout line, then this test assets when painting the iframe's view, because layout has not been updated. For some reason, -viewWillDraw is not propagating.
Same with enter-compositing-iframe.html leave-compositing-iframe.html and some others