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 --- ...ghtSensor-disabled-by-feature-policy.https.html | 13 +++++ ...r-disabled-by-feature-policy.https.html.headers | 1 + ...re-policy-attribute-redirect-on-load.https.html | 13 +++++ ...-enabled-by-feature-policy-attribute.https.html | 13 +++++ ...ightSensor-enabled-by-feature-policy.https.html | 13 +++++ ...or-enabled-by-feature-policy.https.html.headers | 1 + ...led-on-self-origin-by-feature-policy.https.html | 13 +++++ ...elf-origin-by-feature-policy.https.html.headers | 1 + .../AmbientLightSensor-iframe-access.https.html | 14 +++++ ...entLightSensor-supported-by-feature-policy.html | 11 ++++ .../ambient-light/AmbientLightSensor.https.html | 63 ++++++++++++++++++++++ .../AmbientLightSensor_insecure_context.html | 20 +++++++ testing/web-platform/tests/ambient-light/META.yml | 5 ++ .../tests/ambient-light/idlharness.https.window.js | 16 ++++++ 14 files changed, 197 insertions(+) create mode 100644 testing/web-platform/tests/ambient-light/AmbientLightSensor-disabled-by-feature-policy.https.html create mode 100644 testing/web-platform/tests/ambient-light/AmbientLightSensor-disabled-by-feature-policy.https.html.headers create mode 100644 testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html create mode 100644 testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-by-feature-policy-attribute.https.html create mode 100644 testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-by-feature-policy.https.html create mode 100644 testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-by-feature-policy.https.html.headers create mode 100644 testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-on-self-origin-by-feature-policy.https.html create mode 100644 testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-on-self-origin-by-feature-policy.https.html.headers create mode 100644 testing/web-platform/tests/ambient-light/AmbientLightSensor-iframe-access.https.html create mode 100644 testing/web-platform/tests/ambient-light/AmbientLightSensor-supported-by-feature-policy.html create mode 100644 testing/web-platform/tests/ambient-light/AmbientLightSensor.https.html create mode 100644 testing/web-platform/tests/ambient-light/AmbientLightSensor_insecure_context.html create mode 100644 testing/web-platform/tests/ambient-light/META.yml create mode 100644 testing/web-platform/tests/ambient-light/idlharness.https.window.js (limited to 'testing/web-platform/tests/ambient-light') diff --git a/testing/web-platform/tests/ambient-light/AmbientLightSensor-disabled-by-feature-policy.https.html b/testing/web-platform/tests/ambient-light/AmbientLightSensor-disabled-by-feature-policy.https.html new file mode 100644 index 0000000000..fb20d70d93 --- /dev/null +++ b/testing/web-platform/tests/ambient-light/AmbientLightSensor-disabled-by-feature-policy.https.html @@ -0,0 +1,13 @@ + + +AmbientLightSensor Feature Policy Test: Disabled + + + + + + diff --git a/testing/web-platform/tests/ambient-light/AmbientLightSensor-disabled-by-feature-policy.https.html.headers b/testing/web-platform/tests/ambient-light/AmbientLightSensor-disabled-by-feature-policy.https.html.headers new file mode 100644 index 0000000000..b8073a87be --- /dev/null +++ b/testing/web-platform/tests/ambient-light/AmbientLightSensor-disabled-by-feature-policy.https.html.headers @@ -0,0 +1 @@ +Feature-Policy: ambient-light-sensor 'none' diff --git a/testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html b/testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html new file mode 100644 index 0000000000..1d28792cbc --- /dev/null +++ b/testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html @@ -0,0 +1,13 @@ + + +AmbientLightSensor Feature Policy Test: Enabled by attribute redirect on load + + + + + + diff --git a/testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-by-feature-policy-attribute.https.html b/testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-by-feature-policy-attribute.https.html new file mode 100644 index 0000000000..4b58a26244 --- /dev/null +++ b/testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-by-feature-policy-attribute.https.html @@ -0,0 +1,13 @@ + + +AmbientLightSensor Feature Policy Test: Enabled by attribute + + + + + + diff --git a/testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-by-feature-policy.https.html b/testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-by-feature-policy.https.html new file mode 100644 index 0000000000..a1651b876d --- /dev/null +++ b/testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-by-feature-policy.https.html @@ -0,0 +1,13 @@ + + +AmbientLightSensor Feature Policy Test: Enabled + + + + + + diff --git a/testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-by-feature-policy.https.html.headers b/testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-by-feature-policy.https.html.headers new file mode 100644 index 0000000000..f037f3ff57 --- /dev/null +++ b/testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-by-feature-policy.https.html.headers @@ -0,0 +1 @@ +Feature-Policy: ambient-light-sensor * diff --git a/testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-on-self-origin-by-feature-policy.https.html b/testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-on-self-origin-by-feature-policy.https.html new file mode 100644 index 0000000000..ab9848cb2c --- /dev/null +++ b/testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-on-self-origin-by-feature-policy.https.html @@ -0,0 +1,13 @@ + + +AmbientLightSensor Feature Policy Test: Enabled on self origin + + + + + + diff --git a/testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-on-self-origin-by-feature-policy.https.html.headers b/testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-on-self-origin-by-feature-policy.https.html.headers new file mode 100644 index 0000000000..1d22667050 --- /dev/null +++ b/testing/web-platform/tests/ambient-light/AmbientLightSensor-enabled-on-self-origin-by-feature-policy.https.html.headers @@ -0,0 +1 @@ +Feature-Policy: ambient-light-sensor 'self' diff --git a/testing/web-platform/tests/ambient-light/AmbientLightSensor-iframe-access.https.html b/testing/web-platform/tests/ambient-light/AmbientLightSensor-iframe-access.https.html new file mode 100644 index 0000000000..5fedd5fb7a --- /dev/null +++ b/testing/web-platform/tests/ambient-light/AmbientLightSensor-iframe-access.https.html @@ -0,0 +1,14 @@ + + +AmbientLightSensor iframe test + + + + + + + +
+ diff --git a/testing/web-platform/tests/ambient-light/AmbientLightSensor-supported-by-feature-policy.html b/testing/web-platform/tests/ambient-light/AmbientLightSensor-supported-by-feature-policy.html new file mode 100644 index 0000000000..d5c27c8bef --- /dev/null +++ b/testing/web-platform/tests/ambient-light/AmbientLightSensor-supported-by-feature-policy.html @@ -0,0 +1,11 @@ + +Test that ambient-light-sensor is advertised in the feature list + + + + + diff --git a/testing/web-platform/tests/ambient-light/AmbientLightSensor.https.html b/testing/web-platform/tests/ambient-light/AmbientLightSensor.https.html new file mode 100644 index 0000000000..a8c65e4d3f --- /dev/null +++ b/testing/web-platform/tests/ambient-light/AmbientLightSensor.https.html @@ -0,0 +1,63 @@ + + +AmbientLightSensor Test + + + + + + + + diff --git a/testing/web-platform/tests/ambient-light/AmbientLightSensor_insecure_context.html b/testing/web-platform/tests/ambient-light/AmbientLightSensor_insecure_context.html new file mode 100644 index 0000000000..9a7c91492b --- /dev/null +++ b/testing/web-platform/tests/ambient-light/AmbientLightSensor_insecure_context.html @@ -0,0 +1,20 @@ + + +AmbientLightSensor Test: insecure context + + + + + +
+

Precondition

+
    +
  1. + Run test in an insecure context, e.g. http://example.com/. +
  2. +
+ diff --git a/testing/web-platform/tests/ambient-light/META.yml b/testing/web-platform/tests/ambient-light/META.yml new file mode 100644 index 0000000000..e173970b5d --- /dev/null +++ b/testing/web-platform/tests/ambient-light/META.yml @@ -0,0 +1,5 @@ +spec: https://w3c.github.io/ambient-light/ +suggested_reviewers: + - riju + - rakuco + - Honry diff --git a/testing/web-platform/tests/ambient-light/idlharness.https.window.js b/testing/web-platform/tests/ambient-light/idlharness.https.window.js new file mode 100644 index 0000000000..211e6aa017 --- /dev/null +++ b/testing/web-platform/tests/ambient-light/idlharness.https.window.js @@ -0,0 +1,16 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js + +// https://w3c.github.io/ambient-light/ + +'use strict'; + +idl_test( + ['ambient-light'], + ['generic-sensor', 'dom'], + idl_array => { + idl_array.add_objects({ + AmbientLightSensor: ['new AmbientLightSensor()'] + }); + } +); -- cgit v1.2.3