blob: f7ed27e436b6745c9fae3bad36eb1749a8c30e7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<!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>
|