-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1655393 - Add WPT for
InputEvent.getTargetRanges()
r=smaug
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: * w3c/input-events#112 * w3c/input-events#113 * w3c/input-events#114 These new test must be useful when browser vendors discuss the issues. Differential Revision: https://phabricator.services.mozilla.com/D85527
- Loading branch information
1 parent
804e3ce
commit e7e1616
Showing
4 changed files
with
1,793 additions
and
0 deletions.
There are no files selected for viewing
86 changes: 86 additions & 0 deletions
86
...eb-platform/meta/input-events/input-events-get-target-ranges-backspace.tentative.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
[input-events-get-target-ranges-backspace.tentative.html] | ||
[Shift + Backspace at "<p>abc def[\] ghi</p>"] | ||
expected: FAIL | ||
|
||
[Control + Backspace at "<p>abc def[\] ghi</p>"] | ||
expected: | ||
if (os == "win") or (os == "android"): FAIL | ||
PASS | ||
|
||
[Alt + Backspace at "<p>abc def[\] ghi</p>"] | ||
expected: | ||
if (os == "mac") or (os == "win") or (os == "android"): FAIL | ||
PASS | ||
|
||
[Meta + Backspace at "<p> abc[\] def</p>"] | ||
expected: FAIL | ||
|
||
[Shift + Backspace at "<p> abc[\] def</p>"] | ||
expected: FAIL | ||
|
||
[Control + Backspace at "<p> abc[\] def</p>"] | ||
expected: FAIL | ||
|
||
[Alt + Backspace at "<p> abc[\] def</p>"] | ||
expected: FAIL | ||
|
||
[Backspace at "<p>abc </p><p>[\] def</p>"] | ||
expected: FAIL | ||
|
||
[Backspace at "<p>abc </p><pre>[\] def</pre>"] | ||
expected: FAIL | ||
|
||
[Backspace at "<div>abc <p> [\]def<br>ghi</p></div>"] | ||
expected: FAIL | ||
|
||
[Backspace at "<p>a[\]bc</p>"] | ||
expected: FAIL | ||
|
||
[Backspace at "<p>abc </p><p> [\]def</p>"] | ||
expected: FAIL | ||
|
||
[Backspace at "<p> a[\]bc</p>"] | ||
expected: FAIL | ||
|
||
[Backspace at "<p>a<span>b[\]</span>c</p>"] | ||
expected: FAIL | ||
|
||
[Backspace at "<p>abc<br><br></p><p>[\]def</p>"] | ||
expected: FAIL | ||
|
||
[Backspace at "<pre>abc </pre><p> [\]def </p>"] | ||
expected: FAIL | ||
|
||
[Backspace at "<p>abc[\]</p>"] | ||
expected: FAIL | ||
|
||
[Backspace at "<p>abc<br>[\]def</p>"] | ||
expected: FAIL | ||
|
||
[Backspace at "<p>ab[\]c</p>"] | ||
expected: FAIL | ||
|
||
[Backspace at "<p>abc{<br>}def</p>"] | ||
expected: FAIL | ||
|
||
[Backspace at "<p>abc </p><p> [\] def</p>"] | ||
expected: FAIL | ||
|
||
[Backspace at "<p>abc<br></p><p>[\]def</p>"] | ||
expected: FAIL | ||
|
||
[Backspace at "<p>abc [</p><p>\] def</p>"] | ||
expected: FAIL | ||
|
||
[Backspace at "<div><p>abc </p> [\]def</div>"] | ||
expected: FAIL | ||
|
||
[Backspace at "<p>abc </p><p> [\] def</p>"] | ||
expected: FAIL | ||
|
||
[Backspace at "<p>a<span>b</span>[\]c</p>"] | ||
expected: FAIL | ||
|
||
[Backspace at "<pre>abc </pre><p> [\]def</p>"] | ||
expected: FAIL | ||
|
88 changes: 88 additions & 0 deletions
88
...latform/meta/input-events/input-events-get-target-ranges-forwarddelete.tentative.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
[input-events-get-target-ranges-forwarddelete.tentative.html] | ||
[Shift + Delete at "<p>abc [\]def ghi</p>"] | ||
expected: | ||
if (os == "mac") or (os == "win"): FAIL | ||
PASS | ||
|
||
[Control + Delete at "<p>abc [\]def ghi</p>"] | ||
expected: | ||
if (os == "win") or (os == "android"): FAIL | ||
PASS | ||
|
||
[Alt + Delete at "<p>abc [\]def ghi</p>"] | ||
expected: | ||
if (os == "mac") or (os == "android"): FAIL | ||
PASS | ||
|
||
[Meta + Delete at "<p>abc [\]def</p>"] | ||
expected: FAIL | ||
|
||
[Shift + Delete at "<p>abc [\]def </p>"] | ||
expected: FAIL | ||
|
||
[Alt + Delete at "<p>abc [\]def </p>"] | ||
expected: FAIL | ||
|
||
[Control + Delete at "<p>abc [\]def </p>"] | ||
expected: FAIL | ||
|
||
[Delete at "<p>[\]abc</p>"] | ||
expected: FAIL | ||
|
||
[Delete at "<p>a<span>[\]b</span>c</p>"] | ||
expected: FAIL | ||
|
||
[Delete at "<p>a[\]bc</p>"] | ||
expected: FAIL | ||
|
||
[Delete at "<pre>abc [\]</pre><p> def</p>"] | ||
expected: FAIL | ||
|
||
[Delete at "<div>abc[\] <p> def<br>ghi</p></div>"] | ||
expected: FAIL | ||
|
||
[Delete at "<p>abc [\] </p><p> def</p>"] | ||
expected: FAIL | ||
|
||
[Delete at "<pre>abc [\]</pre><p> def </p>"] | ||
expected: FAIL | ||
|
||
[Delete at "<p>ab[\]c </p>"] | ||
expected: FAIL | ||
|
||
[Delete at "<p>abc [\]</p><p> def</p>"] | ||
expected: FAIL | ||
|
||
[Delete at "<p>a[\]<span>b</span>c</p>"] | ||
expected: FAIL | ||
|
||
[Delete at "<p>abc[\] </p><p> def</p>"] | ||
expected: FAIL | ||
|
||
[Delete at "<p>ab[\]c</p>"] | ||
expected: FAIL | ||
|
||
[Delete at "<p>abc[\]<br></p><p>def</p>"] | ||
expected: FAIL | ||
|
||
[Delete at "<p>abc[\]<br>def</p>"] | ||
expected: FAIL | ||
|
||
[Delete at "<p>abc<br>{}<br></p><p>def</p>"] | ||
expected: FAIL | ||
|
||
[Delete at "<p>abc [\] </p><p> def</p>"] | ||
expected: FAIL | ||
|
||
[Delete at "<p>abc[\] </p><pre> def</pre>"] | ||
expected: FAIL | ||
|
||
[Delete at "<p>abc{<br>}def</p>"] | ||
expected: FAIL | ||
|
||
[Delete at "<p>abc [</p><p>\] def</p>"] | ||
expected: FAIL | ||
|
||
[Delete at "<div><p>abc[\] </p> def</div>"] | ||
expected: FAIL | ||
|
Oops, something went wrong.