dom/tests/mochitest/bugs/test_bug563487.html

branch
TOR_BUG_9701
changeset 8
97036ab72558
equal deleted inserted replaced
-1:000000000000 0:1f1c20ccc853
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=563487
5 -->
6 <head>
7 <!-- Put this before the mochi* stuff, since that adds various listeners -->
8 <script>
9 var exception = null;
10 try {
11 window.removeEventListener("foo", function() {}, false);
12 } catch (e) {
13 exception = e;
14 }
15 </script>
16 <title>Test for Bug 563487</title>
17 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
18 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
19 </head>
20 <body>
21 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=563487">Mozilla Bug 563487</a>
22 <p id="display"></p>
23 <div id="content" style="display: none">
24
25 </div>
26 <pre id="test">
27 <script type="application/javascript">
28
29 /** Test for Bug 563487 **/
30 is(exception, null, "removeEventListener threw");
31 </script>
32 </pre>
33 </body>
34 </html>

mercurial