4 https://bugzilla.mozilla.org/show_bug.cgi?id=412567
7 <title>Test for Bug
412567</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
11 <body onload=
"testRedispatching(event);">
12 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=412567">Mozilla Bug
412567</a>
14 <div id=
"content" style=
"display: none" onload=
"redispatchinHandler(event)">
18 <script class=
"testbody" type=
"text/javascript">
20 /** Test for Bug
412567 **/
24 function redispatchinHandler(evt) {
25 is(evt.type,
"load",
"Wrong event type!");
26 ok(!evt.isTrusted,
"Event should not be trusted!");
30 function redispatch() {
31 ok(loadEvent.isTrusted,
"Event should be trusted before redispatching!");
32 document.getElementById('content').dispatchEvent(loadEvent);
35 function testRedispatching(evt) {
36 is(evt.type,
"load",
"Wrong event type!");
37 ok(evt.isTrusted,
"Event should be trusted!");
39 setTimeout(redispatch,
0);
42 SimpleTest.waitForExplicitFinish();