gecko/testing/web-platform/tests/notifications/notification-constructor-basic.html
James Graham 3dfd6c1bac Bug 945222 - Initial import of web-platform-tests testsuite 1/4: test data
--HG--
extra : rebase_source : d635a4f39c587d4d381b486dd63de747865b77a2
2014-09-04 12:48:31 +01:00

21 lines
727 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>Web Notifications Test: 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">
<link rel="help" title="5 API" href="http://www.w3.org/TR/notifications/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<div id="log"></div>
<script>
test(function() {
var notification = new Notification("New Email Received", {
body: "Room 101"
});
assert_equals(typeof notification, "object");
}, "Test checks that notification constructor is correct");
</script>
</body>