summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/infrastructure/assumptions/non-secure-context.any.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/infrastructure/assumptions/non-secure-context.any.js')
-rw-r--r--testing/web-platform/tests/infrastructure/assumptions/non-secure-context.any.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/web-platform/tests/infrastructure/assumptions/non-secure-context.any.js b/testing/web-platform/tests/infrastructure/assumptions/non-secure-context.any.js
new file mode 100644
index 0000000000..c05689fe76
--- /dev/null
+++ b/testing/web-platform/tests/infrastructure/assumptions/non-secure-context.any.js
@@ -0,0 +1,9 @@
+test(() => {
+ assert_false(self.isSecureContext);
+}, "Lack of .https file name flag implies non-secure context");
+
+test(() => {
+ assert_equals(location.protocol, "http:");
+}, "Lack of .https file name flag implies HTTP scheme");
+
+done();