OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>InputEvent Constructor Tests</title> |
| 3 <script src="../../../resources/testharness.js"></script> |
| 4 <script src="../../../resources/testharnessreport.js"></script> |
| 5 <script> |
| 6 test(function() { |
| 7 var e = new InputEvent('type'); |
| 8 assert_equals(e.inputType, '); |
| 9 assert_equals(e.data, ''); |
| 10 assert_equals(e.dataTransfer, null); |
| 11 assert_false(e.isComposing); |
| 12 }, 'Test InputEvent constructor without inputEventInit dictionary'); |
| 13 |
| 14 test(function() { |
| 15 var e = new InputEvent('type', { data: null, isComposing: true }); |
| 16 assert_equals(e.data, 'null', 'inputevent.data should be non nullable'); |
| 17 assert_true(e.isComposing); |
| 18 }, 'Test InputEvent construtor with inputEventInit dictionary'); |
| 19 </script> |
OLD | NEW |