-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1854180 [wpt PR 42006] - Implement setSequentialFocusStartingPoin…
…t, a=testonly Automatic update from web-platform-tests Implement setSequentialFocusStartingPoint This is proposed here: whatwg/html#5326 Change-Id: I2c0c0ac578180ce5e1cf327fb65c6450a7d49f60 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4866726 Reviewed-by: Di Zhang <dizhanggchromium.org> Commit-Queue: Joey Arhar <jarharchromium.org> Cr-Commit-Position: refs/heads/main{#1197956} -- wpt-commits: ac2aa5a07011181a9437a071786ded31431b6b73 wpt-pr: 42006 UltraBlame original commit: e31a9e86898a1b6b91b3acb6c3b792ba4d67166f
- Loading branch information
Showing
1 changed file
with
276 additions
and
0 deletions.
There are no files selected for viewing
276 changes: 276 additions & 0 deletions
276
.../web-platform/tests/html/interaction/focus/setSequentialFocusStartingPoint.tentative.html
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,276 @@ | ||
< | ||
! | ||
DOCTYPE | ||
html | ||
> | ||
< | ||
link | ||
rel | ||
= | ||
author | ||
href | ||
= | ||
" | ||
mailto | ||
: | ||
jarhar | ||
chromium | ||
. | ||
org | ||
" | ||
> | ||
< | ||
link | ||
rel | ||
= | ||
help | ||
href | ||
= | ||
" | ||
https | ||
: | ||
/ | ||
/ | ||
github | ||
. | ||
com | ||
/ | ||
whatwg | ||
/ | ||
html | ||
/ | ||
issues | ||
/ | ||
5326 | ||
" | ||
> | ||
< | ||
script | ||
src | ||
= | ||
" | ||
/ | ||
resources | ||
/ | ||
testharness | ||
. | ||
js | ||
" | ||
> | ||
< | ||
/ | ||
script | ||
> | ||
< | ||
script | ||
src | ||
= | ||
" | ||
/ | ||
resources | ||
/ | ||
testharnessreport | ||
. | ||
js | ||
" | ||
> | ||
< | ||
/ | ||
script | ||
> | ||
< | ||
script | ||
src | ||
= | ||
" | ||
/ | ||
resources | ||
/ | ||
testdriver | ||
. | ||
js | ||
" | ||
> | ||
< | ||
/ | ||
script | ||
> | ||
< | ||
script | ||
src | ||
= | ||
" | ||
/ | ||
resources | ||
/ | ||
testdriver | ||
- | ||
vendor | ||
. | ||
js | ||
" | ||
> | ||
< | ||
/ | ||
script | ||
> | ||
< | ||
button | ||
id | ||
= | ||
b1 | ||
> | ||
b1 | ||
< | ||
/ | ||
button | ||
> | ||
< | ||
div | ||
id | ||
= | ||
d1 | ||
> | ||
d1 | ||
< | ||
/ | ||
div | ||
> | ||
< | ||
button | ||
id | ||
= | ||
b2 | ||
> | ||
b2 | ||
< | ||
/ | ||
button | ||
> | ||
< | ||
script | ||
> | ||
const | ||
tabKey | ||
= | ||
' | ||
\ | ||
uE004 | ||
' | ||
; | ||
promise_test | ||
( | ||
async | ||
( | ||
) | ||
= | ||
> | ||
{ | ||
assert_equals | ||
( | ||
document | ||
. | ||
activeElement | ||
document | ||
. | ||
body | ||
' | ||
Focus | ||
should | ||
initially | ||
be | ||
set | ||
on | ||
the | ||
body | ||
element | ||
. | ||
' | ||
) | ||
; | ||
document | ||
. | ||
setSequentialFocusStartingPoint | ||
( | ||
d1 | ||
) | ||
; | ||
assert_equals | ||
( | ||
document | ||
. | ||
activeElement | ||
document | ||
. | ||
body | ||
' | ||
Calling | ||
setSequentialFocusStartingPoint | ||
should | ||
not | ||
change | ||
the | ||
focused | ||
element | ||
. | ||
' | ||
) | ||
; | ||
await | ||
test_driver | ||
. | ||
send_keys | ||
( | ||
document | ||
. | ||
activeElement | ||
tabKey | ||
) | ||
; | ||
assert_equals | ||
( | ||
document | ||
. | ||
activeElement | ||
b2 | ||
' | ||
Pressing | ||
tab | ||
should | ||
focus | ||
the | ||
next | ||
button | ||
after | ||
the | ||
sequential | ||
focus | ||
starting | ||
point | ||
. | ||
' | ||
) | ||
; | ||
} | ||
' | ||
document | ||
. | ||
setSequentialFocusStartingPoint | ||
should | ||
set | ||
the | ||
sequential | ||
focus | ||
starting | ||
point | ||
on | ||
any | ||
element | ||
. | ||
' | ||
) | ||
; | ||
< | ||
/ | ||
script | ||
> |