From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- testing/web-platform/tests/proximity/META.yml | 4 +++ .../ProximitySensor-iframe-access.https.html | 14 ++++++++++ .../tests/proximity/ProximitySensor.https.html | 32 ++++++++++++++++++++++ .../ProximitySensor_insecure_context.html | 20 ++++++++++++++ .../tests/proximity/idlharness.https.window.js | 16 +++++++++++ 5 files changed, 86 insertions(+) create mode 100644 testing/web-platform/tests/proximity/META.yml create mode 100644 testing/web-platform/tests/proximity/ProximitySensor-iframe-access.https.html create mode 100644 testing/web-platform/tests/proximity/ProximitySensor.https.html create mode 100644 testing/web-platform/tests/proximity/ProximitySensor_insecure_context.html create mode 100644 testing/web-platform/tests/proximity/idlharness.https.window.js (limited to 'testing/web-platform/tests/proximity') diff --git a/testing/web-platform/tests/proximity/META.yml b/testing/web-platform/tests/proximity/META.yml new file mode 100644 index 0000000000..8745078130 --- /dev/null +++ b/testing/web-platform/tests/proximity/META.yml @@ -0,0 +1,4 @@ +spec: https://w3c.github.io/proximity/ +suggested_reviewers: + - Honry + - rakuco diff --git a/testing/web-platform/tests/proximity/ProximitySensor-iframe-access.https.html b/testing/web-platform/tests/proximity/ProximitySensor-iframe-access.https.html new file mode 100644 index 0000000000..0ceba805be --- /dev/null +++ b/testing/web-platform/tests/proximity/ProximitySensor-iframe-access.https.html @@ -0,0 +1,14 @@ + + +ProximitySensor iframe test + + + + + + + +
+ diff --git a/testing/web-platform/tests/proximity/ProximitySensor.https.html b/testing/web-platform/tests/proximity/ProximitySensor.https.html new file mode 100644 index 0000000000..6480713825 --- /dev/null +++ b/testing/web-platform/tests/proximity/ProximitySensor.https.html @@ -0,0 +1,32 @@ + + +ProximitySensor Test + + + + + + + + diff --git a/testing/web-platform/tests/proximity/ProximitySensor_insecure_context.html b/testing/web-platform/tests/proximity/ProximitySensor_insecure_context.html new file mode 100644 index 0000000000..b524cdc321 --- /dev/null +++ b/testing/web-platform/tests/proximity/ProximitySensor_insecure_context.html @@ -0,0 +1,20 @@ + + +ProximitySensor Test: insecure context + + + + + +
+

Precondition

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