blob: b2c67827a329e0e6f54f672d08ffcceadba96191 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description("Test addEventListener() and removeEventListener() fail silently if arguments are missing.");
shouldBe('new XMLHttpRequest().addEventListener("foo")', 'undefined');
shouldBe('new XMLHttpRequest().removeEventListener("bar")', 'undefined');
shouldBe('new XMLHttpRequest().addEventListener()', 'undefined');
shouldBe('new XMLHttpRequest().removeEventListener()', 'undefined');
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>