dom/tests/mochitest/bugs/test_bug563487.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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">
    25 </div>
    26 <pre id="test">
    27 <script type="application/javascript">
    29 /** Test for Bug 563487 **/
    30 is(exception, null, "removeEventListener threw");
    31 </script>
    32 </pre>
    33 </body>
    34 </html>

mercurial