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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/notifications/serviceworker-notification-properties.html

Issue 1388483002: Implement the Notification `timestamp` property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Notifications: Property reflection in the "notificationclick" event a nd SWR.getNotifications().</title> 4 <title>Notifications: Property reflection in the "notificationclick" event a nd SWR.getNotifications().</title>
5 <script src="../resources/testharness.js"></script> 5 <script src="../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script> 6 <script src="../resources/testharnessreport.js"></script>
7 <script src="../serviceworker/resources/test-helpers.js"></script> 7 <script src="../serviceworker/resources/test-helpers.js"></script>
8 <script src="resources/test-helpers.js"></script> 8 <script src="resources/test-helpers.js"></script>
9 </head> 9 </head>
10 <body> 10 <body>
(...skipping 20 matching lines...) Expand all
31 var options = { 31 var options = {
32 title: scope, 32 title: scope,
33 dir: 'rtl', 33 dir: 'rtl',
34 lang: 'nl-NL', 34 lang: 'nl-NL',
35 body: 'Hello, world!', 35 body: 'Hello, world!',
36 tag: 'tag', 36 tag: 'tag',
37 // FIXME: Relative URLs for the icon attribute currently get refle cted as 37 // FIXME: Relative URLs for the icon attribute currently get refle cted as
38 // an absolute URL, which should probably be the given relative UR L. 38 // an absolute URL, which should probably be the given relative UR L.
39 icon: 'https://example/icon.png', 39 icon: 'https://example/icon.png',
40 vibrate: [100, 200, 300], 40 vibrate: [100, 200, 300],
41 timestamp: 621046800000,
41 silent: false, 42 silent: false,
42 requireInteraction: true, 43 requireInteraction: true,
43 data: [ 44 data: [
44 { property: 'foobar', 45 { property: 'foobar',
45 string: '\uDFFF\u0000\uDBFF', 46 string: '\uDFFF\u0000\uDBFF',
46 scalar: true }, 47 scalar: true },
47 12.15 48 12.15
48 ], 49 ],
49 actions: [] 50 actions: []
50 }; 51 };
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 109
109 test.done(); 110 test.done();
110 }); 111 });
111 }); 112 });
112 }).catch(unreached_rejection(test)); 113 }).catch(unreached_rejection(test));
113 114
114 }, 'Clicking on a notification displayed by a Service Worker the notificat ionclick event.'); 115 }, 'Clicking on a notification displayed by a Service Worker the notificat ionclick event.');
115 </script> 116 </script>
116 </body> 117 </body>
117 </html> 118 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698