Revision 36c9fdd4ef36c289f416a16707074157d818ea7c authored by Philipp Hancke on 27 July 2018, 12:35:09 UTC, committed by Robert Ma on 27 July 2018, 14:22:07 UTC
BUG=836871

Change-Id: I278b34cb305a13a029e84eaaeec57144e2858678
Reviewed-on: https://chromium-review.googlesource.com/1149364
Reviewed-by: Henrik Boström <hbos@chromium.org>
Commit-Queue: Philipp Hancke <philipp.hancke@googlemail.com>
Cr-Commit-Position: refs/heads/master@{#578611}
1 parent e79b848
Raw File
constructor-invalid.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Notification constructor (invalid)</title>
<link rel="author" title="Intel" href="http://www.intel.com/">
<link rel="author" title="Xin Liu" href="mailto:xinx.liu@intel.com">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(function() {
    if (Notification.permission != "granted") {
        this.force_timeout()
        this.set_status(this.NOTRUN, "You must allow notifications for this"
            + " origin before running this test.")
    }
    assert_throws(new TypeError(), function() {
        new Notification()
    })
}, "Called the notification constructor with no arguments.")
</script>
back to top