Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/imported/wpt/input-events/inputevent-constructor.html |
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/input-events/inputevent-constructor.html b/third_party/WebKit/LayoutTests/imported/wpt/input-events/inputevent-constructor.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6f1d1e654b6ba6b4a5226962d6bcd3adec96cbb5 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/input-events/inputevent-constructor.html |
| @@ -0,0 +1,19 @@ |
| +<!DOCTYPE html> |
| +<title>InputEvent Constructor Tests</title> |
| +<script src="/resources/testharness.js"></script> |
| +<script src="/resources/testharnessreport.js"></script> |
| +<script> |
| +test(function() { |
| + var e = new InputEvent('type'); |
| + assert_equals(e.inputType, ''); |
| + assert_equals(e.data, ''); |
|
dtapuska
2016/12/15 16:12:49
This test is likely to fail as well now.
|
| + assert_equals(e.dataTransfer, null); |
| + assert_false(e.isComposing); |
| +}, 'Test InputEvent constructor without inputEventInit dictionary'); |
| + |
| +test(function() { |
| + var e = new InputEvent('type', { data: null, isComposing: true }); |
| + assert_equals(e.data, null, 'inputevent.data should be non null'); |
| + assert_true(e.isComposing); |
| +}, 'Test InputEvent construtor with inputEventInit dictionary'); |
| +</script> |