summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/meta/notifications
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/meta/notifications
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/meta/notifications')
-rw-r--r--testing/web-platform/meta/notifications/__dir__.ini2
-rw-r--r--testing/web-platform/meta/notifications/constructor-basic.https.html.ini6
-rw-r--r--testing/web-platform/meta/notifications/event-onclose.https.html.ini10
-rw-r--r--testing/web-platform/meta/notifications/event-onshow.https.html.ini10
-rw-r--r--testing/web-platform/meta/notifications/getnotifications-across-processes.https.window.js.ini19
-rw-r--r--testing/web-platform/meta/notifications/idlharness.https.any.js.ini141
-rw-r--r--testing/web-platform/meta/notifications/lang.https.html.ini113
-rw-r--r--testing/web-platform/meta/notifications/permission.html.ini3
-rw-r--r--testing/web-platform/meta/notifications/permissions-non-secure.html.ini5
-rw-r--r--testing/web-platform/meta/notifications/shownotification-without-permission.https.window.js.ini1
-rw-r--r--testing/web-platform/meta/notifications/shownotification.https.window.js.ini6
11 files changed, 316 insertions, 0 deletions
diff --git a/testing/web-platform/meta/notifications/__dir__.ini b/testing/web-platform/meta/notifications/__dir__.ini
new file mode 100644
index 0000000000..4217508d54
--- /dev/null
+++ b/testing/web-platform/meta/notifications/__dir__.ini
@@ -0,0 +1,2 @@
+lsan-allowed: [Alloc, NS_GetXPTCallStub, NewPage, nsXPCWrappedJS::GetNewOrUsed]
+leak-threshold: [default:51200]
diff --git a/testing/web-platform/meta/notifications/constructor-basic.https.html.ini b/testing/web-platform/meta/notifications/constructor-basic.https.html.ini
new file mode 100644
index 0000000000..3cf1ba2ee6
--- /dev/null
+++ b/testing/web-platform/meta/notifications/constructor-basic.https.html.ini
@@ -0,0 +1,6 @@
+[constructor-basic.https.html]
+ [Constructing a notification without a NotificationOptions defaults to null.]
+ expected: FAIL
+
+ [constructing a notification with a NotificationOptions dictionary correctly sets and reflects the silent attribute.]
+ expected: FAIL
diff --git a/testing/web-platform/meta/notifications/event-onclose.https.html.ini b/testing/web-platform/meta/notifications/event-onclose.https.html.ini
new file mode 100644
index 0000000000..876798c9da
--- /dev/null
+++ b/testing/web-platform/meta/notifications/event-onclose.https.html.ini
@@ -0,0 +1,10 @@
+prefs: [notification.prompt.testing:true,marionette.setpermission.enabled:true]
+
+[event-onclose.https.html]
+ bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1816427
+ expected:
+ if (os == "android"): TIMEOUT
+
+ [Invoked the onclose event handler.]
+ expected:
+ if (os == "android"): TIMEOUT
diff --git a/testing/web-platform/meta/notifications/event-onshow.https.html.ini b/testing/web-platform/meta/notifications/event-onshow.https.html.ini
new file mode 100644
index 0000000000..b9b78c9bfe
--- /dev/null
+++ b/testing/web-platform/meta/notifications/event-onshow.https.html.ini
@@ -0,0 +1,10 @@
+prefs: [notification.prompt.testing:true,marionette.setpermission.enabled:true]
+
+[event-onshow.https.html]
+ bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1816427
+ expected:
+ if (os == "android"): TIMEOUT
+
+ [Invoked the onshow event handler.]
+ expected:
+ if (os == "android"): TIMEOUT
diff --git a/testing/web-platform/meta/notifications/getnotifications-across-processes.https.window.js.ini b/testing/web-platform/meta/notifications/getnotifications-across-processes.https.window.js.ini
new file mode 100644
index 0000000000..3a3dc571c8
--- /dev/null
+++ b/testing/web-platform/meta/notifications/getnotifications-across-processes.https.window.js.ini
@@ -0,0 +1,19 @@
+prefs: [notification.prompt.testing:true, marionette.setpermission.enabled:true]
+[getnotifications-across-processes.https.window.html]
+ expected:
+ if processor == "x86": [OK, TIMEOUT]
+ [Get notification created from window]
+ expected:
+ if fission and debug and (processor == "x86_64") and (os == "linux") and swgl: [PASS, FAIL]
+ if not fission and debug and (os == "linux") and swgl: [PASS, FAIL]
+ if not fission and debug and (os == "linux") and not swgl: [PASS, FAIL]
+ if fission and debug and (processor == "x86"): [PASS, FAIL]
+ if not fission and not debug: [PASS, FAIL]
+
+ [Service worker test setup]
+ expected:
+ if processor == "x86": [PASS, TIMEOUT]
+
+ [Create and get notification within service worker]
+ expected:
+ if swgl and (os == "linux") and not fission: [PASS, FAIL]
diff --git a/testing/web-platform/meta/notifications/idlharness.https.any.js.ini b/testing/web-platform/meta/notifications/idlharness.https.any.js.ini
new file mode 100644
index 0000000000..c01fe293d6
--- /dev/null
+++ b/testing/web-platform/meta/notifications/idlharness.https.any.js.ini
@@ -0,0 +1,141 @@
+prefs: [dom.webnotifications.requireinteraction.enabled:true, dom.webnotifications.vibrate.enabled:true, dom.webnotifications.silent.enabled:true]
+[idlharness.https.any.serviceworker.html]
+ expected:
+ if (processor == "x86") and debug: [OK, TIMEOUT]
+ [Notification interface: attribute actions]
+ expected: FAIL
+
+ [Notification interface: attribute timestamp]
+ expected: FAIL
+
+ [NotificationEvent interface: attribute action]
+ expected: FAIL
+
+ [Notification interface: attribute image]
+ expected: FAIL
+
+ [Notification interface: attribute renotify]
+ expected: FAIL
+
+ [Notification interface: attribute badge]
+ expected: FAIL
+
+ [Notification interface: attribute maxActions]
+ expected: FAIL
+
+
+[idlharness.https.any.html]
+ [Notification interface: attribute image]
+ expected: FAIL
+
+ [Notification interface: notification must inherit property "badge" with the proper type]
+ expected: FAIL
+
+ [Notification interface: notification must inherit property "image" with the proper type]
+ expected: FAIL
+
+ [Notification interface: notification must inherit property "renotify" with the proper type]
+ expected: FAIL
+
+ [Notification interface: attribute renotify]
+ expected: FAIL
+
+ [Notification interface: notification must inherit property "actions" with the proper type]
+ expected: FAIL
+
+ [Notification interface: attribute actions]
+ expected: FAIL
+
+ [Notification interface: attribute timestamp]
+ expected: FAIL
+
+ [Notification interface: notification must inherit property "timestamp" with the proper type]
+ expected: FAIL
+
+ [Notification interface: attribute maxActions]
+ expected: FAIL
+
+ [Notification interface: attribute badge]
+ expected: FAIL
+
+
+[idlharness.https.any.worker.html]
+ [Notification interface: attribute image]
+ expected: FAIL
+
+ [Notification interface: notification must inherit property "badge" with the proper type]
+ expected: FAIL
+
+ [Notification interface: notification must inherit property "image" with the proper type]
+ expected: FAIL
+
+ [Notification interface: notification must inherit property "renotify" with the proper type]
+ expected: FAIL
+
+ [Notification interface: attribute renotify]
+ expected: FAIL
+
+ [Notification interface: notification must inherit property "actions" with the proper type]
+ expected: FAIL
+
+ [Notification interface: attribute actions]
+ expected: FAIL
+
+ [Notification interface: attribute timestamp]
+ expected: FAIL
+
+ [Notification interface: notification must inherit property "timestamp" with the proper type]
+ expected: FAIL
+
+ [Notification interface: attribute maxActions]
+ expected: FAIL
+
+ [Notification interface: attribute badge]
+ expected: FAIL
+
+ [ServiceWorkerRegistration interface: operation showNotification(DOMString, optional NotificationOptions)]
+ expected: FAIL
+
+ [ServiceWorkerRegistration interface: operation getNotifications(optional GetNotificationOptions)]
+ expected: FAIL
+
+
+[idlharness.https.any.sharedworker.html]
+ [Notification interface: attribute image]
+ expected: FAIL
+
+ [Notification interface: notification must inherit property "badge" with the proper type]
+ expected: FAIL
+
+ [Notification interface: notification must inherit property "image" with the proper type]
+ expected: FAIL
+
+ [Notification interface: notification must inherit property "renotify" with the proper type]
+ expected: FAIL
+
+ [Notification interface: attribute renotify]
+ expected: FAIL
+
+ [Notification interface: notification must inherit property "actions" with the proper type]
+ expected: FAIL
+
+ [Notification interface: attribute actions]
+ expected: FAIL
+
+ [Notification interface: attribute timestamp]
+ expected: FAIL
+
+ [Notification interface: notification must inherit property "timestamp" with the proper type]
+ expected: FAIL
+
+ [Notification interface: attribute maxActions]
+ expected: FAIL
+
+ [Notification interface: attribute badge]
+ expected: FAIL
+
+ [ServiceWorkerRegistration interface: operation showNotification(DOMString, optional NotificationOptions)]
+ expected: FAIL
+
+ [ServiceWorkerRegistration interface: operation getNotifications(optional GetNotificationOptions)]
+ expected: FAIL
diff --git a/testing/web-platform/meta/notifications/lang.https.html.ini b/testing/web-platform/meta/notifications/lang.https.html.ini
new file mode 100644
index 0000000000..036a884278
--- /dev/null
+++ b/testing/web-platform/meta/notifications/lang.https.html.ini
@@ -0,0 +1,113 @@
+[lang.https.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ [Roundtripping lang "". Expecting "".]
+ expected: NOTRUN
+
+ [Roundtripping lang "en". Expecting "en".]
+ expected: NOTRUN
+
+ [Roundtripping lang "en-US-x-hixie". Expecting "en-US-x-hixie".]
+ expected: NOTRUN
+
+ [Roundtripping lang "de-DE". Expecting "de-DE".]
+ expected: NOTRUN
+
+ [Roundtripping lang "de-de". Expecting "de-de".]
+ expected: NOTRUN
+
+ [Roundtripping lang "de-De". Expecting "de-De".]
+ expected: NOTRUN
+
+ [Roundtripping lang "de-dE". Expecting "de-dE".]
+ expected: NOTRUN
+
+ [Roundtripping lang "de-DE-1996". Expecting "de-DE-1996".]
+ expected: NOTRUN
+
+ [Roundtripping lang "de-Latn-DE". Expecting "de-Latn-DE".]
+ expected: NOTRUN
+
+ [Roundtripping lang "de-Latf-DE". Expecting "de-Latf-DE".]
+ expected: NOTRUN
+
+ [Roundtripping lang "de-Latn-DE-1996". Expecting "de-Latn-DE-1996".]
+ expected: NOTRUN
+
+ [Roundtripping lang "de-CH". Expecting "de-CH".]
+ expected: NOTRUN
+
+ [Roundtripping lang "it-CH". Expecting "it-CH".]
+ expected: NOTRUN
+
+ [Roundtripping lang "fr-CH". Expecting "fr-CH".]
+ expected: NOTRUN
+
+ [Roundtripping lang "rm-CH". Expecting "rm-CH".]
+ expected: NOTRUN
+
+ [Roundtripping lang "es-CH". Expecting "es-CH".]
+ expected: NOTRUN
+
+ [Roundtripping lang "Latn-de". Expecting "".]
+ expected: NOTRUN
+
+ [Roundtripping lang "Latf-de". Expecting "".]
+ expected: NOTRUN
+
+ [Roundtripping lang "tic-tac-tac-toe". Expecting "".]
+ expected: NOTRUN
+
+ [Roundtripping lang "cocoa-1-bar". Expecting "".]
+ expected: NOTRUN
+
+ [Roundtripping lang "cocoa-a-bar". Expecting "".]
+ expected: NOTRUN
+
+ [Roundtripping lang "en-". Expecting "".]
+ expected: NOTRUN
+
+ [Roundtripping lang "en--". Expecting "".]
+ expected: NOTRUN
+
+ [Roundtripping lang "foo--bar". Expecting "".]
+ expected: NOTRUN
+
+ [Roundtripping lang "id---Java". Expecting "".]
+ expected: NOTRUN
+
+ [Roundtripping lang "fr-x". Expecting "".]
+ expected: NOTRUN
+
+ [Roundtripping lang "fr-xenomorph". Expecting "".]
+ expected: NOTRUN
+
+ [Roundtripping lang "fr-x-xenomorph". Expecting "".]
+ expected: NOTRUN
+
+ [Roundtripping lang "a". Expecting "".]
+ expected: NOTRUN
+
+ [Roundtripping lang "a-fr-lang". Expecting "".]
+ expected: NOTRUN
+
+ [Roundtripping lang "b-fr-lang". Expecting "".]
+ expected: NOTRUN
+
+ [Roundtripping lang "es1-KK-aa-bb-cc-dd". Expecting "".]
+ expected: NOTRUN
+
+ [Roundtripping lang "es2-KL-aa-bb-cc-dd". Expecting "".]
+ expected: NOTRUN
+
+ [Roundtripping lang "es3-KM-aa-bb-cc-dd". Expecting "".]
+ expected: NOTRUN
+
+ [Roundtripping lang "fooÉ". Expecting "".]
+ expected: NOTRUN
+
+ [Roundtripping lang "foöÉ-bÁr". Expecting "".]
+ expected: NOTRUN
+
+ [Roundtripping lang "foöÉbÁr". Expecting "".]
+ expected: NOTRUN
diff --git a/testing/web-platform/meta/notifications/permission.html.ini b/testing/web-platform/meta/notifications/permission.html.ini
new file mode 100644
index 0000000000..e5e0bc8050
--- /dev/null
+++ b/testing/web-platform/meta/notifications/permission.html.ini
@@ -0,0 +1,3 @@
+[permission.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
diff --git a/testing/web-platform/meta/notifications/permissions-non-secure.html.ini b/testing/web-platform/meta/notifications/permissions-non-secure.html.ini
new file mode 100644
index 0000000000..730ec69069
--- /dev/null
+++ b/testing/web-platform/meta/notifications/permissions-non-secure.html.ini
@@ -0,0 +1,5 @@
+[permissions-non-secure.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ [Notification.permission must be called from a secure context]
+ expected: FAIL
diff --git a/testing/web-platform/meta/notifications/shownotification-without-permission.https.window.js.ini b/testing/web-platform/meta/notifications/shownotification-without-permission.https.window.js.ini
new file mode 100644
index 0000000000..15533cd2e6
--- /dev/null
+++ b/testing/web-platform/meta/notifications/shownotification-without-permission.https.window.js.ini
@@ -0,0 +1 @@
+prefs: [marionette.setpermission.enabled:true]
diff --git a/testing/web-platform/meta/notifications/shownotification.https.window.js.ini b/testing/web-platform/meta/notifications/shownotification.https.window.js.ini
new file mode 100644
index 0000000000..552940655f
--- /dev/null
+++ b/testing/web-platform/meta/notifications/shownotification.https.window.js.ini
@@ -0,0 +1,6 @@
+prefs: [notification.prompt.testing:true, marionette.setpermission.enabled:true]
+[getnotifications-across-processes.https.window.html]
+ [Get notification created from window]
+ expected:
+ if fission and (processor == "x86") and (os == "linux"): [PASS, FAIL]
+ if not fission and not debug: [PASS, FAIL]