Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/testing/web-platform/tests/notifications/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Impressum instance-sw.js   Sprache: JAVA

 
importScripts("/resources/testharness.js");
importScripts("resources/helpers.js");
importScripts("resources/custom-data.js");
importScripts("instance-checks.js");

promise_setup(async () => {
  await untilActivate();
});

notification_instance_test(async t => {
  t.add_cleanup(closeAllNotifications);

  await registration.showNotification(...notification_args);

  let notifications = await registration.getNotifications();
  assert_equals(notifications.length, 1, "The list should include one notification");

  return notifications[0];
}, "getNotifications()");

// Doing this separately because this times out on Blink and GeckoView
notification_instance_test(async t => {
  t.add_cleanup(closeAllNotifications);

  await registration.showNotification(...notification_args);

  let notifications = await registration.getNotifications();
  assert_equals(notifications.length, 1, "The list should include one notification");

  notifications[0].close();
  const ev = await new Promise(resolve => addEventListener("notificationclose", resolve, { once: true }));

  return ev.notification;
}, "notificationclose");

100%


¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.3Bemerkung:  ¤

*Bot Zugriff






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.