From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- testing/web-platform/tests/badging/META.yml | 4 ++ .../tests/badging/badge-error.https.html | 36 ++++++++++++ .../tests/badging/badge-success.https.html | 62 +++++++++++++++++++++ .../tests/badging/idlharness.https.any.js | 17 ++++++ .../tests/badging/non-fully-active.https.html | 19 +++++++ .../badging/resources/setAppBadge_iframe.html | 33 +++++++++++ .../setAppBadge_cross_origin.sub.https.html | 64 ++++++++++++++++++++++ 7 files changed, 235 insertions(+) create mode 100644 testing/web-platform/tests/badging/META.yml create mode 100644 testing/web-platform/tests/badging/badge-error.https.html create mode 100644 testing/web-platform/tests/badging/badge-success.https.html create mode 100644 testing/web-platform/tests/badging/idlharness.https.any.js create mode 100644 testing/web-platform/tests/badging/non-fully-active.https.html create mode 100644 testing/web-platform/tests/badging/resources/setAppBadge_iframe.html create mode 100644 testing/web-platform/tests/badging/setAppBadge_cross_origin.sub.https.html (limited to 'testing/web-platform/tests/badging') diff --git a/testing/web-platform/tests/badging/META.yml b/testing/web-platform/tests/badging/META.yml new file mode 100644 index 0000000000..840e187cba --- /dev/null +++ b/testing/web-platform/tests/badging/META.yml @@ -0,0 +1,4 @@ +spec: https://w3c.github.io/badging/ +suggested_reviewers: + - marcoscaceres + - diekus diff --git a/testing/web-platform/tests/badging/badge-error.https.html b/testing/web-platform/tests/badging/badge-error.https.html new file mode 100644 index 0000000000..3da5cf61e8 --- /dev/null +++ b/testing/web-platform/tests/badging/badge-error.https.html @@ -0,0 +1,36 @@ + +Badging: Unsupported values + + + diff --git a/testing/web-platform/tests/badging/badge-success.https.html b/testing/web-platform/tests/badging/badge-success.https.html new file mode 100644 index 0000000000..6a25962e7b --- /dev/null +++ b/testing/web-platform/tests/badging/badge-success.https.html @@ -0,0 +1,62 @@ + +Badging: Supported values + + + diff --git a/testing/web-platform/tests/badging/idlharness.https.any.js b/testing/web-platform/tests/badging/idlharness.https.any.js new file mode 100644 index 0000000000..3e3ee9e7c4 --- /dev/null +++ b/testing/web-platform/tests/badging/idlharness.https.any.js @@ -0,0 +1,17 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js +// META: timeout=long + +'use strict'; + +idl_test( + ['badging'], + ['html', 'dom'], + idl_array => { + if (self.GLOBAL.isWorker()) { + idl_array.add_objects({ WorkerNavigator: ['navigator'] }); + } else { + idl_array.add_objects({ Navigator: ['navigator'] }); + } + } +); diff --git a/testing/web-platform/tests/badging/non-fully-active.https.html b/testing/web-platform/tests/badging/non-fully-active.https.html new file mode 100644 index 0000000000..d870e52273 --- /dev/null +++ b/testing/web-platform/tests/badging/non-fully-active.https.html @@ -0,0 +1,19 @@ + +Badging: attempting to badge non-fully active document + + + + diff --git a/testing/web-platform/tests/badging/resources/setAppBadge_iframe.html b/testing/web-platform/tests/badging/resources/setAppBadge_iframe.html new file mode 100644 index 0000000000..8738099658 --- /dev/null +++ b/testing/web-platform/tests/badging/resources/setAppBadge_iframe.html @@ -0,0 +1,33 @@ + + +setAppBadge iframe + diff --git a/testing/web-platform/tests/badging/setAppBadge_cross_origin.sub.https.html b/testing/web-platform/tests/badging/setAppBadge_cross_origin.sub.https.html new file mode 100644 index 0000000000..7e548879bc --- /dev/null +++ b/testing/web-platform/tests/badging/setAppBadge_cross_origin.sub.https.html @@ -0,0 +1,64 @@ + + +Test cross-origin and same-origin use of setAppBadge + + + + -- cgit v1.2.3