diff --git a/tests/wpt/include.ini b/tests/wpt/include.ini index 32610bba700..5f094665250 100644 --- a/tests/wpt/include.ini +++ b/tests/wpt/include.ini @@ -203,6 +203,8 @@ skip: true skip: false [navigation-timing] skip: false +[notifications] + skip: false [old-tests] skip: true [submission] diff --git a/tests/wpt/meta/notifications/constructor-basic.https.html.ini b/tests/wpt/meta/notifications/constructor-basic.https.html.ini new file mode 100644 index 00000000000..e9cc5687908 --- /dev/null +++ b/tests/wpt/meta/notifications/constructor-basic.https.html.ini @@ -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 diff --git a/tests/wpt/meta/notifications/constructor-invalid.https.html.ini b/tests/wpt/meta/notifications/constructor-invalid.https.html.ini new file mode 100644 index 00000000000..c9e61fa72d4 --- /dev/null +++ b/tests/wpt/meta/notifications/constructor-invalid.https.html.ini @@ -0,0 +1,3 @@ +[constructor-invalid.https.html] + [Called the notification constructor with no arguments.] + expected: FAIL diff --git a/tests/wpt/meta/notifications/constructor-non-secure.html.ini b/tests/wpt/meta/notifications/constructor-non-secure.html.ini new file mode 100644 index 00000000000..398ddff620d --- /dev/null +++ b/tests/wpt/meta/notifications/constructor-non-secure.html.ini @@ -0,0 +1,3 @@ +[constructor-non-secure.html] + [new Notification calls onerror in non-secure contexts] + expected: FAIL diff --git a/tests/wpt/meta/notifications/fetch-url-resolve.https.window.js.ini b/tests/wpt/meta/notifications/fetch-url-resolve.https.window.js.ini new file mode 100644 index 00000000000..9bb35084956 --- /dev/null +++ b/tests/wpt/meta/notifications/fetch-url-resolve.https.window.js.ini @@ -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 diff --git a/tests/wpt/meta/notifications/getnotifications-across-processes.https.window.js.ini b/tests/wpt/meta/notifications/getnotifications-across-processes.https.window.js.ini new file mode 100644 index 00000000000..feb4af8281c --- /dev/null +++ b/tests/wpt/meta/notifications/getnotifications-across-processes.https.window.js.ini @@ -0,0 +1,2 @@ +[getnotifications-across-processes.https.window.html] + expected: ERROR diff --git a/tests/wpt/meta/notifications/global-teardown-crash.html.ini b/tests/wpt/meta/notifications/global-teardown-crash.html.ini new file mode 100644 index 00000000000..b8f68bcc916 --- /dev/null +++ b/tests/wpt/meta/notifications/global-teardown-crash.html.ini @@ -0,0 +1,2 @@ +[global-teardown-crash.html] + expected: TIMEOUT diff --git a/tests/wpt/meta/notifications/historical.any.js.ini b/tests/wpt/meta/notifications/historical.any.js.ini new file mode 100644 index 00000000000..7c869f4ee55 --- /dev/null +++ b/tests/wpt/meta/notifications/historical.any.js.ini @@ -0,0 +1,8 @@ +[historical.any.worker.html] + [Notification.get is obsolete] + expected: FAIL + + +[historical.any.html] + [Notification.get is obsolete] + expected: FAIL diff --git a/tests/wpt/meta/notifications/idlharness.https.any.js.ini b/tests/wpt/meta/notifications/idlharness.https.any.js.ini new file mode 100644 index 00000000000..449bce2fd42 --- /dev/null +++ b/tests/wpt/meta/notifications/idlharness.https.any.js.ini @@ -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 diff --git a/tests/wpt/meta/notifications/instance.https.window.js.ini b/tests/wpt/meta/notifications/instance.https.window.js.ini new file mode 100644 index 00000000000..582b3c7fafb --- /dev/null +++ b/tests/wpt/meta/notifications/instance.https.window.js.ini @@ -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 diff --git a/tests/wpt/meta/notifications/permission.html.ini b/tests/wpt/meta/notifications/permission.html.ini new file mode 100644 index 00000000000..b9b5d759f7c --- /dev/null +++ b/tests/wpt/meta/notifications/permission.html.ini @@ -0,0 +1,3 @@ +[permission.html] + [Checked the Notification.permission property.] + expected: FAIL diff --git a/tests/wpt/meta/notifications/permissions-non-secure.html.ini b/tests/wpt/meta/notifications/permissions-non-secure.html.ini new file mode 100644 index 00000000000..adceb650578 --- /dev/null +++ b/tests/wpt/meta/notifications/permissions-non-secure.html.ini @@ -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 diff --git a/tests/wpt/meta/notifications/registration-association.https.window.js.ini b/tests/wpt/meta/notifications/registration-association.https.window.js.ini new file mode 100644 index 00000000000..b762845e0ae --- /dev/null +++ b/tests/wpt/meta/notifications/registration-association.https.window.js.ini @@ -0,0 +1,4 @@ +[registration-association.https.window.html] + expected: ERROR + [A new SW registration gets no previous notification] + expected: NOTRUN diff --git a/tests/wpt/meta/notifications/shownotification-without-permission.https.window.js.ini b/tests/wpt/meta/notifications/shownotification-without-permission.https.window.js.ini new file mode 100644 index 00000000000..0cef35ee46a --- /dev/null +++ b/tests/wpt/meta/notifications/shownotification-without-permission.https.window.js.ini @@ -0,0 +1,4 @@ +[shownotification-without-permission.https.window.html] + expected: ERROR + [showNotificaiton should not be listed with permission=default] + expected: NOTRUN diff --git a/tests/wpt/meta/notifications/shownotification.https.window.js.ini b/tests/wpt/meta/notifications/shownotification.https.window.js.ini new file mode 100644 index 00000000000..f70ca441627 --- /dev/null +++ b/tests/wpt/meta/notifications/shownotification.https.window.js.ini @@ -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 diff --git a/tests/wpt/meta/notifications/tag.https.html.ini b/tests/wpt/meta/notifications/tag.https.html.ini new file mode 100644 index 00000000000..fa3a0576e2d --- /dev/null +++ b/tests/wpt/meta/notifications/tag.https.html.ini @@ -0,0 +1,4 @@ +[tag.https.html] + expected: ERROR + [Opening two notifications with the same tag should close the first one] + expected: NOTRUN diff --git a/tests/wpt/meta/notifications/worker-gc.https.window.js.ini b/tests/wpt/meta/notifications/worker-gc.https.window.js.ini new file mode 100644 index 00000000000..8dcee2fe7c8 --- /dev/null +++ b/tests/wpt/meta/notifications/worker-gc.https.window.js.ini @@ -0,0 +1,4 @@ +[worker-gc.https.window.html] + expected: ERROR + [An active notification should prevent worker cycle collection] + expected: NOTRUN