chromium/third_party/blink/web_tests/http/tests/notifications/close-document.html

<!doctype html>
<html>
  <head>
    <title>Notifications: Programatically closing a notification should fire the onclose event.</title>
    <script src="../resources/testharness.js"></script>
    <script src="../resources/testharnessreport.js"></script>
    <script src="resources/test-helpers.js"></script>
    <script src="../resources/permissions-helper.js"></script>
  </head>
  <body>
    <script>
      // Tests that Document-bound notifications will fire the onclose event
      // when they have their close() method called. When the test is being ran
      // manually, grant Notification permission first.
      PermissionsHelper.setPermission('notifications', 'granted').then(function() {
          var script = document.createElement('script');
          script.src = 'resources/close-event-test.js';
          document.body.appendChild(script);
      });
    </script>
  </body>
</html>