Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / NodeList / 5725058-crash-scenario-1.html
blob510435df85a931f0121d933c4eea4471e84703ca
1 <p>Test for (rdar://problem/5725058). If you see this text, then all is well and no crash has occurred.</p>
3 <span>
4 <div name='test'></div>
5 </span>
6 <script type='text/javascript'>
7 if (window.testRunner)
8 testRunner.dumpAsText();
10 function triggerGarbageCollection()
12 if (window.GCController) {
13 GCController.collect();
14 return;
16 for (var i = 0; i < 10000; ++i)
17 ({})
20 document.getElementsByName('test')[0];
21 triggerGarbageCollection();
22 document.getElementsByTagName('span')[0].innerHTML = '';
23 triggerGarbageCollection();
24 document.getElementsByName('test')[0];
25 </script>