1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
2 <script src=
"../../resources/js-test.js"></script>
3 <script type=
"text/javascript">
4 description('Test that keyboard events should have a sourceCapabilities and its firesTouchEvents should be false.');
6 function keyHandler() {
8 shouldBeNonNull("event.sourceCapabilities");
9 shouldBeFalse("event.sourceCapabilities.firesTouchEvents");
12 if (window
.eventSender
) {
13 for (var evt
of ['keydown', 'keypress', 'keyup']) {
14 document
.addEventListener(evt
, keyHandler
);
17 eventSender
.keyDown(' ');
20 debug('This test requires eventSender.');