Index: third_party/WebKit/LayoutTests/external/wpt/uievents/constructors/inputevent-constructor.html |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/uievents/constructors/inputevent-constructor.html b/third_party/WebKit/LayoutTests/external/wpt/uievents/constructors/inputevent-constructor.html |
index f1f5641785eb8d61b872f187782e90c1ea76ec02..9ade36d6a3d928527926d23e22144b1c7bf28540 100644 |
--- a/third_party/WebKit/LayoutTests/external/wpt/uievents/constructors/inputevent-constructor.html |
+++ b/third_party/WebKit/LayoutTests/external/wpt/uievents/constructors/inputevent-constructor.html |
@@ -22,4 +22,14 @@ test(function() { |
test(function() { |
assert_equals(new InputEvent('type', { data: 'data' }).data, 'data'); |
}, 'InputEvent construtor with InputEventInit where data is non empty string'); |
+ |
+test(function() { |
+ const range = new StaticRange(); |
+ range.setEnd(document, 1); |
+ const resultRange = new InputEvent('type', { targetRanges: [range] }).getTargetRanges()[0]; |
+ assert_equals(resultRange.startContainer, document); |
+ assert_equals(resultRange.startOffset, 0); |
+ assert_equals(resultRange.endContainer, document); |
+ assert_equals(resultRange.endOffset, 1); |
+}, 'InputEvent construtor with InputEventInit where targetRanges is non empty list'); |
</script> |