Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/uievents/constructors/inputevent-constructor.html

Issue 2709883004: [InputEvent] Change |InputEventInit::sequence<Range> ranges| to |sequence<StaticRange> targetRanges| (Closed)
Patch Set: yosin's review: Use early return Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/StaticRange.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/StaticRange.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698