2 <script src=
"../../resources/js-test.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();
17 beforeCount
= numberOfLiveNodes();
18 var f
= document
.createElement('form');
19 var i
= f
.appendChild(document
.createElement('input'));
20 i
.setAttribute('onclick', '');
25 afterCount
= numberOfLiveNodes();
26 shouldBe('afterCount - beforeCount', '0');