OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Notifications: Action reflection in the "notificationclose" event.</t
itle> |
| 5 <script src="../resources/permissions-helper.js"></script> |
| 6 <script src="../resources/testharness.js"></script> |
| 7 <script src="../resources/testharnessreport.js"></script> |
| 8 <script src="../serviceworker/resources/test-helpers.js"></script> |
| 9 <script src="resources/notification-data-reflection-test.js"></script> |
| 10 <script src="resources/test-helpers.js"></script> |
| 11 </head> |
| 12 <body> |
| 13 <script> |
| 14 // Tests that the notification available in the "notificationclose" event
in the |
| 15 // Service Worker accurately reflects the data attributes of several type |
| 16 // with which the notification was created (for this test --) in the docum
ent. |
| 17 |
| 18 async_test(function(test) { |
| 19 runNotificationDataReflectionTest(test, { |
| 20 run: function (scope) { |
| 21 testRunner.simulateWebNotificationClose(scope, true /* by_user
*/); |
| 22 }, |
| 23 name: 'close' |
| 24 }); |
| 25 }, 'NotificationEvent data property should be reflected when the notificat
ion is closed by the user.'); |
| 26 </script> |
| 27 </body> |
| 28 </html> |
OLD | NEW |