3 <p>Test that stale distribution data stored in the ElementShadow is not used.</p>
4 <p>Passes if it does not crash or assert</p>
10 testRunner.dumpAsText();
12 var host = document.getElementById('host');
13 var oldestShadowRoot = host.createShadowRoot();
14 var youngestShadowRoot = host.createShadowRoot();
16 oldestShadowRoot.innerHTML = '';
17 youngestShadowRoot.innerHTML = '<shadow></shadow>';
19 // Cause a distribution to populate the ElementShadow.
22 // Create a stale pointer to the HTMLShadowElement.
23 youngestShadowRoot.innerHTML = '';
25 // Trigger a sync attach() from innerHTML. The sync attach skips the
26 // recalcDistribution call and would access stale data.
27 oldestShadowRoot.innerHTML = '<span></span>';