From 9e1fac73ea0c6ea6e2c7bc3f13b21f4a2bce3012 Mon Sep 17 00:00:00 2001 From: Masayuki Nakano Date: Tue, 4 Aug 2020 03:42:25 +0000 Subject: [PATCH] Add WPT for `InputEvent.getTargetRanges() There are no automated tests for `InputEvent.getTargetRanges()` because it is set only when `beforeinput` event, but it's defined as not dispatched by `document.execCommand`. However, we can synthesize `beforeinput` event with test driver. On the other hand, the definition in Input Events spec is not clear. Therefore, most of the tests won't be passed on any browsers for now. There are some spec issues which I filed: * https://github.com/w3c/input-events/issues/112 * https://github.com/w3c/input-events/issues/113 * https://github.com/w3c/input-events/issues/114 These new test must be useful when browser vendors discuss the issues. Differential Revision: https://phabricator.services.mozilla.com/D85527 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1655393 gecko-commit: 12f21ad909371384939bb38d65cf1dbc797b5bf9 gecko-integration-branch: autoland gecko-reviewers: smaug --- ...get-target-ranges-backspace.tentative.html | 811 ++++++++++++++++++ ...target-ranges-forwarddelete.tentative.html | 808 +++++++++++++++++ 2 files changed, 1619 insertions(+) create mode 100644 input-events/input-events-get-target-ranges-backspace.tentative.html create mode 100644 input-events/input-events-get-target-ranges-forwarddelete.tentative.html diff --git a/input-events/input-events-get-target-ranges-backspace.tentative.html b/input-events/input-events-get-target-ranges-backspace.tentative.html new file mode 100644 index 00000000000000..cf512269b07e01 --- /dev/null +++ b/input-events/input-events-get-target-ranges-backspace.tentative.html @@ -0,0 +1,811 @@ + + +InputEvent.getTargetRanges() at Backspace + + + + + +
+ diff --git a/input-events/input-events-get-target-ranges-forwarddelete.tentative.html b/input-events/input-events-get-target-ranges-forwarddelete.tentative.html new file mode 100644 index 00000000000000..3780324cf92bfa --- /dev/null +++ b/input-events/input-events-get-target-ranges-forwarddelete.tentative.html @@ -0,0 +1,808 @@ + + +InputEvent.getTargetRanges() at Delete (forward delete) + + + + + +
+