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

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

Issue 2791373002: [InputEvent] Make StaticRange immutable and move tests to wpt (Closed)
Patch Set: Fix global-interface-listing Created 3 years, 8 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
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 9ade36d6a3d928527926d23e22144b1c7bf28540..f1f5641785eb8d61b872f187782e90c1ea76ec02 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,14 +22,4 @@ 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>

Powered by Google App Engine
This is Rietveld 408576698