blob: 8c88c9a3d43e253cc17d71b37d2b7134f5611a08 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description("This test checks that DOMNodeRemovedEvent is emitted once (and only once).");
var div = document.createElement("div");
document.body.appendChild(div);
var count = 0;
document.body.addEventListener("DOMNodeRemoved", function () { count++; }, false);
document.body.removeChild(div);
shouldBe("count", "1");
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>