Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!doctype html> | |
| 2 <html lang="en"> | |
| 3 <head> | |
| 4 <meta charset="utf-8"> | |
| 5 <title>Android Web Notifications Instrumentation test-page</title> | |
| 6 </head> | |
| 7 <body> | |
| 8 <!-- This page is used by the NotificationUIManagerTest instrumentation test | |
| 9 suite on Android. --> | |
| 10 <script src="notification_test_utils.js"></script> | |
| 11 <script> | |
| 12 function showNotification(title, options) { | |
| 13 options = options || {}; | |
|
Michael van Ouwerkerk
2015/02/26 17:24:23
Is it not ok to pass undefined?
Peter Beverloo
2015/02/26 18:22:38
It is. Removed.
| |
| 14 | |
| 15 GetActivatedServiceWorker('android_test_worker.js', location.pathname) | |
| 16 .then(function(registration) { | |
| 17 registration.showNotification(title, options); | |
| 18 }); | |
| 19 } | |
| 20 </script> | |
| 21 </body> | |
| 22 </html> | |
| OLD | NEW |