From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- testing/web-platform/tests/magnetometer/META.yml | 5 +++ ...netometer-disabled-by-feature-policy.https.html | 14 ++++++++ ...r-disabled-by-feature-policy.https.html.headers | 1 + ...re-policy-attribute-redirect-on-load.https.html | 14 ++++++++ ...-enabled-by-feature-policy-attribute.https.html | 14 ++++++++ ...gnetometer-enabled-by-feature-policy.https.html | 14 ++++++++ ...er-enabled-by-feature-policy.https.html.headers | 1 + ...led-on-self-origin-by-feature-policy.https.html | 14 ++++++++ ...elf-origin-by-feature-policy.https.html.headers | 1 + .../Magnetometer-iframe-access.https.html | 16 +++++++++ .../Magnetometer-supported-by-feature-policy.html | 11 ++++++ .../tests/magnetometer/Magnetometer.https.html | 39 ++++++++++++++++++++++ .../Magnetometer_insecure_context.html | 21 ++++++++++++ .../tests/magnetometer/idlharness.https.window.js | 17 ++++++++++ 14 files changed, 182 insertions(+) create mode 100644 testing/web-platform/tests/magnetometer/META.yml create mode 100644 testing/web-platform/tests/magnetometer/Magnetometer-disabled-by-feature-policy.https.html create mode 100644 testing/web-platform/tests/magnetometer/Magnetometer-disabled-by-feature-policy.https.html.headers create mode 100644 testing/web-platform/tests/magnetometer/Magnetometer-enabled-by-feature-policy-attribute-redirect-on-load.https.html create mode 100644 testing/web-platform/tests/magnetometer/Magnetometer-enabled-by-feature-policy-attribute.https.html create mode 100644 testing/web-platform/tests/magnetometer/Magnetometer-enabled-by-feature-policy.https.html create mode 100644 testing/web-platform/tests/magnetometer/Magnetometer-enabled-by-feature-policy.https.html.headers create mode 100644 testing/web-platform/tests/magnetometer/Magnetometer-enabled-on-self-origin-by-feature-policy.https.html create mode 100644 testing/web-platform/tests/magnetometer/Magnetometer-enabled-on-self-origin-by-feature-policy.https.html.headers create mode 100644 testing/web-platform/tests/magnetometer/Magnetometer-iframe-access.https.html create mode 100644 testing/web-platform/tests/magnetometer/Magnetometer-supported-by-feature-policy.html create mode 100644 testing/web-platform/tests/magnetometer/Magnetometer.https.html create mode 100644 testing/web-platform/tests/magnetometer/Magnetometer_insecure_context.html create mode 100644 testing/web-platform/tests/magnetometer/idlharness.https.window.js (limited to 'testing/web-platform/tests/magnetometer') diff --git a/testing/web-platform/tests/magnetometer/META.yml b/testing/web-platform/tests/magnetometer/META.yml new file mode 100644 index 0000000000..9193c0d459 --- /dev/null +++ b/testing/web-platform/tests/magnetometer/META.yml @@ -0,0 +1,5 @@ +spec: https://w3c.github.io/magnetometer/ +suggested_reviewers: + - riju + - Honry + - rakuco diff --git a/testing/web-platform/tests/magnetometer/Magnetometer-disabled-by-feature-policy.https.html b/testing/web-platform/tests/magnetometer/Magnetometer-disabled-by-feature-policy.https.html new file mode 100644 index 0000000000..6e496c1390 --- /dev/null +++ b/testing/web-platform/tests/magnetometer/Magnetometer-disabled-by-feature-policy.https.html @@ -0,0 +1,14 @@ + + +Magnetometer Feature Policy Test: Disabled + + + + + + diff --git a/testing/web-platform/tests/magnetometer/Magnetometer-disabled-by-feature-policy.https.html.headers b/testing/web-platform/tests/magnetometer/Magnetometer-disabled-by-feature-policy.https.html.headers new file mode 100644 index 0000000000..afbd45465c --- /dev/null +++ b/testing/web-platform/tests/magnetometer/Magnetometer-disabled-by-feature-policy.https.html.headers @@ -0,0 +1 @@ +Feature-Policy: magnetometer 'none' diff --git a/testing/web-platform/tests/magnetometer/Magnetometer-enabled-by-feature-policy-attribute-redirect-on-load.https.html b/testing/web-platform/tests/magnetometer/Magnetometer-enabled-by-feature-policy-attribute-redirect-on-load.https.html new file mode 100644 index 0000000000..4b65317818 --- /dev/null +++ b/testing/web-platform/tests/magnetometer/Magnetometer-enabled-by-feature-policy-attribute-redirect-on-load.https.html @@ -0,0 +1,14 @@ + + +Magnetometer Feature Policy Test: Enabled by attribute redirect on load + + + + + + diff --git a/testing/web-platform/tests/magnetometer/Magnetometer-enabled-by-feature-policy-attribute.https.html b/testing/web-platform/tests/magnetometer/Magnetometer-enabled-by-feature-policy-attribute.https.html new file mode 100644 index 0000000000..4c120f6d74 --- /dev/null +++ b/testing/web-platform/tests/magnetometer/Magnetometer-enabled-by-feature-policy-attribute.https.html @@ -0,0 +1,14 @@ + + +Magnetometer Feature Policy Test: Enabled by attribute + + + + + + diff --git a/testing/web-platform/tests/magnetometer/Magnetometer-enabled-by-feature-policy.https.html b/testing/web-platform/tests/magnetometer/Magnetometer-enabled-by-feature-policy.https.html new file mode 100644 index 0000000000..ae5983411d --- /dev/null +++ b/testing/web-platform/tests/magnetometer/Magnetometer-enabled-by-feature-policy.https.html @@ -0,0 +1,14 @@ + + +Magnetometer Feature Policy Test: Enabled + + + + + + diff --git a/testing/web-platform/tests/magnetometer/Magnetometer-enabled-by-feature-policy.https.html.headers b/testing/web-platform/tests/magnetometer/Magnetometer-enabled-by-feature-policy.https.html.headers new file mode 100644 index 0000000000..64ec55e3e4 --- /dev/null +++ b/testing/web-platform/tests/magnetometer/Magnetometer-enabled-by-feature-policy.https.html.headers @@ -0,0 +1 @@ +Feature-Policy: magnetometer * diff --git a/testing/web-platform/tests/magnetometer/Magnetometer-enabled-on-self-origin-by-feature-policy.https.html b/testing/web-platform/tests/magnetometer/Magnetometer-enabled-on-self-origin-by-feature-policy.https.html new file mode 100644 index 0000000000..e6210407ab --- /dev/null +++ b/testing/web-platform/tests/magnetometer/Magnetometer-enabled-on-self-origin-by-feature-policy.https.html @@ -0,0 +1,14 @@ + + +Magnetometer Feature Policy Test: Enabled on self origin + + + + + + diff --git a/testing/web-platform/tests/magnetometer/Magnetometer-enabled-on-self-origin-by-feature-policy.https.html.headers b/testing/web-platform/tests/magnetometer/Magnetometer-enabled-on-self-origin-by-feature-policy.https.html.headers new file mode 100644 index 0000000000..4223f53ffa --- /dev/null +++ b/testing/web-platform/tests/magnetometer/Magnetometer-enabled-on-self-origin-by-feature-policy.https.html.headers @@ -0,0 +1 @@ +Feature-Policy: magnetometer 'self' diff --git a/testing/web-platform/tests/magnetometer/Magnetometer-iframe-access.https.html b/testing/web-platform/tests/magnetometer/Magnetometer-iframe-access.https.html new file mode 100644 index 0000000000..3dc90e3dd7 --- /dev/null +++ b/testing/web-platform/tests/magnetometer/Magnetometer-iframe-access.https.html @@ -0,0 +1,16 @@ + + +Magnetometer iframe test + + + + + + + +
+ diff --git a/testing/web-platform/tests/magnetometer/Magnetometer-supported-by-feature-policy.html b/testing/web-platform/tests/magnetometer/Magnetometer-supported-by-feature-policy.html new file mode 100644 index 0000000000..a049363895 --- /dev/null +++ b/testing/web-platform/tests/magnetometer/Magnetometer-supported-by-feature-policy.html @@ -0,0 +1,11 @@ + +Test that magnetometer is advertised in the feature list + + + + + diff --git a/testing/web-platform/tests/magnetometer/Magnetometer.https.html b/testing/web-platform/tests/magnetometer/Magnetometer.https.html new file mode 100644 index 0000000000..0cc443784b --- /dev/null +++ b/testing/web-platform/tests/magnetometer/Magnetometer.https.html @@ -0,0 +1,39 @@ + + +Magnetometer Test + + + + + + + + diff --git a/testing/web-platform/tests/magnetometer/Magnetometer_insecure_context.html b/testing/web-platform/tests/magnetometer/Magnetometer_insecure_context.html new file mode 100644 index 0000000000..45ff584b42 --- /dev/null +++ b/testing/web-platform/tests/magnetometer/Magnetometer_insecure_context.html @@ -0,0 +1,21 @@ + + +Magnetometer Test: insecure context + + + + + +
+

Precondition

+
    +
  1. + Run test in an insecure context, e.g. http://example.com/. +
  2. +
+ diff --git a/testing/web-platform/tests/magnetometer/idlharness.https.window.js b/testing/web-platform/tests/magnetometer/idlharness.https.window.js new file mode 100644 index 0000000000..e6b8f7d238 --- /dev/null +++ b/testing/web-platform/tests/magnetometer/idlharness.https.window.js @@ -0,0 +1,17 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js + +// https://w3c.github.io/magnetometer/ + +'use strict'; + +idl_test( + ['magnetometer'], + ['generic-sensor', 'dom'], + idl_array => { + idl_array.add_objects({ + Magnetometer: ['new Magnetometer();'], + UncalibratedMagnetometer: ['new UncalibratedMagnetometer();'] + }); + } +); -- cgit v1.2.3