1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/tests/mochitest/bugs/test_bug563487.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,34 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=563487 1.8 +--> 1.9 +<head> 1.10 + <!-- Put this before the mochi* stuff, since that adds various listeners --> 1.11 + <script> 1.12 + var exception = null; 1.13 + try { 1.14 + window.removeEventListener("foo", function() {}, false); 1.15 + } catch (e) { 1.16 + exception = e; 1.17 + } 1.18 + </script> 1.19 + <title>Test for Bug 563487</title> 1.20 + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.21 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 1.22 +</head> 1.23 +<body> 1.24 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=563487">Mozilla Bug 563487</a> 1.25 +<p id="display"></p> 1.26 +<div id="content" style="display: none"> 1.27 + 1.28 +</div> 1.29 +<pre id="test"> 1.30 +<script type="application/javascript"> 1.31 + 1.32 +/** Test for Bug 563487 **/ 1.33 +is(exception, null, "removeEventListener threw"); 1.34 +</script> 1.35 +</pre> 1.36 +</body> 1.37 +</html>