blob: a479917aeef9f3b777d152148a3b75cb8df7f494 [file] [log] [blame]
Michael[tm] Smith29e47812015-07-03 13:39:011<!DOCTYPE html>
2<meta charset="utf-8">
3<title>Notification.body (basic)</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 src="common.js"></script>
9<div id=passfail></div>
10<script>
11setup({ explicit_timeout: true })
12if (hasNotificationPermission()) {
13 async_test(function (t) {
14 t.step(function () {
15 var notification = null,
16 notifications = [],
17 text = "This is the body content: Room 101"
18 createPassFail("If a notification appears containing the text"
19 + " \"" + text + "\"",
20 t, closeNotifications, notifications)
21 notification = new Notification("", {
22 body: text
23 })
24 notifications.push(notification)
25 })
26 })
27}
28</script>