Chromium Code Reviews| Index: chrome/test/data/notifications/android_test.html |
| diff --git a/chrome/test/data/notifications/android_test.html b/chrome/test/data/notifications/android_test.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..345c8ab88f4533c7756460b478a2b28d5b3d065f |
| --- /dev/null |
| +++ b/chrome/test/data/notifications/android_test.html |
| @@ -0,0 +1,22 @@ |
| +<!doctype html> |
| +<html lang="en"> |
| + <head> |
| + <meta charset="utf-8"> |
| + <title>Android Web Notifications Instrumentation test-page</title> |
| + </head> |
| + <body> |
| + <!-- This page is used by the NotificationUIManagerTest instrumentation test |
| + suite on Android. --> |
| + <script src="notification_test_utils.js"></script> |
| + <script> |
| + function showNotification(title, options) { |
| + 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.
|
| + |
| + GetActivatedServiceWorker('android_test_worker.js', location.pathname) |
| + .then(function(registration) { |
| + registration.showNotification(title, options); |
| + }); |
| + } |
| + </script> |
| + </body> |
| +</html> |