2 <script src=
"../../resources/js-test.js"></script>
5 description('Tests that we have the expected form in scope');
7 function dispatchClick(element
)
9 var clickEvent
= document
.createEvent('MouseEvent');
10 clickEvent
.initMouseEvent('click', true, false, window
, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
11 element
.dispatchEvent(clickEvent
);
15 var f
= document
.createElement('form');
16 var i
= f
.appendChild(document
.createElement('input'));
17 i
.setAttribute('onclick', 'expected = typeof action');
22 shouldBeEqualToString('expected', 'undefined');