Run WPT notifications tests. (#35442)

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Josh Matthews 2025-02-12 14:04:09 -05:00 committed by GitHub
parent 99fa014d70
commit abede5b4b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 469 additions and 0 deletions

View file

@ -203,6 +203,8 @@ skip: true
skip: false
[navigation-timing]
skip: false
[notifications]
skip: false
[old-tests]
skip: true
[submission]

View file

@ -0,0 +1,9 @@
[constructor-basic.https.html]
[Called the notification constructor with one argument.]
expected: FAIL
[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

View file

@ -0,0 +1,3 @@
[constructor-invalid.https.html]
[Called the notification constructor with no arguments.]
expected: FAIL

View file

@ -0,0 +1,3 @@
[constructor-non-secure.html]
[new Notification calls onerror in non-secure contexts]
expected: FAIL

View file

@ -0,0 +1,7 @@
[fetch-url-resolve.https.window.html]
expected: ERROR
[new Notification() should give a resolved icon URL]
expected: NOTRUN
[getNotifications() should give a resolved icon URL]
expected: NOTRUN

View file

@ -0,0 +1,2 @@
[getnotifications-across-processes.https.window.html]
expected: ERROR

View file

@ -0,0 +1,2 @@
[global-teardown-crash.html]
expected: TIMEOUT

View file

@ -0,0 +1,8 @@
[historical.any.worker.html]
[Notification.get is obsolete]
expected: FAIL
[historical.any.html]
[Notification.get is obsolete]
expected: FAIL

View file

@ -0,0 +1,354 @@
[idlharness.https.any.sharedworker.html]
expected: ERROR
[idlharness.https.any.worker.html]
[idl_test setup]
expected: FAIL
[Notification interface: existence and properties of interface object]
expected: FAIL
[Notification interface object length]
expected: FAIL
[Notification interface object name]
expected: FAIL
[Notification interface: existence and properties of interface prototype object]
expected: FAIL
[Notification interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
[Notification interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
[Notification interface: attribute permission]
expected: FAIL
[Notification interface: member requestPermission]
expected: FAIL
[Notification interface: attribute maxActions]
expected: FAIL
[Notification interface: attribute onclick]
expected: FAIL
[Notification interface: attribute onshow]
expected: FAIL
[Notification interface: attribute onerror]
expected: FAIL
[Notification interface: attribute onclose]
expected: FAIL
[Notification interface: attribute title]
expected: FAIL
[Notification interface: attribute dir]
expected: FAIL
[Notification interface: attribute lang]
expected: FAIL
[Notification interface: attribute body]
expected: FAIL
[Notification interface: attribute tag]
expected: FAIL
[Notification interface: attribute image]
expected: FAIL
[Notification interface: attribute icon]
expected: FAIL
[Notification interface: attribute badge]
expected: FAIL
[Notification interface: attribute vibrate]
expected: FAIL
[Notification interface: attribute timestamp]
expected: FAIL
[Notification interface: attribute renotify]
expected: FAIL
[Notification interface: attribute silent]
expected: FAIL
[Notification interface: attribute requireInteraction]
expected: FAIL
[Notification interface: attribute data]
expected: FAIL
[Notification interface: attribute actions]
expected: FAIL
[Notification interface: operation close()]
expected: FAIL
[Notification must be primary interface of notification]
expected: FAIL
[Stringification of notification]
expected: FAIL
[Notification interface: notification must inherit property "permission" with the proper type]
expected: FAIL
[Notification interface: notification must not have property "requestPermission"]
expected: FAIL
[Notification interface: notification must inherit property "maxActions" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "onclick" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "onshow" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "onerror" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "onclose" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "title" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "dir" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "lang" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "body" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "tag" 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 "icon" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "badge" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "vibrate" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "timestamp" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "renotify" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "silent" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "requireInteraction" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "data" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "actions" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "close()" with the proper type]
expected: FAIL
[ServiceWorkerRegistration interface: operation showNotification(DOMString, optional NotificationOptions)]
expected: FAIL
[ServiceWorkerRegistration interface: operation getNotifications(optional GetNotificationOptions)]
expected: FAIL
[idlharness.https.any.html]
[idl_test setup]
expected: FAIL
[Notification interface: existence and properties of interface object]
expected: FAIL
[Notification interface object length]
expected: FAIL
[Notification interface object name]
expected: FAIL
[Notification interface: existence and properties of interface prototype object]
expected: FAIL
[Notification interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
[Notification interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
[Notification interface: attribute permission]
expected: FAIL
[Notification interface: operation requestPermission(optional NotificationPermissionCallback)]
expected: FAIL
[Notification interface: attribute maxActions]
expected: FAIL
[Notification interface: attribute onclick]
expected: FAIL
[Notification interface: attribute onshow]
expected: FAIL
[Notification interface: attribute onerror]
expected: FAIL
[Notification interface: attribute onclose]
expected: FAIL
[Notification interface: attribute title]
expected: FAIL
[Notification interface: attribute dir]
expected: FAIL
[Notification interface: attribute lang]
expected: FAIL
[Notification interface: attribute body]
expected: FAIL
[Notification interface: attribute tag]
expected: FAIL
[Notification interface: attribute image]
expected: FAIL
[Notification interface: attribute icon]
expected: FAIL
[Notification interface: attribute badge]
expected: FAIL
[Notification interface: attribute vibrate]
expected: FAIL
[Notification interface: attribute timestamp]
expected: FAIL
[Notification interface: attribute renotify]
expected: FAIL
[Notification interface: attribute silent]
expected: FAIL
[Notification interface: attribute requireInteraction]
expected: FAIL
[Notification interface: attribute data]
expected: FAIL
[Notification interface: attribute actions]
expected: FAIL
[Notification interface: operation close()]
expected: FAIL
[Notification must be primary interface of notification]
expected: FAIL
[Stringification of notification]
expected: FAIL
[Notification interface: notification must inherit property "permission" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "requestPermission(optional NotificationPermissionCallback)" with the proper type]
expected: FAIL
[Notification interface: calling requestPermission(optional NotificationPermissionCallback) on notification with too few arguments must throw TypeError]
expected: FAIL
[Notification interface: notification must inherit property "maxActions" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "onclick" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "onshow" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "onerror" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "onclose" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "title" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "dir" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "lang" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "body" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "tag" 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 "icon" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "badge" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "vibrate" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "timestamp" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "renotify" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "silent" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "requireInteraction" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "data" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "actions" with the proper type]
expected: FAIL
[Notification interface: notification must inherit property "close()" with the proper type]
expected: FAIL
[ServiceWorkerRegistration interface: operation showNotification(DOMString, optional NotificationOptions)]
expected: FAIL
[ServiceWorkerRegistration interface: operation getNotifications(optional GetNotificationOptions)]
expected: FAIL
[idlharness.https.any.serviceworker.html]
expected: ERROR

View file

@ -0,0 +1,28 @@
[instance.https.window.html]
expected: ERROR
[new Notification(): Setup]
expected: NOTRUN
[new Notification(): Attribute exists with expected value: title]
expected: NOTRUN
[new Notification(): Attribute exists with expected value: dir]
expected: NOTRUN
[new Notification(): Attribute exists with expected value: lang]
expected: NOTRUN
[new Notification(): Attribute exists with expected value: body]
expected: NOTRUN
[new Notification(): Attribute exists with expected value: tag]
expected: NOTRUN
[new Notification(): Attribute exists with expected value: icon]
expected: NOTRUN
[new Notification(): Attribute exists with expected value: data]
expected: NOTRUN
[Service worker test setup]
expected: NOTRUN

View file

@ -0,0 +1,3 @@
[permission.html]
[Checked the Notification.permission property.]
expected: FAIL

View file

@ -0,0 +1,10 @@
[permissions-non-secure.html]
expected: ERROR
[Notification.requestPermission must be called from a secure context]
expected: FAIL
[Notification.permission must be called from a secure context]
expected: FAIL
[Notification.permission must be called from a secure worker]
expected: TIMEOUT

View file

@ -0,0 +1,4 @@
[registration-association.https.window.html]
expected: ERROR
[A new SW registration gets no previous notification]
expected: NOTRUN

View file

@ -0,0 +1,4 @@
[shownotification-without-permission.https.window.html]
expected: ERROR
[showNotificaiton should not be listed with permission=default]
expected: NOTRUN

View file

@ -0,0 +1,22 @@
[shownotification.https.window.html]
expected: ERROR
[fetching no notifications]
expected: NOTRUN
[fetching notification with an empty title]
expected: NOTRUN
[fetching notification by tag filter]
expected: NOTRUN
[fetching multiple notifications]
expected: NOTRUN
[fetching from another registration]
expected: NOTRUN
[fetching only persistent notifications]
expected: NOTRUN
[fetching a notification with custom data]
expected: NOTRUN

View file

@ -0,0 +1,4 @@
[tag.https.html]
expected: ERROR
[Opening two notifications with the same tag should close the first one]
expected: NOTRUN

View file

@ -0,0 +1,4 @@
[worker-gc.https.window.html]
expected: ERROR
[An active notification should prevent worker cycle collection]
expected: NOTRUN