diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /testing/web-platform/meta/close-watcher | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/meta/close-watcher')
6 files changed, 136 insertions, 0 deletions
diff --git a/testing/web-platform/meta/close-watcher/abortsignal.html.ini b/testing/web-platform/meta/close-watcher/abortsignal.html.ini new file mode 100644 index 0000000000..d47d283e57 --- /dev/null +++ b/testing/web-platform/meta/close-watcher/abortsignal.html.ini @@ -0,0 +1,27 @@ +[abortsignal.html] + [already-aborted AbortSignal then close() fires no events] + expected: FAIL + + [abortController.abort() then close() fires no events] + expected: FAIL + + [close() then abortController.abort() fires only one close event] + expected: FAIL + + [already-aborted AbortSignal then Esc key fires no events] + expected: FAIL + + [abortController.abort() then close via Esc key fires no events] + expected: FAIL + + [Esc key then abortController.abort() fires only one close event] + expected: FAIL + + [abortController.abort()ing a free CloseWatcher allows a new one to be created without a user activation] + expected: FAIL + + [abortController.abort() inside oncancel] + expected: FAIL + + [abortController.abort() inside onclose is benign] + expected: FAIL diff --git a/testing/web-platform/meta/close-watcher/after-other-listeners.html.ini b/testing/web-platform/meta/close-watcher/after-other-listeners.html.ini new file mode 100644 index 0000000000..9a2c68a318 --- /dev/null +++ b/testing/web-platform/meta/close-watcher/after-other-listeners.html.ini @@ -0,0 +1,3 @@ +[after-other-listeners.html] + [normal event listeners come before CloseWatcher] + expected: FAIL diff --git a/testing/web-platform/meta/close-watcher/basic.html.ini b/testing/web-platform/meta/close-watcher/basic.html.ini new file mode 100644 index 0000000000..1c51259014 --- /dev/null +++ b/testing/web-platform/meta/close-watcher/basic.html.ini @@ -0,0 +1,36 @@ +[basic.html] + [close() with no user activation only fires close] + expected: FAIL + + [destroy() then close() fires no events] + expected: FAIL + + [close() then destroy() fires only one close event] + expected: FAIL + + [Esc key does not count as user activation, so it fires close but not cancel] + expected: FAIL + + [destroy() then close via Esc key fires no events] + expected: FAIL + + [Esc key then destroy() fires only one close event] + expected: FAIL + + [close via synthesized escape key should not work] + expected: FAIL + + [destroy inside oncancel] + expected: FAIL + + [destroy inside onclose is benign] + expected: FAIL + + [close inside oncancel should not trigger an infinite loop] + expected: FAIL + + [close inside onclose should not trigger an infinite loop] + expected: FAIL + + [close with events added via addEventListener] + expected: FAIL diff --git a/testing/web-platform/meta/close-watcher/frame-removal.html.ini b/testing/web-platform/meta/close-watcher/frame-removal.html.ini new file mode 100644 index 0000000000..6c01792887 --- /dev/null +++ b/testing/web-platform/meta/close-watcher/frame-removal.html.ini @@ -0,0 +1,15 @@ +[frame-removal.html] + [detaching the iframe during the cancel event] + expected: FAIL + + [detaching the iframe during the close event] + expected: FAIL + + [detaching the iframe then calling destroy()] + expected: FAIL + + [detaching the iframe then calling close()] + expected: FAIL + + [detaching the iframe then constructing a CloseWatcher] + expected: FAIL diff --git a/testing/web-platform/meta/close-watcher/user-activation-multiple-plus-free.html.ini b/testing/web-platform/meta/close-watcher/user-activation-multiple-plus-free.html.ini new file mode 100644 index 0000000000..5e68805ab1 --- /dev/null +++ b/testing/web-platform/meta/close-watcher/user-activation-multiple-plus-free.html.ini @@ -0,0 +1,5 @@ +[user-activation-multiple-plus-free.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [Multiple CloseWatchers created from a single user activation close together, but original free CloseWatcher closes separately] + expected: FAIL diff --git a/testing/web-platform/meta/close-watcher/user-activation.html.ini b/testing/web-platform/meta/close-watcher/user-activation.html.ini new file mode 100644 index 0000000000..d1a2f24fe9 --- /dev/null +++ b/testing/web-platform/meta/close-watcher/user-activation.html.ini @@ -0,0 +1,50 @@ +[user-activation.html] + expected: + if (os == "android") and fission: [TIMEOUT, OK] + [CloseWatchers created without user activation, but close()d via user activation, fires cancel] + expected: FAIL + + [CloseWatchers created without user activation, but close()d via user activation, fires cancel, which can be preventDefault()ed] + expected: FAIL + + [CloseWatchers created without user activation, but closed via a close signal after user activation, fires cancel] + expected: FAIL + + [CloseWatchers created without user activation, but closed via a close signal after user activation, fires cancel, which can be preventDefault()ed] + expected: FAIL + + [Multiple CloseWatchers created without user activation close together (with no cancel)] + expected: FAIL + + [Creating a CloseWatcher from user activation keeps it separate from the free CloseWatcher, but they don't fire cancel] + expected: FAIL + + [Creating a CloseWatcher from user activation, and close()ing CloseWatchers with user activation, fires cancel] + expected: FAIL + + [Creating a CloseWatcher from user activation, and closing CloseWatchers with a close signal after user activation, fires cancel] + expected: FAIL + + [Multiple CloseWatchers created with user activation close in reverse order] + expected: FAIL + + [3 user activations let you have 3 + 1 = 4 ungrouped close watchers/0 cancel events] + expected: FAIL + + [3 user activations let you have 2 close watchers with 1 cancel event, even if the first cancel event is prevented] + expected: FAIL + + [destroy()ing the free CloseWatcher allows a new free one to be created without user activation, and it receives the close signal] + expected: FAIL + + [close()ing the free CloseWatcher allows a new free one to be created without user activation, and it receives the close signal] + expected: FAIL + + [closing the free CloseWatcher via a close signal allows a new free one to be created without user activation, and it receives a second close signal] + expected: FAIL + + [The second watcher can be the free watcher, if the first is created with user activation] + expected: FAIL + + [The third watcher can be the free watcher, if the first two are created with user activation] + expected: FAIL |