Title: [269996] trunk/LayoutTests/imported/w3c
Revision
269996
Author
[email protected]
Date
2020-11-18 15:26:20 -0800 (Wed, 18 Nov 2020)

Log Message

Unreviewed, drop manual test in web-platform-tests/notifications.

* web-platform-tests/notifications/shownotification-resolve-manual.https-expected.txt: Removed.
* web-platform-tests/notifications/shownotification-resolve-manual.https.html: Removed.
* web-platform-tests/notifications/w3c-import.log:

Modified Paths

Removed Paths

Diff

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (269995 => 269996)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2020-11-18 23:25:56 UTC (rev 269995)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2020-11-18 23:26:20 UTC (rev 269996)
@@ -1,5 +1,13 @@
 2020-11-18  Chris Dumez  <[email protected]>
 
+        Unreviewed, drop manual test in web-platform-tests/notifications.
+
+        * web-platform-tests/notifications/shownotification-resolve-manual.https-expected.txt: Removed.
+        * web-platform-tests/notifications/shownotification-resolve-manual.https.html: Removed.
+        * web-platform-tests/notifications/w3c-import.log:
+
+2020-11-18  Chris Dumez  <[email protected]>
+
         REGRESSION (r269598): [ Mac ] imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-network-error.sub.html is flaky failing
         https://bugs.webkit.org/show_bug.cgi?id=219008
         <rdar://problem/71463894>

Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/notifications/shownotification-resolve-manual.https-expected.txt (269995 => 269996)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/notifications/shownotification-resolve-manual.https-expected.txt	2020-11-18 23:25:56 UTC (rev 269995)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/notifications/shownotification-resolve-manual.https-expected.txt	2020-11-18 23:26:20 UTC (rev 269996)
@@ -1,3 +0,0 @@
-
-FAIL showNotification resolves after icon fetch undefined is not an object (evaluating 'Notification.requestPermission().then')
-

Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/notifications/shownotification-resolve-manual.https.html (269995 => 269996)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/notifications/shownotification-resolve-manual.https.html	2020-11-18 23:25:56 UTC (rev 269995)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/notifications/shownotification-resolve-manual.https.html	2020-11-18 23:26:20 UTC (rev 269996)
@@ -1,52 +0,0 @@
-<!DOCTYPE html>
-<script src=""
-<script src=""
-<body>
-<script>
-const worker = 'resources/shownotification-sw.js';
-
-function reset() {
-  return navigator.serviceWorker.getRegistrations().then(registrations => {
-    return Promise.all(registrations.map(r => r.unregister()));
-  });
-}
-
-function getNewestWorker(reg) {
-  return reg.installing || reg.waiting || reg.active;
-}
-
-function registerSwAndGetWorker() {
-  return reset()
-    .then(() => navigator.serviceWorker.register(worker))
-    .then(getNewestWorker);
-}
-
-promise_test(() => {
-  // Get notification permission
-  return Notification.requestPermission().then(permission => {
-    if (permission != "granted") {
-      throw Error('You must allow notifications for this origin before running this test.');
-    }
-    return registerSwAndGetWorker();
-  }).then(worker => {
-    return new Promise(resolve => {
-      // Wait for the service worker to post a message with type 'notification-data'.
-      navigator.serviceWorker._onmessage_ = event => {
-        if (event.data && event.data.type == 'notification-data') {
-          resolve(event.data);
-          navigator.serviceWorker._onmessage_ = null;
-        }
-      };
-
-      // Ask the service worker to run the test.
-      worker.postMessage('test-shownotification');
-    })
-  }).then(result => {
-    assert_true(result.notificationReturned, `Notification appeared in getNotifications`);
-    // The icon is delayed by 2000ms, so showNotification should have taken at least 1900 to resolve.
-    assert_greater_than(result.resolveDuration, 1900, `showNotification appeared to wait for icon load`);
-  });
-}, 'showNotification resolves after icon fetch');
-
-</script>
-</body>

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/notifications/w3c-import.log (269995 => 269996)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/notifications/w3c-import.log	2020-11-18 23:25:56 UTC (rev 269995)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/notifications/w3c-import.log	2020-11-18 23:26:20 UTC (rev 269996)
@@ -24,4 +24,3 @@
 /LayoutTests/imported/w3c/web-platform-tests/notifications/instance.html
 /LayoutTests/imported/w3c/web-platform-tests/notifications/lang.html
 /LayoutTests/imported/w3c/web-platform-tests/notifications/permission.html
-/LayoutTests/imported/w3c/web-platform-tests/notifications/shownotification-resolve-manual.https.html
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to