summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/close-watcher/user-activation-multiple-plus-free.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /testing/web-platform/tests/close-watcher/user-activation-multiple-plus-free.html
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-upstream/125.0.1.tar.xz
firefox-upstream/125.0.1.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/close-watcher/user-activation-multiple-plus-free.html')
-rw-r--r--testing/web-platform/tests/close-watcher/user-activation-multiple-plus-free.html32
1 files changed, 0 insertions, 32 deletions
diff --git a/testing/web-platform/tests/close-watcher/user-activation-multiple-plus-free.html b/testing/web-platform/tests/close-watcher/user-activation-multiple-plus-free.html
deleted file mode 100644
index a94b47904a..0000000000
--- a/testing/web-platform/tests/close-watcher/user-activation-multiple-plus-free.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<!doctype html>
-<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>
-<script src="/resources/testdriver-actions.js"></script>
-<script src="resources/helpers.js"></script>
-
-<body>
-<script>
-
-// This test needs to be separate from user-activation.html since, unlike those,
-// it relies on there not being any lingering user activation from previous
-// tests hanging around. That is, we need to be sure freeWatcher is created with
-// no user activation, to ensure that activationWatcher1 and activationWatcher2
-// get grouped as expected.
-promise_test(async t => {
- const events = [];
- createRecordingCloseWatcher(t, events, "freeWatcher");
-
- await test_driver.bless("create two more CloseWatchers", () => {
- createRecordingCloseWatcher(t, events, "activationWatcher1");
- createRecordingCloseWatcher(t, events, "activationWatcher2");
- });
-
- await sendCloseRequest();
- assert_array_equals(events, ["activationWatcher2 close", "activationWatcher1 close"]);
-
- await sendCloseRequest();
- assert_array_equals(events, ["activationWatcher2 close", "activationWatcher1 close", "freeWatcher close"]);
-}, "Multiple CloseWatchers created from a single user activation close together, but original free CloseWatcher closes separately");
-</script>