4 https://bugzilla.mozilla.org/show_bug.cgi?id=661980
7 <title>Test for Bug
661980</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
12 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=661980">Mozilla Bug
661980</a>
14 <div id=
"content" style=
"display: none">
18 <script type=
"application/javascript">
20 /** Test for Bug
661980 **/
22 // While not currently needed, make this as similar as possible to a real
23 // EventTarget just to make sure that we're tripping on the wrapping and
26 addEventListener: function() {},
27 removeEventListener: function() {},
28 dispatchEvent: function() {}
31 var mouseevent = document.createEvent(
"MouseEvent");
33 dump(
"hello nurse\n");
35 mouseevent.initMouseEvent(
"mouseover",
39 false, false, false, false,
46 ok(didThrow,
"should not be able to implement EventTarget using script");
48 mouseevent.initMouseEvent(
"mouseout",
52 false, false, false, false,
55 is(mouseevent.type,
"mouseout",
56 "should able to implement EventTarget using Element");