chromium/third_party/blink/web_tests/http/tests/notifications/resources/serviceworker-notification-constructor.js

importScripts('../../serviceworker/resources/worker-testharness.js');

test(function() {
    assert_true('Notification' in self);

    assert_throws_js(TypeError, function() {
        new Notification();
    });

}, 'Constructing a Notification object in a Service Worker throws.');