blob: 9c58ba1a9cfc7dbfeb6f7228d3ed8232a590ea75 [file] [log] [blame]
<!doctype html>
<html>
<head>
<title>Notifications: data property reflection in the "notificationclick" event.</title>
<script src="../resources/permissions-helper.js"></script>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script src="../serviceworker/resources/test-helpers.js"></script>
<script src="resources/notification-data-reflection-test.js"></script>
<script src="resources/test-helpers.js"></script>
</head>
<body>
<script>
// Tests that the notification available in the "notificationclick" event in the
// Service Worker accurately reflects the data attributes of several type
// with which the notification was created (for this test --) in the document.
async_test(function(test) {
runNotificationDataReflectionTest(test, {
run: function (scope) {
testRunner.simulateWebNotificationClick(scope);
},
name: 'click'
});
}, 'Clicking on a notification displayed by a Service Worker the notificationclick event.');
</script>
</body>
</html>