summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/pending-beacon/pending_beacon-deactivate.tentative.https.window.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/pending-beacon/pending_beacon-deactivate.tentative.https.window.js')
-rw-r--r--testing/web-platform/tests/pending-beacon/pending_beacon-deactivate.tentative.https.window.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/web-platform/tests/pending-beacon/pending_beacon-deactivate.tentative.https.window.js b/testing/web-platform/tests/pending-beacon/pending_beacon-deactivate.tentative.https.window.js
new file mode 100644
index 0000000000..74c0852adc
--- /dev/null
+++ b/testing/web-platform/tests/pending-beacon/pending_beacon-deactivate.tentative.https.window.js
@@ -0,0 +1,12 @@
+// META: script=./resources/pending_beacon-helper.js
+
+'use strict';
+
+for (const beaconType of BeaconTypes) {
+ test(() => {
+ const beacon = new beaconType.type('https://www.google.com');
+ assert_true(beacon.pending);
+ beacon.deactivate();
+ assert_false(beacon.pending);
+ }, `${beaconType.name}: deactivate() changes 'pending' state.`);
+}