haikuwebkit/LayoutTests/fast/events/remove-event-listener.html

14 lines
398 B
HTML

<html>
<body>
<script>
if (window.testRunner)
testRunner.dumpAsText();
// following code should leak the function and window/document objects.
function leaked(e) { var a = window; }
document.removeEventListener("mousemove", leaked, true);
</script>
This page executes JavaScript that removes a non-existing event listener. It should not cause memory leaks.
</body>
</html>