Bug 1883556 [wpt PR 44927] - CloseWatcher: fix Esc key tests, a=testonly
commit9a5ca5e15c8b9b9bc951abfca865b4cbca72a139
authorDomenic Denicola <domenic@chromium.org>
Tue, 12 Mar 2024 22:31:14 +0000 (12 22:31 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 14 Mar 2024 08:38:43 +0000 (14 08:38 +0000)
treece37320c3cebf702b7631e7ab3a3368799bd6931
parentcc6766a79d37aba2577addf38008524fe58edfab
Bug 1883556 [wpt PR 44927] - CloseWatcher: fix Esc key tests, a=testonly

Automatic update from web-platform-tests
CloseWatcher: fix Esc key tests

They were interfering with each other by being in the same file. This
meant that most of the tests weren't really testing anything: which is
good, because the keyup and keypress tests had the opposite of the
correct expectations.

This splits up all the tests, and fixes keyup.html and keypress.html
to expect that such listeners are NOT able to prevent the close request.

Bug: 40054591
Change-Id: Id294cb9f1c6e91bec284e5a09042026e54538664
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5339289
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Commit-Queue: Domenic Denicola <domenic@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1269315}

--

wpt-commits: b334432d7b67798b90fdef51f5d1430bfbc5f3fd
wpt-pr: 44927
testing/web-platform/tests/close-watcher/esc-key.html [deleted file]
testing/web-platform/tests/close-watcher/esc-key/README.md [new file with mode: 0644]
testing/web-platform/tests/close-watcher/esc-key/keydown.html [new file with mode: 0644]
testing/web-platform/tests/close-watcher/esc-key/keypress.html [new file with mode: 0644]
testing/web-platform/tests/close-watcher/esc-key/keyup.html [new file with mode: 0644]
testing/web-platform/tests/close-watcher/esc-key/not-user-activation.html [new file with mode: 0644]
testing/web-platform/tests/close-watcher/esc-key/synthetic-keyboard-event.html [new file with mode: 0644]