summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/device-posture
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/device-posture
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz
firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.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/device-posture')
-rw-r--r--testing/web-platform/tests/device-posture/META.yml4
-rw-r--r--testing/web-platform/tests/device-posture/README.md2
-rw-r--r--testing/web-platform/tests/device-posture/idlharness.https.window.js12
3 files changed, 18 insertions, 0 deletions
diff --git a/testing/web-platform/tests/device-posture/META.yml b/testing/web-platform/tests/device-posture/META.yml
new file mode 100644
index 0000000000..d4dc2c24e6
--- /dev/null
+++ b/testing/web-platform/tests/device-posture/META.yml
@@ -0,0 +1,4 @@
+spec: https://w3c.github.io/device-posture/
+suggested_reviewers:
+ - reillyeon
+ - darktears
diff --git a/testing/web-platform/tests/device-posture/README.md b/testing/web-platform/tests/device-posture/README.md
new file mode 100644
index 0000000000..60559c1f72
--- /dev/null
+++ b/testing/web-platform/tests/device-posture/README.md
@@ -0,0 +1,2 @@
+This directory contains (tentative) tests for the
+[Device Posture](https://w3c.github.io/device-posture/) specification.
diff --git a/testing/web-platform/tests/device-posture/idlharness.https.window.js b/testing/web-platform/tests/device-posture/idlharness.https.window.js
new file mode 100644
index 0000000000..74ebd11af9
--- /dev/null
+++ b/testing/web-platform/tests/device-posture/idlharness.https.window.js
@@ -0,0 +1,12 @@
+// META: script=/resources/WebIDLParser.js
+// META: script=/resources/idlharness.js
+
+// https://w3c.github.io/device-posture/
+
+'use strict';
+
+idl_test(["device-posture"], ["html", "dom", "webidl"], (idl_array) => {
+ idl_array.add_objects({
+ DevicePosture: ["navigator.devicePosture"],
+ });
+});