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>
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");
12 }, "new Notification calls onerror in non-secure contexts")