blob: e813f37bd06bd9ba7dfdbab040d1d303287e8201 [file] [log] [blame]
<!DOCTYPE html>
<p>
Tests that reference cycles between the observer and the callback do not
create leaks.
</p>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function leak() {
var observer = new WebKitMutationObserver(function() { observer.disconnect(); });
}
for (i=0; i < 1000; i++) leak();
gc();
</script>