blob: a7ec052dba7bf05e3460caa0557e9c4f0491e6e8 [file] [log] [blame]
Michael[tm] Smith29e47812015-07-03 13:39:011<!DOCTYPE html>
2<meta charset="utf-8">
3<title>Notification.requestPermission (permission=denied)</title>
4<link rel="author" title="Intel" href="http://www.intel.com/">
5<link rel="author" title="Xin Liu" href="mailto:xinx.liu@intel.com">
6<script src="/resources/testharness.js"></script>
7<script src="/resources/testharnessreport.js"></script>
8<script>
9setup({ explicit_timeout: true })
10Notification.requestPermission()
11if (Notification.permission != "denied") {
12 alert("TEST NOT RUN. Change your browser settings so that notifications"
13 + " for this origin are blocked, and then reload this page.")
14} else {
15 async_test(function (t) {
16 t.step(function () {
17 Notification.requestPermission()
18 t.done()
19 })
20 })
21}
22</script>