blob: 3f704de03e3395e0a4a1266f3e1eec17fc94cbe0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<!DOCTYPE html>
<meta charset="utf-8">
<title>Notification constructor (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() {
var notification = new Notification("New Email Received")
assert_true(notification instanceof Notification)
notification.onshow = function() {
notification.close()
}
}, "Called the notification constructor with one argument.")
</script>
|