Bug 1806468 [wpt PR 37579] - WebKit export of https://bugs.webkit.org/show_bug.cgi...
[gecko.git] / testing / web-platform / tests / notifications / constructor-non-secure.html
blobdf1f74a71f4bebda8a071bd59b829c2cb4e6fa55
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>Notification constructor (basic) on a non-secure connection</title>
4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 <script>
7 async_test(function (t) {
8 const notification = new Notification("Sup.");
9 notification.onerror = t.step_func_done(e => {
10 assert_equals(e.type, "error");
11 });
12 }, "new Notification calls onerror in non-secure contexts")
13 </script>