Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / inline-event-attributes-release.html
blob2db4f80d438a7b103eafda2dd8f01e01d1452525
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <script>
5 description('Tests that we do not hold on to any nodes');
7 jsTestIsAsync = true;
9 function numberOfLiveNodes() {
10 return window.internals && window.internals.numberOfLiveNodes && window.internals.numberOfLiveNodes();
13 var afterCount;
14 var beforeCount;
16 asyncGC(function() {
17 beforeCount = numberOfLiveNodes();
18 var f = document.createElement('form');
19 var i = f.appendChild(document.createElement('input'));
20 i.setAttribute('onclick', '');
21 f.removeChild(i);
22 f = null;
23 i = null;
24 asyncGC(function() {
25 afterCount = numberOfLiveNodes();
26 shouldBe('afterCount - beforeCount', '0');
27 finishJSTest();
28 });
29 });
32 </script>