summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/pending-beacon/pending_beacon-basic.window.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/pending-beacon/pending_beacon-basic.window.js')
-rw-r--r--testing/web-platform/tests/pending-beacon/pending_beacon-basic.window.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/web-platform/tests/pending-beacon/pending_beacon-basic.window.js b/testing/web-platform/tests/pending-beacon/pending_beacon-basic.window.js
new file mode 100644
index 0000000000..01b37547f7
--- /dev/null
+++ b/testing/web-platform/tests/pending-beacon/pending_beacon-basic.window.js
@@ -0,0 +1,12 @@
+// META: script=/resources/testharness.js
+// META: script=/resources/testharnessreport.js
+
+'use strict';
+
+test(() => {
+ assert_false(window.hasOwnProperty('PendingGetBeacon'));
+}, `PendingGetBeacon is not supported in non-secure context.`);
+
+test(() => {
+ assert_false(window.hasOwnProperty('PendingPostBeacon'));
+}, `PendingPostBeacon is not supported in non-secure context.`);