Revision control

1
<pre id="results"></pre>
2
<div id="target" style="width: 100px; height: 100px; background-color: black;"></div>
3
<script>
4
5
const animation = document.getElementById("target").animate([
6
{ opacity: 1 },
7
{ opacity: 0 }
8
], 100);
9
10
testRunner.waitUntilDone();
11
testRunner.dumpAsText();
12
13
setTimeout(() => {
14
document.getElementById("results").innerText = internals.layerTreeAsText(document);
15
testRunner.notifyDone();
16
}, animation.effect.getTiming().duration + 500);
17
18
</script>