https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 9ee63dc2e8e8086b9e5e165b3ce09ac0580138d0 authored by Aryeh Gregor on 06 September 2017, 14:01:46 UTC
Rewrite document named property tests
Tip revision: 9ee63dc
permission.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Notification.permission (basic)</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() {
    assert_in_array(Notification.permission,
        ["default", "denied", "granted"],
        "Notification.permission")
}, "Checked the Notification.permission property.")
</script>
back to top