Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(657)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/notifications/serviceworker-notificationclose-event-data-reflection.html

Issue 1656823002: Add layout tests for ServiceWorker's notificationclose event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactored data reflection tests + nits Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/notifications/serviceworker-notificationclick-event-data-reflection.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698