<pre id="results"></pre> | |
<div id="target" style="width: 100px; height: 100px; background-color: black;"></div> | |
<script> | |
testRunner.waitUntilDone(); | |
testRunner.dumpAsText(); | |
document.getElementById("target").animate([ | |
{ opacity: 0.5 }, | |
{ opacity: 0 } | |
], 1000 * 60).ready.then(() => { | |
document.getElementById("results").innerText = internals.layerTreeAsText(document); | |
testRunner.notifyDone(); | |
}); | |
</script> |