2 <script src="../js/resources/js-test-pre.js"></script>
5 description('Tests that we do not hold on to any nodes');
9 function numberOfLiveNodes() {
10 return window.internals && window.internals.numberOfLiveNodes && window.internals.numberOfLiveNodes();
13 var beforeCount = numberOfLiveNodes();
15 var f = document.createElement('form');
16 var i = f.appendChild(document.createElement('input'));
17 i.setAttribute('onclick', '');
23 var afterCount = numberOfLiveNodes();
25 shouldBe('afterCount - beforeCount', '0');