Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / ManualTests / leak-cycle-observer-wrapper.html
blobe813f37bd06bd9ba7dfdbab040d1d303287e8201
1 <!DOCTYPE html>
3 <p>
4 Tests that reference cycles between the observer and the callback do not
5 create leaks.
6 </p>
8 <script>
9 if (window.testRunner)
10 testRunner.dumpAsText();
12 function leak() {
13 var observer = new WebKitMutationObserver(function() { observer.disconnect(); });
16 for (i=0; i < 1000; i++) leak();
17 gc();
18 </script>