blob: f7ed27e436b6745c9fae3bad36eb1749a8c30e7a [file] [log] [blame]
<!DOCTYPE html>
<script src='../../../resources/testharness.js'></script>
<script src='../../../resources/testharnessreport.js'></script>
<div id=host1></div>
<script>
'use strict';
const sr = host1.createShadowRoot();
sr.innerHTML = '<div id="host2"></div>';
const sr2 = sr.getElementById('host2').createShadowRoot();
sr.innerHTML = null;
// TODO(hayato): Find a more reliable way to reproduce the crash. This is the only reliable way as of now.
// Using GCController.collect() does not reproduce the crash.
for (var i = 1; i < 20000; i++) {
"abc" + i;
}
const selectTest = async_test("Testing select attribute change");
setTimeout(() => {
selectTest.step(() => {
sr2.appendChild(document.createElement('content')).select = 'foo';
});
selectTest.done();
}, 0);
</script>