mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Run WPT notifications tests. (#35442)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
99fa014d70
commit
abede5b4b2
17 changed files with 469 additions and 0 deletions
2
tests/wpt/include.ini
vendored
2
tests/wpt/include.ini
vendored
|
@ -203,6 +203,8 @@ skip: true
|
||||||
skip: false
|
skip: false
|
||||||
[navigation-timing]
|
[navigation-timing]
|
||||||
skip: false
|
skip: false
|
||||||
|
[notifications]
|
||||||
|
skip: false
|
||||||
[old-tests]
|
[old-tests]
|
||||||
skip: true
|
skip: true
|
||||||
[submission]
|
[submission]
|
||||||
|
|
9
tests/wpt/meta/notifications/constructor-basic.https.html.ini
vendored
Normal file
9
tests/wpt/meta/notifications/constructor-basic.https.html.ini
vendored
Normal 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
|
3
tests/wpt/meta/notifications/constructor-invalid.https.html.ini
vendored
Normal file
3
tests/wpt/meta/notifications/constructor-invalid.https.html.ini
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[constructor-invalid.https.html]
|
||||||
|
[Called the notification constructor with no arguments.]
|
||||||
|
expected: FAIL
|
3
tests/wpt/meta/notifications/constructor-non-secure.html.ini
vendored
Normal file
3
tests/wpt/meta/notifications/constructor-non-secure.html.ini
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[constructor-non-secure.html]
|
||||||
|
[new Notification calls onerror in non-secure contexts]
|
||||||
|
expected: FAIL
|
7
tests/wpt/meta/notifications/fetch-url-resolve.https.window.js.ini
vendored
Normal file
7
tests/wpt/meta/notifications/fetch-url-resolve.https.window.js.ini
vendored
Normal 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
|
2
tests/wpt/meta/notifications/getnotifications-across-processes.https.window.js.ini
vendored
Normal file
2
tests/wpt/meta/notifications/getnotifications-across-processes.https.window.js.ini
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[getnotifications-across-processes.https.window.html]
|
||||||
|
expected: ERROR
|
2
tests/wpt/meta/notifications/global-teardown-crash.html.ini
vendored
Normal file
2
tests/wpt/meta/notifications/global-teardown-crash.html.ini
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[global-teardown-crash.html]
|
||||||
|
expected: TIMEOUT
|
8
tests/wpt/meta/notifications/historical.any.js.ini
vendored
Normal file
8
tests/wpt/meta/notifications/historical.any.js.ini
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
[historical.any.worker.html]
|
||||||
|
[Notification.get is obsolete]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
|
||||||
|
[historical.any.html]
|
||||||
|
[Notification.get is obsolete]
|
||||||
|
expected: FAIL
|
354
tests/wpt/meta/notifications/idlharness.https.any.js.ini
vendored
Normal file
354
tests/wpt/meta/notifications/idlharness.https.any.js.ini
vendored
Normal 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
|
28
tests/wpt/meta/notifications/instance.https.window.js.ini
vendored
Normal file
28
tests/wpt/meta/notifications/instance.https.window.js.ini
vendored
Normal 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
|
3
tests/wpt/meta/notifications/permission.html.ini
vendored
Normal file
3
tests/wpt/meta/notifications/permission.html.ini
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[permission.html]
|
||||||
|
[Checked the Notification.permission property.]
|
||||||
|
expected: FAIL
|
10
tests/wpt/meta/notifications/permissions-non-secure.html.ini
vendored
Normal file
10
tests/wpt/meta/notifications/permissions-non-secure.html.ini
vendored
Normal 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
|
4
tests/wpt/meta/notifications/registration-association.https.window.js.ini
vendored
Normal file
4
tests/wpt/meta/notifications/registration-association.https.window.js.ini
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
[registration-association.https.window.html]
|
||||||
|
expected: ERROR
|
||||||
|
[A new SW registration gets no previous notification]
|
||||||
|
expected: NOTRUN
|
4
tests/wpt/meta/notifications/shownotification-without-permission.https.window.js.ini
vendored
Normal file
4
tests/wpt/meta/notifications/shownotification-without-permission.https.window.js.ini
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
[shownotification-without-permission.https.window.html]
|
||||||
|
expected: ERROR
|
||||||
|
[showNotificaiton should not be listed with permission=default]
|
||||||
|
expected: NOTRUN
|
22
tests/wpt/meta/notifications/shownotification.https.window.js.ini
vendored
Normal file
22
tests/wpt/meta/notifications/shownotification.https.window.js.ini
vendored
Normal 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
|
4
tests/wpt/meta/notifications/tag.https.html.ini
vendored
Normal file
4
tests/wpt/meta/notifications/tag.https.html.ini
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
[tag.https.html]
|
||||||
|
expected: ERROR
|
||||||
|
[Opening two notifications with the same tag should close the first one]
|
||||||
|
expected: NOTRUN
|
4
tests/wpt/meta/notifications/worker-gc.https.window.js.ini
vendored
Normal file
4
tests/wpt/meta/notifications/worker-gc.https.window.js.ini
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
[worker-gc.https.window.html]
|
||||||
|
expected: ERROR
|
||||||
|
[An active notification should prevent worker cycle collection]
|
||||||
|
expected: NOTRUN
|
Loading…
Add table
Add a link
Reference in a new issue