Skip to content

Commit

Permalink
Bug 1843726 [wpt PR 41055] - Update navigateFocusForward in focus-nav…
Browse files Browse the repository at this point in the history
…igation for consistency, a=testonly

Automatic update from web-platform-tests
Update navigateFocusForward in focus-navigation for consistency (#41055)

Make it match shadow-dom/focus/resources/shadow-utils.js
--

wpt-commits: 2e1dd5fabf2e7a0b30ddf8c6081341b9ab2e7691
wpt-pr: 41055
  • Loading branch information
nt1m authored and moz-wptsync-bot committed Jul 22, 2023
1 parent 0142181 commit 4ac9a2a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
'use strict';

async function navigateFocusForward() {
return new test_driver.Actions()
.keyDown('\uE004')
.keyUp('\uE004')
.send();
function navigateFocusForward() {
// TAB = '\ue004'
return test_driver.send_keys(document.body, "\ue004");
}

async function navigateFocusBackward() {
Expand Down Expand Up @@ -150,4 +148,4 @@ async function assert_focus_navigation_forward_with_shadow_root(elements) {

async function assert_focus_navigation_backward_with_shadow_root(elements) {
return assert_focus_navigation_elements_with_shadow_root(elements, 'backward');
}
}

0 comments on commit 4ac9a2a

Please sign in to comment.